]> source.dussan.org Git - aspectj.git/commitdiff
name, avoid build.xml if dir null
authorwisberg <wisberg>
Sat, 29 Jan 2005 12:53:05 +0000 (12:53 +0000)
committerwisberg <wisberg>
Sat, 29 Jan 2005 12:53:05 +0000 (12:53 +0000)
build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java

index 81aa5f63c33b1428daf288067028e21d7e5b1eeb..593942e2a198615d3d7917bcbb2dca39f00446c7 100644 (file)
@@ -47,6 +47,7 @@ public class BuildModule extends Task { // quickie hack...
 
     public BuildModule() {
         buildSpec = new BuildSpec();
+        setTaskName("ajbuild");
     }
     
     public void setModuledir(Path moduleDir) {
@@ -122,7 +123,7 @@ public class BuildModule extends Task { // quickie hack...
         try  {
                        // try using script first if not a product
             boolean built = false;
-                       if (null == buildSpec.productDir) { 
+                       if ((null == buildSpec.productDir) && (null != buildSpec.moduleDir)) { 
                    File buildScript = new File(buildSpec.moduleDir, "build.xml");  // XXXFileLiteral
                    if (buildScript.canRead()) {
                        built = buildByScript(buildSpec, buildScript);