ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Assinging file sets to a property
Date Wed, 18 Apr 2001 18:51:22 GMT
----- Original Message -----
From: "Son of Mojo JoJo" <neologic@jabberwock.wonderland.com>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, April 18, 2001 7:56 PM
Subject: Assinging file sets to a property


> Im trying to figure out how you would take a file set, and assign it to a
> property that is a comma seperated list of files for use as an excludes
variable
> of the compiler target.
>

Does

<?xml version="1.0"?>
<project name="test" default="compile" basedir=".">

  <path id="myfiles">
    <fileset dir="D:\Temp">
      <include name="*.java"/>
    </fileset>
  </path>

  <target name="compile">

    <property name="test" refid="myfiles"/>

    <echo message="myfiles: ${test}"/>
  </target>
</project>

work for you?

Nico



Mime
View raw message