ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stlecho <stle...@gmail.com>
Subject Re: AW: How to load build.xml from a JAR ?
Date Tue, 27 Jan 2009 12:11:21 GMT

Concerning 
Jan.Materne wrote:
> because the project needs a base directory with real "file access"

If in projectA the build.xml from projectB is called through the ant target,
the basedir of projectA could be used to create directories, resolve
relative paths etc.. Is this correct ?

Would something similar with
"jar:file:///some/location/projectB.jar!/build.xml" work ?

Regards, Stefan.


Jan.Materne wrote:
> 
>>I would like to package a build.xml file into a JAR so that it can be
>>referenced by other projects (using the ant antfile target). I 
>>was thinking
>>about using "classpath:..." in the antfile attribute, but that does not
>>work. How can this functionality be achieved ?
> 
> You cant load the buildfile from an URL, because the project needs a
> base directory with real "file access" so it can create directories,
> resolve relative paths etc.
> 
> You could unzip the build.xml to a specified location and invoke that.
> 
> 
> Jan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-load-build.xml-from-a-JAR---tp21681760p21683679.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message