ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
Date Wed, 04 Oct 2000 06:58:45 GMT
----- Original Message -----
From: "Glenn and Sarah McAllister" <>
To: <>
Sent: Wednesday, October 04, 2000 9:46 AM
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs

> Let me know if anyone has problems.

Not really a problem (the copy/delete tasks work fine with my buildfile) but
a question on how one could/should use filesets:

I have some filesets as follow in my buildfile

    <copy todir="${build.src}" filtering="no">
      <fileset dir="${build.vss}/${}" >
        <include name="**/*.java"/>
        <include name="**/*.bmp"/>
        <include name="**/*.resources"/>
        <include name="**/*.properties"/>
        <exclude name="de/hmorga/"/>
        <exclude name="de/hmorga/util/"/>

which are located in a target which is called by <antcall target=" ...>. I
tried to put these at the top-level and use them by id, but since they seem
to be resolved at parse time they break my buildfile. I tried to use it like

<?xml version="1.0"?>
<project name="myProject" default="default" basedir=".">
  <fileset id="filesettest" dir="${main.dir}/${sub.dir}" includes="*.xml">
  <target name="default">
    <property name="main.dir" value="C:/VAMOS50/Source"/>
    <property name="sub.dir" value="Framework/Core2"/>
    <property name="xml-files" refid="filesettest"/>
    <echo message="XML-Files: ${xml-files}"/>

and it fails with:


test4.xml:15: C:\VAMOS50\SourceExt\${main.dir}\${sub.dir} not found.


View raw message