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 GenericDeploymentTool.java
Date Wed, 20 Mar 2002 13:47:05 GMT
conor       02/03/20 05:47:05

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ejb
                        GenericDeploymentTool.java
  Log:
  Better handling of malformed desscriptor names
  
  Revision  Changes    Path
  1.34      +3 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
  
  Index: GenericDeploymentTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -w -u -r1.33 -r1.34
  --- GenericDeploymentTool.java	20 Mar 2002 13:37:05 -0000	1.33
  +++ GenericDeploymentTool.java	20 Mar 2002 13:47:05 -0000	1.34
  @@ -574,8 +574,10 @@
   
               if (endBaseName != -1) {
                   baseName = descriptorFileName.substring(0, endBaseName);
  +            } else {
  +                throw new BuildException("Unable to determine jar name " 
  +                    + "from descriptor \"" + descriptorFileName + "\"");
               }
  -            baseName = descriptorFileName.substring(0, endBaseName);
           } else if (config.namingScheme.getValue().equals(EjbJar.NamingScheme.DIRECTORY))
{
               File descriptorFile = new File(config.descriptorDir, descriptorFileName);
               String path = descriptorFile.getAbsolutePath();
  
  
  

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