From Fedora Project Wiki

(Created draft.)
 
(Add Category)
Line 19: Line 19:
  
 
both of which perform the operation correctly.
 
both of which perform the operation correctly.
 +
 +
[[Category:Archived packaging guideline drafts]]

Revision as of 20:06, 15 September 2009

Proposed modification to the Java Packaging Guideline

Currently the sample Ant spec file in the Java packaging guidelines includes the command

find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;

for cleansing pre-existing binary files. However, the command is incorrect, as it does not clean out .jar files. I propose the command to read either

find \( -name '*.jar' -o -name '*.class' \) -exec rm -f '{}' \;

or

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

both of which perform the operation correctly.