Rename directory in ant build script

Reply

Join Date: Dec 2006
Posts: 35
Reputation: rwagnes is an unknown quantity at this point 
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

Rename directory in ant build script

 
0
  #1
Nov 6th, 2007
I am compiling a program with an ant build script. I have a fileset with several include files that looks like this:

  1. <copy todir="Packaging/Core/web/webapps/cwa/help" >
  2. <fileset dir="${webhelp}" >
  3. <include name="*.*" />
  4. <include name="images/**/*" />
  5. <include name="scripts/**/*" />
  6. <include name="ug/**/*" />
  7. <include name="wwhdata/**/*" />
  8. <include name="wwhelp/**/*" />
  9. </fileset>
  10. </copy>

I need the script to rename the images directory to Images. Any suggestions?

Thanks!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,433
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 507
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Rename directory in ant build script

 
0
  #2
Nov 6th, 2007
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 35
Reputation: rwagnes is an unknown quantity at this point 
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

Re: Rename directory in ant build script

 
0
  #3
Nov 6th, 2007
Originally Posted by Ezzaral View Post
http://ant.apache.org/manual/CoreTasks/move.html
ok, this is what i've done

  1. <copy todir="Packaging/Core/web/webapps/cwa/help" >
  2. <fileset dir="${webhelp}" >
  3. <include name="*.*" />
  4. <include name="images/**/*" />
  5. <include name="scripts/**/*" />
  6. <include name="ug/**/*" />
  7. <include name="wwhdata/**/*" />
  8. <include name="wwhelp/**/*" />
  9. </fileset>
  10. </copy>
  11. <move todir="Packaging/Core/web/webapps/cwa/help/${webhelp}/Images">
  12. <fileset dir="Packaging/Core/web/webapps/cwa/help/${webhelp}/images"/>
  13. </move>
but the build fails..am I missing something?
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 35
Reputation: rwagnes is an unknown quantity at this point 
Solved Threads: 0
rwagnes's Avatar
rwagnes rwagnes is offline Offline
Light Poster

Re: Rename directory in ant build script

 
0
  #4
Nov 6th, 2007
Originally Posted by rwagnes View Post
ok, this is what i've done

  1. <copy todir="Packaging/Core/web/webapps/cwa/help" >
  2. <fileset dir="${webhelp}" >
  3. <include name="*.*" />
  4. <include name="images/**/*" />
  5. <include name="scripts/**/*" />
  6. <include name="ug/**/*" />
  7. <include name="wwhdata/**/*" />
  8. <include name="wwhelp/**/*" />
  9. </fileset>
  10. </copy>
  11. <move todir="Packaging/Core/web/webapps/cwa/help/Images">
  12. <fileset dir="Packaging/Core/web/webapps/cwa/help/images"/>
  13. </move>
but the build fails..am I missing something?
I think its a prior issue. Thanks for your help.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC