ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: ant -u http://somewhere/build.xml
Date Thu, 28 Jan 2010 05:40:42 GMT
>> We have a need for ant to be easily able to use a build.xml file 
>> available on a remote server, which means that I would really like to

>> be able to provide an URL instead of a filename to ant.

>the import task in 1.8.x supports importing resources which can be
URLs. 
>So maybe the main build file cannot be http based, but the meat of the 
>build file can. So maybe you can have a stub of a build file 
>on the file system ?


If the easiest "URL buildfile scenario" is

$ant -f build.xml -Durl=...

<project>
  <import><url url="${url}"/></import>
</project>


A shorter way would

$ant -u url -basedir .

which autoloads that buildfile sets the url and basedir and all should
work?



Jan

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


Mime
View raw message