How to get the classpath from ant build file
Posted on 2008-06-13
I have a ant build file as follows:
<project name="test" basedir=".">
<property name="lib.dir" value="/data/java_library/ext"/>
I would to run something like:
MYCLASSPATH=`ant -q cp`
which should set the environment variable MYCLASSPATH to whatever is defined in the ant build file.
how can I do that?