ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20485] New: - The <sync> task doesn't support the nested "filterset" element
Date Wed, 04 Jun 2003 21:08:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20485>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20485

The <sync> task doesn't support the nested "filterset" element

           Summary: The <sync> task doesn't support the nested "filterset"
                    element
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: devgu@yahoo.com


My buildfile used to <copy> the scripts files to the
dist directory. After changing the file names
in my scripts dir, the old file were not
deleted when I build. I want to use the <sync> task but 
it doesn't support <filterset> which I use in the <copy>.
I can't use the <filter> task as well since <sync> doesn't
support the filtering attribute.

Here is my dist target:

    <target name="dist" depends="pack"
            description="--> Make a lite-dist of the project">

        <!-- Distribute the lib directory -->
        <mkdir dir="${dist.lib.dir}"/>
        <sync todir="${dist.lib.dir}">
            <fileset dir="${build.lib.dir}"/>
        </sync>

        <!-- Distribute the bin directory -->
        <mkdir dir="${dist.bin.dir}"/>
        <pathconvert targetos="windows" 
                     property="server.rt.classpath.text" 
                     refid="server.rt.classpath">
            <map from="${basedir}\${dist.lib.dir}" to="..\lib"/>
        </pathconvert>
        <sync todir="${dist.bin.dir}">
            <fileset dir="${scripts.dir}"/>
            <filterset>
                <filter token="SERVERCP" value="${server.rt.classpath.text}"/>
                <filter token="SERVERMAIN" value="${server.main.class}"/>
            </filterset>
        </sync>

    </target>

- Gu

Mime
View raw message