diff options
author | wisberg <wisberg> | 2005-01-29 12:53:05 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-01-29 12:53:05 +0000 |
commit | 6776e8c378e3c641fa604e0fa272e29f7d30588c (patch) | |
tree | 59569370b795be8ba1ed1e0639f133de1e902e8a /build | |
parent | 066222bd25a6421200a0f73588d3ebfb766f2a3f (diff) | |
download | aspectj-6776e8c378e3c641fa604e0fa272e29f7d30588c.tar.gz aspectj-6776e8c378e3c641fa604e0fa272e29f7d30588c.zip |
name, avoid build.xml if dir null
Diffstat (limited to 'build')
-rw-r--r-- | build/src/org/aspectj/internal/tools/ant/taskdefs/BuildModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |