ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb EjbJar.java
Date Mon, 08 Apr 2002 15:28:59 GMT
conor       02/04/08 08:28:59

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        XMLValidateTask.java
               src/main/org/apache/tools/ant/taskdefs/optional/ejb
                        EjbJar.java
  Log:
  Refactor to use a single DTDLocation instance
  Still need to integrate XMLCatalog with these tasks
  
  Revision  Changes    Path
  1.11      +2 -19     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
  
  Index: XMLValidateTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -u -r1.10 -r1.11
  --- XMLValidateTask.java	8 Jan 2002 19:55:36 -0000	1.10
  +++ XMLValidateTask.java	8 Apr 2002 15:28:58 -0000	1.11
  @@ -471,25 +471,8 @@
           }
       }
   
  -    public static class DTDLocation {
  -        private String publicId = null;
  -        private String location = null;
  -
  -        public void setPublicId(String publicId) {
  -            this.publicId = publicId;
  -        }
  -
  -        public void setLocation(String location) {
  -            this.location = location;
  -        }
  -
  -        public String getPublicId() {
  -            return publicId;
  -        }
  -
  -        public String getLocation() {
  -            return location;
  -        }
  +    public static class DTDLocation 
  +        extends org.apache.tools.ant.types.DTDLocation {
       }
   
       private class LocalResolver
  
  
  
  1.33      +2 -43     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java
  
  Index: EjbJar.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -w -u -r1.32 -r1.33
  --- EjbJar.java	5 Apr 2002 15:57:32 -0000	1.32
  +++ EjbJar.java	8 Apr 2002 15:28:58 -0000	1.33
  @@ -100,49 +100,8 @@
       /**
        * Inner class used to record information about the location of a local DTD
        */
  -    public static class DTDLocation {
  -        /** The public ID of the DTD */
  -        private String publicId = null;
  -        /** The DTD's local location */
  -        private String location = null;
  -
  -        
  -        /**
  -         * Sets the publicId of the DTDLocation
  -         *
  -         * @param publicId the new publicId value
  -         */
  -        public void setPublicId(String publicId) {
  -            this.publicId = publicId;
  -        }
  -
  -        /**
  -         * Sets the location of the DTDLocation. This value may be file path or
  -         * a local resource on the classpath
  -         *
  -         * @param location the new location value
  -         */
  -        public void setLocation(String location) {
  -            this.location = location;
  -        }
  -
  -        /**
  -         * Gets the publicId of the DTDLocation
  -         *
  -         * @return the publicId value
  -         */
  -        public String getPublicId() {
  -            return publicId;
  -        }
  -
  -        /**
  -         * Gets the location of the DTDLocation
  -         *
  -         * @return the location value
  -         */
  -        public String getLocation() {
  -            return location;
  -        }
  +    public static class DTDLocation 
  +        extends org.apache.tools.ant.types.DTDLocation {
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message