ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rauch <holger.ra...@heitec.de>
Subject Why don't my selectors select anything?
Date Tue, 29 Mar 2005 15:48:09 GMT
Hi!

I'm using Ant 1.6.2 on Linux and having trouble with selectors in a fileset.
In the following small build file "foo" and "bar" are NOT included in the
fileset even though these two files actually exist. Unfortunately, running
"ant -d" doesn't give me additional info and reading the Ant manual on
selectors wasn't of much help either.

Running "ant -d" only tells me the following with regard to my fileset:

fileset: Setup scanner in dir /home/hrauch/bazl/sign-test/ant-feature-tests
with patternSet{ includes: [] excludes: [] }
Setting project property: files.converted ->

Why aren't my files listed in the property files.converted?

TIA for any help!

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

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

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

  <target name="prepare">
    <touch file="${basedir}/foo" />
    <touch file="${basedir}/bar" />
  </target>

  <target name="do-test" depends="prepare">
    <fileset id="files" dir="${basedir}">
      <and>
	<selector>
	  <filename name="foo" />
	</selector>
	<selector>
	  <filename name="bar" />
	</selector>
      </and>
    </fileset>
    <property name="files.converted" refid="files" />
    <echo message="property files.converted = ${files.converted}" />
  </target>

</project>

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

Greetings,

	Holger

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


Mime
View raw message