J2EEClasspathTask


Description
Obtains the full classpath from an Eclipse/WSAD project into a property. The resulting classpath contains absolute paths and file names to any JAR file on the projects build path and the output directories for any referenced projects.

It will map EAR project names for libraries referenced in EARs to the proper file system name. It picks up classpath references from included JARs and referenced projects.
To use this as an ANT task, you will need to add a taskdef to your build file:

<taskdef name="getJ2EEclasspath" classname="com.deaded.ant.J2EEClasspathTask"
    classpath="commonAntTasks.jar"/>

Parameters
Attribute Description Required
ProjectName The name of the WSAD project to get the classpath from Yes
ProjectClasspathProperty The name of the property to put the result in Yes

Example
This takes the classpath from the project.name and puts it into the project.classpath property

<getJ2EEclasspath ProjectName="$" ProjectClasspathProperty="project.classpath"/>


DeadEd.com
http://www.deaded.com/staticpages/index.php/j2eeclasspathtask