ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Task adapter
Date Tue, 16 May 2006 13:40:14 GMT
>The problem is that I have a lot of filesets, and each of them 
>must be copied to its own directory. This way I'm getting a 
>lot of instances of modified copy task, which in turn create 
>many instances of shellscipt task, which do a lot of 
>shell/system calls. This last bit makes the whole system very 
>fragile, according to our experience.

Just an idea .....

<fileset id="one" .../>
<fileset id="two" .../>

<property name="" value="dest-for-one"/>
<property name="todir.two" value="dest-for-two"/>

<macrodefdef name="mycopy">
    <attribute name="fileset"/>
        <mkdir dir="${todir.@{fileset}}"/>
        <copy todir="${todir.@{fileset}}">
            <fileset refid="@{fileset}"/>

<mycopy fileset="one"/>
<mycopy fileset="two"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message