From f041b8a335924f5bae34ec9d62b7ee9870e4ea35 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 11 May 2005 08:42:21 +0000 Subject: [PATCH] permitting modules to mix 1.5 and prior source directories --- .../internal/tools/ant/taskdefs/AntBuilder.java | 12 ++---------- 1 file 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; -- 2.39.5