|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.construct.clone.ArchetypeFragment
public class ArchetypeFragment
Support creation of simple archetype fragments
Constructor Summary | |
---|---|
ArchetypeFragment(java.io.File tempDir,
java.lang.String namespace,
boolean unify)
Create a new archetype fragment |
Method Summary | |
---|---|
void |
addPom(java.io.File projectDir,
PomUtils.Pom pom)
Add primary Maven project POM |
void |
addResources(java.io.File projectDir,
java.lang.String path,
boolean isTest)
Add collection of resource files |
void |
addResources(java.io.File projectDir,
java.lang.String path,
java.util.List includes,
java.util.List excludes,
boolean isTest)
Add collection of resource files |
void |
addSources(java.io.File projectDir,
java.lang.String path,
boolean isTest)
Add collection of source files |
void |
createArchive(java.lang.String fragmentId,
org.codehaus.plexus.archiver.Archiver archiver)
Create archive of archetype fragment |
java.util.List |
getIncludedFiles()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchetypeFragment(java.io.File tempDir, java.lang.String namespace, boolean unify)
tempDir
- some temporary directorynamespace
- primary namespace, may be nullunify
- set true when unifying Maven projectsMethod Detail |
---|
public void addPom(java.io.File projectDir, PomUtils.Pom pom)
projectDir
- project directorypom
- customized Maven project modelpublic void addSources(java.io.File projectDir, java.lang.String path, boolean isTest)
projectDir
- project directorypath
- source locationisTest
- true if these are test sources, otherwise falsepublic void addResources(java.io.File projectDir, java.lang.String path, boolean isTest)
projectDir
- project directorypath
- resource locationisTest
- true if these are test resources, otherwise falsepublic void addResources(java.io.File projectDir, java.lang.String path, java.util.List includes, java.util.List excludes, boolean isTest)
projectDir
- project directorypath
- resource locationincludes
- list of included namesexcludes
- list of excluded namesisTest
- true if these are test resources, otherwise falsepublic void createArchive(java.lang.String fragmentId, org.codehaus.plexus.archiver.Archiver archiver) throws org.apache.maven.plugin.MojoExecutionException
fragmentId
- unique archetype identifierarchiver
- Jar archiver
org.apache.maven.plugin.MojoExecutionException
public java.util.List getIncludedFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |