From 6776e8c378e3c641fa604e0fa272e29f7d30588c Mon Sep 17 00:00:00 2001 From: wisberg Date: Sat, 29 Jan 2005 12:53:05 +0000 Subject: [PATCH] name, avoid build.xml if dir null --- .../org/aspectj/internal/tools/ant/taskdefs/BuildModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java index 81aa5f63c..593942e2a 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java @@ -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); -- 2.39.5