ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeremy weber <jeremywe...@yahoo.com>
Subject Zipfileset/Filemode and 1.53
Date Mon, 14 Apr 2003 15:50:55 GMT
I am experiencing difficulties setting permissions on
a directory to be included in a zip file.  I just
installed 1.53 and I am having the same problems I saw
in 1.52.  Basically one target does this correctly,
the other incorrectly.  I am building on win2k and
testing on Solaris.  Could that be an issue?

I have several targets that create zips.  This one
works.
   <zip destfile="${dist}/${pkg.name}.zip">
   <zipfileset dir="${resin.bin}" prefix="bin"
filemode="744"
    includes="wrapper.pl,
     httpd.sh"/>
   <zipfileset dir="${install.conf}" prefix="conf"/>
   <zipfileset dir="${resin.lib}" prefix="lib"/>
   <zipfileset dir="${libexec}" prefix="libexec"/>
   <zipfileset dir="${install.libexec}"
prefix="libexec"
    includes="**/libGetGid.so"/>
   <zipfileset dir="${install.webapp}/pages"
prefix="webapps/vsinstall/pages"
    includes="**/*.jsp,
     **/*.css"/>
   <zipfileset dir="${install.webapp}/images"
prefix="webapps/vsinstall/images"
    includes="**/*.jpg,
     **/*.gif"/>
   <zipfileset dir="${install.webinf}"
prefix="webapps/vsinstall/WEB-INF"
    includes="*.tld,
     *.xml"/>
   <zipfileset dir="${install.lib}"
prefix="webapps/vsinstall/WEB-INF/lib"/>
   <zipfileset file="${dist}/${vsynch.pkg}"/>
   <zipfileset file="${dist}/${vsapp.pkg}"/>
   <zipfileset file="${dist}/${vsdb.pkg}"/>
  </zip>

This one fails.
  <zip destfile="${dist}/${vsapp.pkg}" >
   <zipfileset dir="${sourcedir}/resin/bin"
prefix="bin" filemode="744"
    includes="**/*.sh,
     **/*.pl"/>
   <zipfileset dir="${resin.conf}" prefix="conf"/>
   <zipfileset dir="${resin.lib}" prefix="lib"/>
   <zipfileset dir="${resin.pid}" prefix="pid"/>
   <zipfileset dir="${libexec}" prefix="libexec"/>
   <zipfileset dir="${jsp}"
prefix="${vs.webapp}/jsp"/>
   <zipfileset dir="${includes}"
prefix="${vs.webapp}/includes"/>
   <zipfileset dir="${logs}" prefix="logs"
    includes="UserTool.log,
     archive.flag,
     vendorsite.log,
     stdout.log,
     stderr.log,
     access.log,
     error.log"/>
   <zipfileset dir="${web-inf}" prefix="${vs.webinf}"
/>
   <zipfileset dir="${lib}"
prefix="${vs.webinf}/lib"/>
  </zip>

Anyone have any suggestions?

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

Mime
View raw message