org.ops4j.pax.construct.clone
Class ArchetypeModel

java.lang.Object
  extended by org.ops4j.pax.construct.clone.ArchetypeModel

public class ArchetypeModel
extends java.lang.Object

Replacement for the Maven archetype model, to support non-filtered files


Constructor Summary
ArchetypeModel()
          Create a new archetype model
 
Method Summary
 void addResource(java.lang.String entry, boolean isFiltered)
           
 void addSource(java.lang.String entry)
           
 void addTestResource(java.lang.String entry, boolean isFiltered)
           
 void addTestSource(java.lang.String entry)
           
 void setAllowPartial(boolean allowPartial)
           
 void setId(java.lang.String id)
           
 void write(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchetypeModel

public ArchetypeModel()
Create a new archetype model

Method Detail

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 file
isFiltered - true if the file should be filtered, otherwise false

addTestResource

public void addTestResource(java.lang.String entry,
                            boolean isFiltered)
Parameters:
entry - test resource file
isFiltered - 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.