diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java index 852bf4dd8..e6c0d7f40 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java @@ -202,6 +202,17 @@ public class EjbJar extends MatchingTask { this.baseNameTerminator = inValue; } + /** + * Setter used to store the value of generateweblogic. + * @param inValue a string, either 'true' or 'false'. + */ + public void setGenerateweblogic(String inValue) { + log("The syntax for using ejbjar with Weblogic has changed.", Project.MSG_ERR); + log("Please refer to the ejbjar documentation" + + " for information on the using the nested element", Project.MSG_ERR); + throw new BuildException("generateweblogic not supported - use nested element"); + } + /** * Invoked by Ant after the task is prepared, when it is ready to execute * this task. Parses the XML deployment descriptor to acquire the list of