ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Copy.java Move.java Copydir.java Copyfile.java defaults.properties Delete.java Deltree.java Rename.java
Date Wed, 04 Oct 2000 06:58:45 GMT
----- Original Message -----
From: "Glenn and Sarah McAllister" <glenn.mcallister@sympatico.ca>
To: <ant-dev@jakarta.apache.org>
Sent: Wednesday, October 04, 2000 9:46 AM
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs
Copy.java Move.java Copydir.java Copyfile.java defaults.properties
Delete.java Deltree.java Rename.java


> 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}/${project.name}" >
        <include name="**/*.java"/>
        <include name="**/*.bmp"/>
        <include name="**/*.resources"/>
        <include name="**/*.properties"/>
        <exclude name="de/hmorga/Version.java"/>
        <exclude name="de/hmorga/util/Debug.java"/>
      </fileset>
    </copy>

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
this:

<?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}"/>
  </target>
</project>

and it fails with:

BUILD FAILED

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

Nico






Mime
View raw message