ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Christopher <...@flashcom.net>
Subject Re: Hostname and loops
Date Tue, 31 Oct 2000 23:11:30 GMT
Stefan Bodewig wrote:
> 
> >>>>> "NC" == Nicholas Christopher <nwc@flashcom.net> writes:
> 
>  NC> I realize I can -DHOSTNAME=xxxx on ant's command line but is
>  NC> there a way for to stuff InetAddress.getLocalHost().getHostName()
>  NC> into a property?
> 
> No, but writing a task to do so would be trivial.
> 

Not trivial enough :-) Tasks seem easy but I couldn't immediately see how a task
could set a property.

>  NC> - loops
> 
> Aargh! Sorry, forget that 8-).
> 
>  NC> We had operations that looped over lists of items, like copy all
>  NC> the files in the selected sub directories bin,etc,lib
>  NC> etc. (i.e. not all the sub directories just some) Can I build a
>  NC> fileset that I could feed to the copy task that would do that?
> 
> I think you could, something like
> 
> <fileset dir=".">
>   <include name="bin/**" />
>   <include name="etc/**" />
>   <include name="lib/**" />
> </fileset>
> 
>  NC> It seemed I wanted a fileset made up of several filesets
> 
> You can specify more than one fileset for <copy> as well.

Thanks. This seems to me a little cloudiness with ant. Javac uses multiple <src>
tags, javadoc <sourcepath>, etc. It be nice is there was a single consistant
file list mechanism.

Mime
View raw message