org.apache.jetspeed.anttasks
Class ArchetypeDescriptor

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.jetspeed.anttasks.ArchetypeDescriptor
All Implemented Interfaces:
java.lang.Cloneable

public class ArchetypeDescriptor
extends org.apache.tools.ant.Task

ArchetypeDescriptor This Ant task is used to generate a Maven2 Archetype Descriptor file.

Version:
$Id: $
Author:
Randy Watler

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ArchetypeDescriptor()
           
 
Method Summary
 void addText(java.lang.String header)
          Set archetype descriptor header text
 void execute()
          Executes task to generate desciptor file.
 void setAllowpartial(java.lang.Boolean allowPartial)
          Set archetype partial rules to support execution in existing projects.
 void setArtifactid(java.lang.String artifactId)
          Set archetype artifact id.
 void setBasedir(java.io.File baseDir)
          Set archetype base directory for all sources/resources.
 void setDestfile(java.io.File destFile)
          Set archetype descriptor destination file.
 void setResourcesrefid(org.apache.tools.ant.types.Reference resourcesRefId)
          Set archetype resources fileset refid.
 void setSiteresourcesrefid(org.apache.tools.ant.types.Reference siteResourcesRefId)
          Set archetype site resources fileset refid.
 void setSourcesrefid(org.apache.tools.ant.types.Reference sourcesRefId)
          Set archetype sources refid.
 void setTestresourcesrefid(org.apache.tools.ant.types.Reference testResourcesRefId)
          Set archetype test resources fileset refid.
 void setTestsourcesrefid(org.apache.tools.ant.types.Reference testSourcesRefId)
          Set archetype test sources fileset refid.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchetypeDescriptor

public ArchetypeDescriptor()
Method Detail

addText

public void addText(java.lang.String header)
Set archetype descriptor header text

Parameters:
header - archetype header text

setArtifactid

public void setArtifactid(java.lang.String artifactId)
Set archetype artifact id.

Parameters:
artifactId - archetype artifact id

setAllowpartial

public void setAllowpartial(java.lang.Boolean allowPartial)
Set archetype partial rules to support execution in existing projects.

Parameters:
allowPartial - archetype allow partial setting

setBasedir

public void setBasedir(java.io.File baseDir)
Set archetype base directory for all sources/resources.

Parameters:
baseDir - archtype source/resource base directory

setDestfile

public void setDestfile(java.io.File destFile)
Set archetype descriptor destination file.

Parameters:
destFile - archetype descriptor file to generate

setSourcesrefid

public void setSourcesrefid(org.apache.tools.ant.types.Reference sourcesRefId)
Set archetype sources refid.

Parameters:
sourcesRefId - archetype sources

setResourcesrefid

public void setResourcesrefid(org.apache.tools.ant.types.Reference resourcesRefId)
Set archetype resources fileset refid.

Parameters:
resourcesRefId - archetype resources

setTestsourcesrefid

public void setTestsourcesrefid(org.apache.tools.ant.types.Reference testSourcesRefId)
Set archetype test sources fileset refid.

Parameters:
testSourcesRefId - archetype test sources

setTestresourcesrefid

public void setTestresourcesrefid(org.apache.tools.ant.types.Reference testResourcesRefId)
Set archetype test resources fileset refid.

Parameters:
testResourcesRefId - archetype test resources

setSiteresourcesrefid

public void setSiteresourcesrefid(org.apache.tools.ant.types.Reference siteResourcesRefId)
Set archetype site resources fileset refid.

Parameters:
siteResourcesRefId - archetype site resources

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes task to generate desciptor file.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.