public class RemoveVersionTask
extends Task
Removes the version of all the subdirectories of a given directory. See
Util.removeVersion(File)
for further details.
This task may be useful 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.util.RemoveVersion parentDir="c:\eclipse\plugins"/>
Constructor and Description |
---|
RemoveVersionTask() |
Modifier and Type | Method and Description |
---|---|
static void |
assertTrue(java.lang.String message,
boolean expression) |
protected void |
checkAttributes() |
void |
execute() |
void |
setParentDir(java.io.File dir) |
public static void assertTrue(java.lang.String message, boolean expression) throws BuildException
BuildException
public void setParentDir(java.io.File dir)
protected void checkAttributes() throws BuildException
BuildException
public void execute() throws BuildException
BuildException