Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Copy task not working as expected

Copy task not working as expected

2005-05-14       - By miten mehta
Reply:     1     2     3  

Hello,

I am having problem getting ant task copy to work as
expected.  Refer dir structure and task snippets
below.  

I would like to copy sys, scripts dir tree from
/home/mit/common to /home/mit/install.  so sys and
scripts tree should be available under install after
tasks are executed.

Also copy xml, config tree from /home/mit to
/home/mit/install but to make sure that
config/messages tree is excluded.
so we should have xml and config tree into
/home/install.

At end we should have in /home/mit/install following
dir tree:
sys, scripts, xml, config (excluding messages)

can you guide what am I doing wrong?

Dir structure:
------------------

/home/mit/install

/home/mit/common/sys
/home/mit/common/scripts

/home/mit/xml/
/home/mit/config/messages

ant tasks that dont work:
------------------------------------

 <copy todir="/home/mit/install">
       <fileset dir="/common">
         <include name="sys/, scripts/"/>
       </fileset>
 </copy>
 
<copy todir="/home/mit/install">
       <fileset dir=".">
         <include name="xml/, config/"/>
         <exclude name="config/messages/"/>
      </fileset>
</copy>


   
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.