net.sf.antcontrib.antclipse

Class ClassPathTask


public class ClassPathTask
extends Task

Support class for the Antclipse task. Basically, it takes the .classpath Eclipse file and feeds a SAX parser. The handler is slightly different according to what we want to obtain (a classpath or a fileset)
Version:
$Revision: 1.2 $
Author:
Adrian Spinei aspinei@myrealbox.com
Since:
Ant 1.5

Field Summary

static String
TARGET_CLASSPATH
static String
TARGET_FILESET

Method Summary

void
execute()
void
setExcludes(String excludes)
Setter for task parameter
void
setIdContainer(String idContainer)
Setter for task parameter
void
setIncludeLibs(boolean includeLibs)
Setter for task parameter
void
setIncludeOutput(boolean includeOutput)
Setter for task parameter
void
setIncludeSource(boolean includeSource)
Setter for task parameter
void
setIncludes(String includes)
Setter for task parameter
void
setProject(String project)
Setter for task parameter
void
setVerbose(boolean verbose)
Setter for task parameter
void
setproduce(String produce)
Setter for task parameter

Field Details

TARGET_CLASSPATH

public static final String TARGET_CLASSPATH

TARGET_FILESET

public static final String TARGET_FILESET

Method Details

execute

public void execute()
            throws BuildException
See Also:
org.apache.tools.ant.Task.execute()

setExcludes

public void setExcludes(String excludes)
Setter for task parameter
Parameters:
excludes - A regexp for files to exclude. It is taken into account only when producing a classpath, doesn't work on source or output files. It is a real regexp, not a "*" expression.

setIdContainer

public void setIdContainer(String idContainer)
Setter for task parameter
Parameters:
idContainer - The refid which will serve to identify the deliverables. When multiple filesets are produces, their refid is a concatenation between this value and something else (usually obtained from a path). Default "antclipse"

setIncludeLibs

public void setIncludeLibs(boolean includeLibs)
Setter for task parameter
Parameters:
includeLibs - Boolean, whether to include or not the project libraries. Default is true.

setIncludeOutput

public void setIncludeOutput(boolean includeOutput)
Setter for task parameter
Parameters:
includeOutput - Boolean, whether to include or not the project output directories. Default is false.

setIncludeSource

public void setIncludeSource(boolean includeSource)
Setter for task parameter
Parameters:
includeSource - Boolean, whether to include or not the project source directories. Default is false.

setIncludes

public void setIncludes(String includes)
Setter for task parameter
Parameters:
includes - A regexp for files to include. It is taken into account only when producing a classpath, doesn't work on source or output files. It is a real regexp, not a "*" expression.

setProject

public void setProject(String project)
Setter for task parameter
Parameters:
project - project name

setVerbose

public void setVerbose(boolean verbose)
Setter for task parameter
Parameters:
verbose - Boolean, telling the app to throw some info during each step. Default is false.

setproduce

public void setproduce(String produce)
Setter for task parameter
Parameters:
produce - This parameter tells the task wether to produce a "classpath" or a "fileset" (multiple filesets, as a matter of fact).