954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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:

<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!

rwagnes
Light Poster
36 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 
Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 
http://ant.apache.org/manual/CoreTasks/move.html

ok, this is what i've done

<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>



but the build fails..am I missing something?

rwagnes
Light Poster
36 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

ok, this is what i've done

<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>
but the build fails..am I missing something?

I think its a prior issue. Thanks for your help.

rwagnes
Light Poster
36 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You