ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Hostname and loops
Date Tue, 31 Oct 2000 16:04:36 GMT
>>>>> "NC" == Nicholas Christopher <> 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.

 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/**" />

 NC> It seemed I wanted a fileset made up of several filesets

You can specify more than one fileset for <copy> as well.


View raw message