|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.buildtools.maven2.plugin.builder.IOUtils
public class IOUtils
Utilities to write a Model as xml, and read a Model in from xml.
Nested Class Summary | |
---|---|
static interface |
IOUtils.SourceVisitor
|
Constructor Summary | |
---|---|
IOUtils()
|
Method Summary | |
---|---|
static boolean |
existsSourceFile(String filename,
List sourceDirs)
|
static Model |
getModelFromArtifact(org.apache.maven.artifact.Artifact artifact)
|
static List |
getModelsFromArtifacts(org.apache.maven.project.MavenProject project)
Scan every jarfile that this maven project has a dependency on, looking for metadata files. |
static Model |
loadModel(File infile)
Read the contents of the model from an xml file. |
static Model |
readModel(Reader reader)
Read the contents of the model from a provided Reader object. |
static void |
saveModel(Model model,
File outfile)
Write the contents of the model to an xml file. |
static void |
visitSources(ModelParams parameters,
IOUtils.SourceVisitor visitor)
|
static void |
writeModel(Model model,
Writer writer)
Write the contents of the model to a provided Writer object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOUtils()
Method Detail |
---|
public static void saveModel(Model model, File outfile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static void writeModel(Model model, Writer writer) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static Model loadModel(File infile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static boolean existsSourceFile(String filename, List sourceDirs)
public static Model getModelFromArtifact(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static List getModelsFromArtifacts(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
Each file found is loaded into memory as a Model object and added to the list.
org.apache.maven.plugin.MojoExecutionException
public static Model readModel(Reader reader) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static void visitSources(ModelParams parameters, IOUtils.SourceVisitor visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |