ant-user mailing list archives

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

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 name="do-test" depends="prepare">
    <fileset id="files" dir="${basedir}">
	  <filename name="foo" />
	  <filename name="bar" />
    <property name="files.converted" refid="files" />
    <echo message="property files.converted = ${files.converted}" />





To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message