From 58f8db35ee5db94294191fc2599cb02a8086b881 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Mon, 8 Jan 2001 04:25:26 +0000 Subject: [PATCH] avoid breaking backward comatability The weblogicDTD attribute in ant 1.2 was used to give the location Af the weblogic version of the generic ejb-jar DTD. In recent 1.3alpha builds this role was taken by ejbdtd and the weblogicdtd attribute was now used to locate the weblogic deployment descriptor's DTD. Whilst sensible, this breaks backward comatability. Therefore, I have reverted the weblogicDTD attribute to work as it did in ant 1.2 and it is now a synonym for ejbdtd. A new attribute wldtd is used to locate the weblogic DTD. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268408 13f79535-47bb-0310-9956-ffa450edef68 --- .../taskdefs/optional/ejb/WeblogicDeploymentTool.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java index 5bb1d5373..8aaf47db2 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java @@ -156,11 +156,20 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool { /** - * Setter used to store the location of the weblogic DTD. This can be a file on the system + * Setter used to store the location of the ejb-jar DTD. This can be a file on the system * or a resource on the classpath. * @param inString the string to use as the DTD location. */ public void setWeblogicdtd(String inString) { + this.ejbDTD = inString; + } + + /** + * Setter used to store the location of the weblogic DTD. This can be a file on the system + * or a resource on the classpath. + * @param inString the string to use as the DTD location. + */ + public void setWLdtd(String inString) { this.weblogicDTD = inString; }