org.eclipse.emf.ant.taskdefs
Class RemoveVersionTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.eclipse.emf.ant.taskdefs.EMFTask
              extended byorg.eclipse.emf.ant.taskdefs.RemoveVersionTask

public class RemoveVersionTask
extends EMFTask

Removes the version of all the subdirectories of a given directory. See Util.removeVersion(File) for further details. This task may be usefull when generating code for which the defined model (a Rose file for example) depends on directory names to find its dependencies.

If this task is executed by a Eclipse driver with the org.eclipse.emf.ant plugin, it is neither necessary to use Ant's task TaskDef to declare this task in a script nor to change the Ant's runtime classpath.

Usage example:

 <emf.RemoveVersion parentDir="c:\eclipse\plugins"/>
 

Since:
2.1.0

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
RemoveVersionTask()
           
 
Method Summary
protected  void checkAttributes()
          All the attribute checks should be performed in this method.
protected  void doExecute()
          Performs the task specific code.
 void setParentDir(File dir)
           
 
Methods inherited from class org.eclipse.emf.ant.taskdefs.EMFTask
assertTrue, execute, getProgressMonitor
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveVersionTask

public RemoveVersionTask()
Method Detail

setParentDir

public void setParentDir(File dir)

checkAttributes

protected void checkAttributes()
                        throws org.apache.tools.ant.BuildException
Description copied from class: EMFTask
All the attribute checks should be performed in this method.

Overrides:
checkAttributes in class EMFTask
Throws:
org.apache.tools.ant.BuildException

doExecute

protected void doExecute()
                  throws Exception
Description copied from class: EMFTask
Performs the task specific code.

Specified by:
doExecute in class EMFTask
Throws:
Exception

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.