diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java index 2ada0d2ca..27c17c4b3 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Jar.java +++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java @@ -163,9 +163,14 @@ public class Jar extends Zip { } /** - * Not used for jar files. - * @param we not used - * @ant.attribute ignore="true" + * Indicates if a jar file should be created when it would only contain a + * manifest file. + * Possible values are: fail (throw an exception + * and halt the build); skip (do not create + * any archive, but issue a warning); create + * (make an archive with only a manifest file). + * Default is create; + * @param we a WhenEmpty enumerated value */ public void setWhenmanifestonly(WhenEmpty we) { emptyBehavior = we.getValue();