Walker Joe wrote:
> [snip]
> <zip zipfile="this_should_not_exist.zip" excludes="pkg_a,pkg_b" ... />
> 
> And then I know if i've caught everything in my pkg_* specs.
> 
> I make no claim that this is elegant, or the best way of doing things, or
> even "correct" usage, and I'm not saying - "leave that in because I need
> it". Simply, that there is a use, and maybe others have found the same.

The Zip task could easily log a warning and exit early if no files
match, instead of letting it run to the point of giving a BuildException
(and halting the build). (This behavior should be disabled in the Jar
task.) But there should at least be a warning I think. Or it would
probably not be hard to create an empty zip file (bypassing
java.util.zip, just hardcoding the contents; see attached prototype,
constructed in a hex editor acc. to PKZIP spec). Other opinions?

-Jesse

-- 
Jesse Glick   <mailto:[EMAIL PROTECTED]>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

<<attachment: blank.zip>>

Reply via email to