ant inherifRefs & echo for variables  
Author Message
ion





PostPosted: 2005-4-29 0:03:00 Top

java-programmer, ant inherifRefs & echo for variables 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





PostPosted: 2005-4-29 2:48:00 Top

java-programmer >> ant inherifRefs & echo for variables Here's one message addressing the problem:
http://groups-beta.google.com/group/comp.lang.java.programmer/messages/64fd787590185471,7645b483e4465b30,7645b483e4465b30?hl=en&thread_id=c3e6987daeed1d43&mode=thread&noheader=1&q=ant+variable+classpath&_done=%2Fgroup%2Fcomp.lang.java.programmer%2Fbrowse_frm%2Fthread%2Fc3e6987daeed1d43%2F7645b483e4465b30%3Fq%3Dant+variable+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





PostPosted: 2005-4-29 2:51:00 Top

java-programmer >> ant inherifRefs & echo for variables 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.