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!

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?

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.

This article has been dead for over six months. Start a new discussion instead.