ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsw.com>
Subject RE: Zip task: Blank in files names do not work
Date Tue, 31 Oct 2000 17:07:46 GMT
Thank you, that works like a charm. 

Note that the user manual only specifies that patterns are separated by
commas. Spaces are not mentioned. It seems that the use of any type of
comma, or otherwise separated list in an XML attribute string is not in the
spirit of XML. This is where a repeated XML child element makes sense. Also,
wouldn't using blanks as a list separator cause trouble if you are trying to
specify a pattern containing spaces?

Gary

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@bost.de]
Sent: Tuesday, October 31, 2000 1:49 AM
To: ant-user@jakarta.apache.org
Subject: Re: Zip task: Blank in files names do not work


>>>>> "GG" == Gary Gregory <GGregory@seagullsw.com> writes:

 GG> Blanks in file names for the Zip task do not appear to function.

I think it is the includes attribute that is working not quite the way
you expect it to work. Does

<zip zipfile="${zip-path-AIS-MQ-server}">
  <fileset dir="${dist.dir}">
    <include name="Application Integration Server MQSeries.bat" />
  </fileset>
</zip>

work?

The includes attribute expects a list of patterns separated by space
or comma while the nested include elements take exactly one pattern
each - so the meaning of spaces is ambiguous in the includes attribute
but not in the nested element.

Stefan

Mime
View raw message