git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271670 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -26,3 +26,6 @@ java -classpath bootstrap/lib/start.jar:bootstrap/lib/init.jar org.apache.ant.st | |||||
| # Use the full build as the build used by the build script | # Use the full build as the build used by the build script | ||||
| cp -r dist/lib bootstrap | cp -r dist/lib bootstrap | ||||
| #clean up after bootstrap | |||||
| java -classpath bootstrap/lib/start.jar:bootstrap/lib/init.jar org.apache.ant.start.Main clean | |||||
| @@ -26,16 +26,14 @@ | |||||
| <exclude name="org/apache/tools/ant/taskdefs/AntStructure.java"/> | <exclude name="org/apache/tools/ant/taskdefs/AntStructure.java"/> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/Recorder.java"/> | <exclude name="org/apache/tools/ant/taskdefs/Recorder.java"/> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/RecorderEntry.java"/> | <exclude name="org/apache/tools/ant/taskdefs/RecorderEntry.java"/> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/optional/Native2Ascii.java"/> | |||||
| <exclude name="org/apache/tools/ant/taskdefs/optional/Javah.java"/> | |||||
| <exclude name="org/apache/tools/ant/taskdefs/optional/jdepend/*.java"/> | <exclude name="org/apache/tools/ant/taskdefs/optional/jdepend/*.java"/> | ||||
| </patternset> | </patternset> | ||||
| <patternset id="converted"> | <patternset id="converted"> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/Ant.java"/> | <exclude name="org/apache/tools/ant/taskdefs/Ant.java"/> | ||||
| <exclude name="org/apache/tools/ant/taskdefs/CallTarget.java"/> | <exclude name="org/apache/tools/ant/taskdefs/CallTarget.java"/> | ||||
| <!-- <exclude name="org/apache/tools/ant/taskdefs/Parallel.java"/> | |||||
| <exclude name="org/apache/tools/ant/taskdefs/Sequential.java"/> --> | |||||
| <exclude name="org/apache/tools/ant/taskdefs/Parallel.java"/> | |||||
| <exclude name="org/apache/tools/ant/taskdefs/Sequential.java"/> | |||||
| </patternset> | </patternset> | ||||
| <fileset id="ant1src" dir="../../src/main"> | <fileset id="ant1src" dir="../../src/main"> | ||||
| @@ -55,6 +53,7 @@ | |||||
| <include name="org/apache/tools/ant/PathTokenizer.java"/> | <include name="org/apache/tools/ant/PathTokenizer.java"/> | ||||
| <include name="org/apache/tools/ant/FileScanner.java"/> | <include name="org/apache/tools/ant/FileScanner.java"/> | ||||
| <include name="org/apache/tools/ant/TaskAdapter.java"/> | <include name="org/apache/tools/ant/TaskAdapter.java"/> | ||||
| <include name="org/apache/tools/ant/MatchingTask.java"/> | |||||
| <include name="org/apache/tools/ant/Location.java"/> | <include name="org/apache/tools/ant/Location.java"/> | ||||
| <include name="org/apache/tools/ant/AntClassLoader.java"/> | <include name="org/apache/tools/ant/AntClassLoader.java"/> | ||||
| <include name="org/apache/tools/ant/BuildEvent.java"/> | <include name="org/apache/tools/ant/BuildEvent.java"/> | ||||
| @@ -222,8 +222,11 @@ public class ExecutionManager implements DemuxOutputReceiver { | |||||
| * @param isErr true if this content is from the thread's error stream. | * @param isErr true if this content is from the thread's error stream. | ||||
| */ | */ | ||||
| public void threadOutput(String line, boolean isErr) { | public void threadOutput(String line, boolean isErr) { | ||||
| eventSupport.threadOutput(line, isErr); | |||||
| if (mainFrame == null) { | |||||
| eventSupport.threadOutput(line, isErr); | |||||
| } else { | |||||
| mainFrame.threadOutput(line, isErr); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -133,10 +133,10 @@ public abstract class Task extends ProjectComponent | |||||
| /** | /** | ||||
| * XXX Adds a feature to the NestedTask attribute of the Task object | |||||
| * Add a nested task to this Ant1 task. | |||||
| * | * | ||||
| * @param task XXX The feature to be added to the NestedTask attribute | |||||
| * @exception ExecutionException XXX Description of Exception | |||||
| * @param task The task to be added | |||||
| * @exception ExecutionException if the task cannot be added. | |||||
| */ | */ | ||||
| public void addNestedTask(org.apache.ant.common.antlib.Task task) | public void addNestedTask(org.apache.ant.common.antlib.Task task) | ||||
| throws ExecutionException { | throws ExecutionException { | ||||
| @@ -124,6 +124,8 @@ public class Builder { | |||||
| files.add(new File(PACKAGE_ROOT, "DirectoryScanner.java")); | files.add(new File(PACKAGE_ROOT, "DirectoryScanner.java")); | ||||
| files.add(new File(PACKAGE_ROOT, "FileScanner.java")); | files.add(new File(PACKAGE_ROOT, "FileScanner.java")); | ||||
| files.add(new File(PACKAGE_ROOT, "PathTokenizer.java")); | files.add(new File(PACKAGE_ROOT, "PathTokenizer.java")); | ||||
| files.add(new File(PACKAGE_ROOT, "TaskAdapter.java")); | |||||
| files.add(new File(PACKAGE_ROOT, "MatchingTask.java")); | |||||
| files.add(new File(PACKAGE_ROOT, "util/FileUtils.java")); | files.add(new File(PACKAGE_ROOT, "util/FileUtils.java")); | ||||
| files.add(new File(PACKAGE_ROOT, "defaultManifest.mf")); | files.add(new File(PACKAGE_ROOT, "defaultManifest.mf")); | ||||
| files.add(new File(TASKDEFS_ROOT, "defaults.properties")); | files.add(new File(TASKDEFS_ROOT, "defaults.properties")); | ||||
| @@ -524,7 +524,9 @@ public class Project extends ModelElement { | |||||
| = fullProjectName == null ? localDependencyName | = fullProjectName == null ? localDependencyName | ||||
| : fullProjectName + REF_DELIMITER + localDependencyName; | : fullProjectName + REF_DELIMITER + localDependencyName; | ||||
| flattenDependency(flattenedList, fullDependencyName); | flattenDependency(flattenedList, fullDependencyName); | ||||
| flattenedList.add(fullDependencyName); | |||||
| if (!flattenedList.contains(fullDependencyName)) { | |||||
| flattenedList.add(fullDependencyName); | |||||
| } | |||||
| } | } | ||||
| } catch (ModelException e) { | } catch (ModelException e) { | ||||
| throw new ConfigException(e); | throw new ConfigException(e); | ||||