ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rauch <holger.ra...@heitec.de>
Subject Problem with fileset having members containing absolute path names
Date Tue, 15 Mar 2005 10:15:37 GMT
Hi!

I've run into a problem using filesets whose members contain absolute path
names. The following short build script illustrates the problem. 
My questions are:

Why is the property files.converted (supposed to hold the fileset's contents)
empty even though the files actually exist on my system?

Aren't the includes of a fileset relative to the value of the dir attribute?
If so, why doesn't it even work when I specify a / in order to denote the
root dir of the filesystem?

-------------------------------------------------------------------------

<?xml version="1.0" encoding="iso-8859-1"?>

<project name="abs-path-fileset-test" default="do-test" basedir=".">

  <target name="do-test">
    <property name="files.prop" value="/home/hrauch/blah1 /home/hrauch/blah2" />
    <fileset id="files" dir="/" includes="${files.prop}" />
    <property name="files.converted" refid="files" />
    <echo message="property files.prop = ${files.prop}" />
    <echo message="property files.converted = ${files.converted}" />
  </target>

</project>

-------------------------------------------------------------------------

I'm invoking the script from dir /home/hrauch/bazl/bazl-new/empic-suite
(i.e. not directly from the dir where blah1 and blah2 are located).

Thanks in advance for enlightening me on this issue :-)

Kind regards,

	Holger

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


Mime
View raw message