ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helmut Lerch" <zussl.jo...@utanet.at>
Subject Retaining directory structure with image task
Date Sun, 22 May 2005 17:17:52 GMT
Dear all

I have a problem with the image task.

Lets say I have a directory structure like:

${src}/image1/img1.jpg
${src}/image1/img2.jpg
${src}/image2/img3.jpg
${src}/image2/img4.jpg

If  I use the copy task:

<target name="tar_copy" >
  <copy toDir="${copyPath}" >
   <fileset dir="${src}" casesensitive="yes">
    <include name="**/*.jpg" />
   </fileset>
  </copy>
 </target>

I get the result:
${copyPath}/image1/img1.jpg
${copyPath}/image1/img2.jpg
${copyPath}/image2/img3.jpg
${copyPath}/image2/img4.jpg

If I use the image task:

 <target name="tar_image" >
  <image destDir="${imagePath}" >
   <scale proportions="width" width="128"/>
   <fileset dir="${src}" casesensitive="yes">
    <include name="**/*.jpg" />
   </fileset>
  </image>
 </target>

I get the result (with the new scaled images).
${imagePath}/img1.jpg
${imagePath}/img2.jpg
${imagePath}/img3.jpg
${imagePath}/img4.jpg

However, I need to have the same result as with copy. What I am doing wrong?

Many thanks for help.
Heli


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message