Hi!

I figured out the following construction.

    <macrodef name="copy2dir">
        <attribute name="todir"/>
        <attribute name="filelistid"/>
        <sequential>
            <echo message="### Copying filelist to directory [EMAIL 
PROTECTED]"/>
            <for param="myfile">
                <filelist refid="@{filelistid}"/>
                <sequential>
                    <copy verbose="false" overwrite="true" file="@{myfile}" 
todir="@{todir}"/>
                </sequential>
            </for>
            <echo message="### Copying finished."/>
        </sequential>
    </macrodef>

    <target name="make-pkg">
        <filelist id="filelist.tmp">
            <file name="/src/alpha"/>
            <file name="/src/beta"/>
            <file name="/src/gamma"/>
        </filelist>
        <copy2dir filelistid="filelist.tmp" todir="/tmp"/>
    </target>

It works fine.
But nevertheless, is there maybe a simpler way to achieve this?

Regards,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to