org.apache.maven.report.projectinfo
public class ProjectInfoReportUtils extends java.lang.Object
Constructor and Description |
---|
ProjectInfoReportUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getArtifactIdCell(java.lang.String artifactId,
java.lang.String link) |
static java.lang.String |
getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository) |
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
java.lang.String encoding)
Get the input stream from an URL.
|
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.settings.Settings settings)
Get the input stream using ISO-8859-1 as charset from an URL.
|
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.settings.Settings settings,
java.lang.String encoding)
Get the input stream from an URL.
|
static boolean |
isArtifactUrlValid(java.lang.String url) |
static boolean |
isNumber(java.lang.String str) |
static float |
toFloat(java.lang.String str,
float defaultValue) |
public static java.lang.String getContent(java.net.URL url, org.apache.maven.settings.Settings settings) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settingsjava.io.IOException
- if anygetContent(URL, Settings, String)
public static java.lang.String getContent(java.net.URL url, org.apache.maven.settings.Settings settings, java.lang.String encoding) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the inputstream. If null, encoding will be "ISO-8859-1".java.io.IOException
- if anypublic static java.lang.String getContent(java.net.URL url, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, java.lang.String encoding) throws java.io.IOException
url
- not nullproject
- could be nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the inputstream. If empty, encoding will be "ISO-8859-1".java.io.IOException
- if anypublic static java.lang.String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
factory
- not nullartifact
- not nullmavenProjectBuilder
- not nullremoteRepositories
- not nulllocalRepository
- not nullpublic static java.lang.String getArtifactIdCell(java.lang.String artifactId, java.lang.String link)
artifactId
- not nulllink
- could be nullAbstractMavenReportRenderer.linkPatternedText(String)
public static boolean isArtifactUrlValid(java.lang.String url)
url
- not nulltrue
if the url is valid, false
otherwise.public static boolean isNumber(java.lang.String str)
public static float toFloat(java.lang.String str, float defaultValue)
Copyright © 2005-2014. All Rights Reserved.