Hi! I'd like to see what ant thinks a variable value is.
<echo>${varname}</echo> just shows me the literal '${varame}'. I was
hoping there was some way to resolve it.
The reason I want to do this is that delegate build.xml's don't seem to
be inheriting refs
<ant dir="subfolder" inheritAll="false" inheritRefs="true"/> doesn't
seem to be working for me. I'm trying to pass a class path down to the
build file that actually compiles. Is this possible? Is there a common
pitfall I'm probably falling into?
ion - 28 Apr 2005 19:48 GMT
Here's one message addressing the problem:
http://groups-beta.google.com/group/comp.lang.java.programmer/messages/64fd78759
0185471,7645b483e4465b30,7645b483e4465b30?hl=en&thread_id=c3e6987daeed1d43&mode=
thread&noheader=1&q=ant+variable+classpath&_done=%2Fgroup%2Fcomp.lang.java.progr
ammer%2Fbrowse_frm%2Fthread%2Fc3e6987daeed1d43%2F7645b483e4465b30%3Fq%3Dant+vari
able+classpath%26rnum%3D2%26hl%3Den%26#doc_7645b483e4465b30
It says that the pathconvert page has an example which prints out the
class path, but I don't see it:
http://computing.ee.ethz.ch/sepp/ant-1.5.4-ke/manual/CoreTasks/pathconvert.html
I see how to load a printable list into a property, but not how to
display the value of a property. Will echo dereference it?
ion - 28 Apr 2005 19:50 GMT
OK, this seems to work:
<pathconvert pathsep="," property="javafiles" refid="CPATH"/>
<echo message="${javafiles}"/>
Of course, now I don't like what it's telling me.