R
Ronald Fischer
I have a problem compiling using Ant, which lets me suspect that
Ant does not use the classpath which I believe to have set up.
To debug this problem, I would like to output the classpath in
a "readable" fashion (preferably the exact value of the environment
variable CLASSPATH as it is seen by the compiler). How can this done?
Here is what I have:
<path id='p'>
<pathelement location='MySourceDir'/>
<fileset>...</fileset>
...
</path>
<target name='compile'>
...
<echo message='CLASSPATH=WHAT SHOULD I PUT HERE???'/>
<javac classpathref='p'>
....
</javac>
</target>
Ant does not use the classpath which I believe to have set up.
To debug this problem, I would like to output the classpath in
a "readable" fashion (preferably the exact value of the environment
variable CLASSPATH as it is seen by the compiler). How can this done?
Here is what I have:
<path id='p'>
<pathelement location='MySourceDir'/>
<fileset>...</fileset>
...
</path>
<target name='compile'>
...
<echo message='CLASSPATH=WHAT SHOULD I PUT HERE???'/>
<javac classpathref='p'>
....
</javac>
</target>