aboutsummaryrefslogtreecommitdiffstats
path: root/build/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-05-11 08:42:21 +0000
committerwisberg <wisberg>2005-05-11 08:42:21 +0000
commitf041b8a335924f5bae34ec9d62b7ee9870e4ea35 (patch)
tree205d85a73a681e11bbcf0b3d29df01842a783d3c /build/src
parentc8557ff13ecbc3326d3e25fd1dd27e383779f162 (diff)
downloadaspectj-f041b8a335924f5bae34ec9d62b7ee9870e4ea35.tar.gz
aspectj-f041b8a335924f5bae34ec9d62b7ee9870e4ea35.zip
permitting modules to mix 1.5 and prior source directories
Diffstat (limited to 'build/src')
-rw-r--r--build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
index 49d30f13f..0288f1f20 100644
--- a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
+++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
@@ -260,8 +260,10 @@ public class AntBuilder extends Builder {
// I suspect it requires the proper adapter setup.
Javac javac = new Javac();
setupTask(javac, "javac");
+ javac.setIncludeantruntime(false);
javac.setDestdir(classesDir);
javac.setSrcdir(path);
+ javac.setVerbose(verbose);
path = null;
// -- classpath
@@ -286,16 +288,6 @@ public class AntBuilder extends Builder {
} else {
javac.setSource("1.5");
javac.setTarget("1.5");
- // TODO allow modules to mix 1.5 and prior code by omitting 1.5
- // gack if non-java5 and non-testsrc in this build
- for (Iterator iter = module.getSrcDirs().iterator(); iter.hasNext();) {
- String name = ((File) iter.next()).getName();
- if (!Util.Constants.JAVA5_SRC.equals(name)
- && !Util.Constants.JAVA5_TESTSRC.equals(name)) {
- String m = "modules mixing pre-15 and 15 source are built with -target 1.5";
- throw new BuildException(m + ": " + name);
- }
- }
}
// compile
boolean passed = false;