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 WeblogicDeploymentTool.java
Date Fri, 14 Jun 2002 16:26:17 GMT
conor       2002/06/14 09:26:16

  Modified:    .        Tag: ANT_15_BRANCH WHATSNEW
               docs/manual/OptionalTasks Tag: ANT_15_BRANCH ejb.html
               src/main/org/apache/tools/ant/taskdefs/optional/ejb Tag:
                        ANT_15_BRANCH WeblogicDeploymentTool.java
  Log:
  Allow output to be sent to a directory rather than a destination jar
  
  PR:	1309
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.263.2.48 +2 -0      jakarta-ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
  retrieving revision 1.263.2.47
  retrieving revision 1.263.2.48
  diff -u -w -u -r1.263.2.47 -r1.263.2.48
  --- WHATSNEW	14 Jun 2002 14:56:09 -0000	1.263.2.47
  +++ WHATSNEW	14 Jun 2002 16:26:15 -0000	1.263.2.48
  @@ -63,6 +63,8 @@
     jvmdebuglevel attribute which can be used to avoid warnings about
     interface classess being found on the classpath. Document the new
     <sysproperty> element which allows JVM properties to be defined.
  +  Added an outputdir attribute to allow the destination to be a
  +  directory into which the exploded jar is written.
   
   Changes from Ant 1.5beta1 to Ant 1.5beta2
   =========================================
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.23.2.5  +9 -1      jakarta-ant/docs/manual/OptionalTasks/ejb.html
  
  Index: ejb.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/ejb.html,v
  retrieving revision 1.23.2.4
  retrieving revision 1.23.2.5
  diff -u -w -u -r1.23.2.4 -r1.23.2.5
  --- ejb.html	14 Jun 2002 14:34:30 -0000	1.23.2.4
  +++ ejb.html	14 Jun 2002 16:26:16 -0000	1.23.2.5
  @@ -1062,6 +1062,14 @@
                        </td>
       <td valign="top" align="center">No.</td>
     </tr>
  +  <tr>
  +    <td valign="top">outputdir</td>
  +    <td valign="top">If set ejbc will be given this directory as the output
  +                     desitination rather than a jar file. This allows for the
  +                     generation of &quot;exploded&quot; jars.
  +                     </td>
  +    <td valign="top" align="center">No.</td>
  +  </tr>
   </table>
   
   <p>The weblogic nested element supports three nested elements. The
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.40.2.4  +13 -1     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
  
  Index: WeblogicDeploymentTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java,v
  retrieving revision 1.40.2.3
  retrieving revision 1.40.2.4
  diff -u -w -u -r1.40.2.3 -r1.40.2.4
  --- WeblogicDeploymentTool.java	14 Jun 2002 14:34:30 -0000	1.40.2.3
  +++ WeblogicDeploymentTool.java	14 Jun 2002 16:26:16 -0000	1.40.2.4
  @@ -167,6 +167,7 @@
       /** File utilities instance for copying jars */
       private FileUtils fileUtils = FileUtils.newFileUtils();
   
  +    private File outputDir;
   
       /**
        * Add a nested sysproperty element.
  @@ -184,6 +185,13 @@
           return wlClasspath.createPath();
       }
   
  +    /**
  +     * Output the generated jar to a directory.
  +     */
  +    public void setOutputDir(File outputDir) {
  +        this.outputDir = outputDir;
  +    }
  +
   
       public void setWLClasspath(Path wlClasspath) {
           this.wlClasspath = wlClasspath;
  @@ -535,7 +543,11 @@
               }
   
               javaTask.createArg().setValue(sourceJar.getPath());
  +            if (outputDir == null) {
               javaTask.createArg().setValue(destJar.getPath());
  +            } else {
  +                javaTask.createArg().setValue(outputDir.getPath());
  +            }
   
               Path classpath = wlClasspath;
   
  
  
  

--
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