ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francisco Tolmasky <>
Subject Relative Paths in Imported Files
Date Sun, 17 Aug 2008 20:18:39 GMT
I have a common.xml file that I import in all my build.xml throughout  
my project (subdirectories included).  One of the tasks defined in  
this common.xml has to reference a file in a java task, as so:

     <macrodef name = "my-tasl">

         <element name = "arguments"/>

             <java classname = "blah..Main" >
                     <pathelement location = "../Jars/thejar.jar" />
                     <pathelement location = "." />


Unfortunately, this only works from certain directories, since the  
pathelement location is relative.  Is there any way to make a relative  
file path from the location of the common.xml file itself?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message