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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.