org.ops4j.pax.construct.clone
Class ArchetypeModel
java.lang.Object
org.ops4j.pax.construct.clone.ArchetypeModel
public class ArchetypeModel
- extends java.lang.Object
Replacement for the Maven archetype model, to support non-filtered files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArchetypeModel
public ArchetypeModel()
- Create a new archetype model
setId
public void setId(java.lang.String id)
- Parameters:
id
- archetype id
setAllowPartial
public void setAllowPartial(boolean allowPartial)
- Parameters:
allowPartial
- true if this is a partial archetype, otherwise false
addSource
public void addSource(java.lang.String entry)
- Parameters:
entry
- source file
addTestSource
public void addTestSource(java.lang.String entry)
- Parameters:
entry
- test source file
addResource
public void addResource(java.lang.String entry,
boolean isFiltered)
- Parameters:
entry
- resource fileisFiltered
- true if the file should be filtered, otherwise false
addTestResource
public void addTestResource(java.lang.String entry,
boolean isFiltered)
- Parameters:
entry
- test resource fileisFiltered
- true if the file should be filtered, otherwise false
write
public void write(java.io.File file)
throws java.io.IOException
- Parameters:
file
- where to save the archetype model
- Throws:
java.io.IOException
Copyright © 2007-2008 OPS4J. All Rights Reserved.