public class ProjectInfoReportUtils extends Object
Constructor and Description |
---|
ProjectInfoReportUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getArtifactIdCell(String artifactId,
String link) |
static String |
getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository) |
static String |
getContent(URL url,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
String encoding)
Get the input stream from an URL.
|
static String |
getContent(URL url,
org.apache.maven.settings.Settings settings)
Get the input stream using ISO-8859-1 as charset from an URL.
|
static String |
getContent(URL url,
org.apache.maven.settings.Settings settings,
String encoding)
Get the input stream from an URL.
|
static boolean |
isArtifactUrlValid(String url) |
static boolean |
isNumber(String str) |
static float |
toFloat(String str,
float defaultValue) |
public static String getContent(URL url, org.apache.maven.settings.Settings settings) throws IOException
url
- not nullsettings
- not null to handle proxy settingsIOException
- if anygetContent(URL, Settings, String)
public static String getContent(URL url, org.apache.maven.settings.Settings settings, String encoding) throws IOException
url
- not nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the inputstream. If null, encoding will be "ISO-8859-1".IOException
- if anypublic static String getContent(URL url, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, String encoding) throws 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".IOException
- if anypublic static String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, 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 String getArtifactIdCell(String artifactId, String link)
artifactId
- not nulllink
- could be nullAbstractMavenReportRenderer.linkPatternedText(String)
public static boolean isArtifactUrlValid(String url)
url
- not nulltrue
if the url is valid, false
otherwise.public static boolean isNumber(String str)
public static float toFloat(String str, float defaultValue)
Copyright © 2005-2016 The Apache Software Foundation. All Rights Reserved.