ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "I am Who i am" <rag...@gmail.com>
Subject exec task with *
Date Thu, 11 Sep 2008 20:04:07 GMT
Hi All

I'm trying to zip one folder, with some specific files from it as part of
build like
  <exec dir="/home/${usr}/doc" executable="zip" failonerror="true">
      <arg line="-ll doc.jar *.properties">
  </arg>

but this throws error zip warning: name not matched: *.properties

so i tried to use <shellscript> task from ant-contrib

<shellscript shell="bash" dir="/home/${usr}/doc">

cd /home/${usr}/doc

zip -ll doc.jar *.properties

</shellscript>

This works, but i have problem with this, when there is some valid error
lets say ${usr} directory doesn't exist, this task is no failing. Means
build is not failing at that position, it just keeps continue to next target
on the build.xml

Any one has any idea on how to make sure to have failonerror=true for this??

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message