| | |
Rename directory in ant build script
![]() |
I am compiling a program with an ant build script. I have a fileset with several include files that looks like this:
I need the script to rename the images directory to Images. Any suggestions?
Thanks!
Java Syntax (Toggle Plain Text)
<copy todir="Packaging/Core/web/webapps/cwa/help" > <fileset dir="${webhelp}" > <include name="*.*" /> <include name="images/**/*" /> <include name="scripts/**/*" /> <include name="ug/**/*" /> <include name="wwhdata/**/*" /> <include name="wwhelp/**/*" /> </fileset> </copy>
I need the script to rename the images directory to Images. Any suggestions?
Thanks!
ok, this is what i've done
but the build fails..am I missing something?
Java Syntax (Toggle Plain Text)
<copy todir="Packaging/Core/web/webapps/cwa/help" > <fileset dir="${webhelp}" > <include name="*.*" /> <include name="images/**/*" /> <include name="scripts/**/*" /> <include name="ug/**/*" /> <include name="wwhdata/**/*" /> <include name="wwhelp/**/*" /> </fileset> </copy> <move todir="Packaging/Core/web/webapps/cwa/help/${webhelp}/Images"> <fileset dir="Packaging/Core/web/webapps/cwa/help/${webhelp}/images"/> </move>
•
•
•
•
ok, this is what i've done
but the build fails..am I missing something?Java Syntax (Toggle Plain Text)
<copy todir="Packaging/Core/web/webapps/cwa/help" > <fileset dir="${webhelp}" > <include name="*.*" /> <include name="images/**/*" /> <include name="scripts/**/*" /> <include name="ug/**/*" /> <include name="wwhdata/**/*" /> <include name="wwhelp/**/*" /> </fileset> </copy> <move todir="Packaging/Core/web/webapps/cwa/help/Images"> <fileset dir="Packaging/Core/web/webapps/cwa/help/images"/> </move>
![]() |
Similar Threads
- problem with creating jsp custom tag (JSP)
- Auto generate Java Code from WSDL using Axis (Java)
- Configure Ant to include libraries (Java)
- How to install Apache POI (Java)
- Windows script need help (Computer Science)
- can not build with ANT (Java)
- ant build process is not working (Java)
- I get the error no file or directory when i try to run a perl script (Perl)
Other Threads in the Java Forum
- Previous Thread: Interface ... extends ... implements ... (Need help)
- Next Thread: How do you output in two columns?
| Thread Tools | Search this Thread |
-xlint add android api applet application array arrays automation bi binary blackberry block bluetooth class client code compile compiler component database developmenthelp eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide image int integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loops mac main map method methods mobile myregfun netbeans nonstatic notdisplaying number online pearl problem program programming project qt recursion scanner screen server set singleton sms sort spamblocker sql string swing system textfields thread threads time title tree tutorial-sample update variablebinding windows working xor






