Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2005

Tip: Looking for answers? Try searching our database.

ant inherifRefs & echo for variables

Thread view: 
ion - 28 Apr 2005 17:03 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.