Browse Source

Optimization of the change commited yesterday.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526722 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 18 years ago
parent
commit
ef5fa00d23
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreator.java
  2. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/Ejbc.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreator.java View File

@@ -68,12 +68,12 @@ public class DDCreator extends MatchingTask {
if (descriptorDirectory == null
|| !descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory "
+ descriptorDirectory == null ? null : descriptorDirectory.getPath() + " is not valid");
+ descriptorDirectory + " is not valid");
}
if (generatedFilesDirectory == null
|| !generatedFilesDirectory.isDirectory()) {
throw new BuildException("dest directory "
+ generatedFilesDirectory == null ? null : generatedFilesDirectory.getPath() + " is not valid");
+ generatedFilesDirectory + " is not valid");
}

String args = descriptorDirectory + " " + generatedFilesDirectory;


+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/ejb/Ejbc.java View File

@@ -82,18 +82,18 @@ public class Ejbc extends MatchingTask {
if (descriptorDirectory == null
|| !descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory "
+ descriptorDirectory == null ? null : descriptorDirectory.getPath() + " is not valid");
+ descriptorDirectory + " is not valid");
}
if (generatedFilesDirectory == null
|| !generatedFilesDirectory.isDirectory()) {
throw new BuildException("dest directory "
+ generatedFilesDirectory == null ? null : generatedFilesDirectory.getPath() + " is not valid");
+ generatedFilesDirectory + " is not valid");
}

if (sourceDirectory == null
|| !sourceDirectory.isDirectory()) {
throw new BuildException("src directory "
+ sourceDirectory == null ? null : sourceDirectory.getPath() + " is not valid");
+ sourceDirectory + " is not valid");
}

String systemClassPath = System.getProperty("java.class.path");


Loading…
Cancel
Save