From ec853e41d6f6a94b9828dc628f750a052e4fae8b Mon Sep 17 00:00:00 2001 From: James Duncan Davidson Date: Wed, 6 Dec 2000 09:58:43 +0000 Subject: [PATCH] Remove .jar dependancies.. Now AntEater builds off xml-crimson as its parser and handles things on its own. Only takes an extra 10 seconds on the bootstrap and will tend to keep the crimson guys honest. :) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268318 13f79535-47bb-0310-9956-ffa450edef68 --- proposal/anteater/bootstrap/Bootstrap.java | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/proposal/anteater/bootstrap/Bootstrap.java b/proposal/anteater/bootstrap/Bootstrap.java index e15062fa2..22defe2cd 100644 --- a/proposal/anteater/bootstrap/Bootstrap.java +++ b/proposal/anteater/bootstrap/Bootstrap.java @@ -21,6 +21,7 @@ import java.util.zip.*; public class Bootstrap { private static String base = "../"; + private static String crimsonSources = "../../../xml-crimson/src"; // relative to base private static String[] modules = new String[]{"copy", "echo", "jar", "javac"}; /** @@ -45,6 +46,7 @@ public class Bootstrap { // ------------------------------------------------------------ mkdir(base + "bootstrap/temp"); + mkdir(base + "bootstrap/temp/crimson"); mkdir(base + "bootstrap/temp/main"); mkdir(base + "bootstrap/temp/tasks"); mkdir(base + "bootstrap/temp/taskjars"); @@ -52,13 +54,21 @@ public class Bootstrap { for (int i = 0; i < modules.length; i++) { mkdir(base + "bootstrap/temp/tasks/" + modules[i]); } + + // ------------------------------------------------------------ + // build crimson + // ------------------------------------------------------------ + + System.out.println("CRIMSON: " + base + crimsonSources); + Vector v1 = getSources(base + crimsonSources); + doCompile(base + "bootstrap/temp/crimson", v1); // ------------------------------------------------------------ // build the main thing // ------------------------------------------------------------ - Vector v = getSources(base + "source/main"); - doCompile(base + "bootstrap/temp/main", v); + Vector v2 = getSources(base + "source/main"); + doCompile(base + "bootstrap/temp/main", v2); // ------------------------------------------------------------ // now build each of the needed peices into their @@ -83,8 +93,8 @@ public class Bootstrap { String[] cmdarray = new String[9]; cmdarray[0] = "java"; cmdarray[1] = "-cp"; - cmdarray[2] = base + "bootstrap/temp/main:" + base + "lib/jaxp.jar:" + - base + "lib/crimson.jar"; + cmdarray[2] = base + "bootstrap/temp/main:" + + base + "bootstrap/temp/crimson"; cmdarray[3] = "org.apache.ant.cli.Main"; cmdarray[4] = "-taskpath"; cmdarray[5] = base + "bootstrap/temp/taskjars"; @@ -255,8 +265,8 @@ public class Bootstrap { "javac"); String[] args = new String[sources.size() + 4]; args[0] = "-classpath"; - args[1] = base + "bootstrap/temp/main:" + base + "lib/jaxp.jar:" + - base + "lib/crimson.jar"; + args[1] = base + "bootstrap/temp/main:" + + base + "bootstrap/temp/crimson"; args[2] = "-d"; args[3] = dest; for (int i = 0; i < sources.size(); i++) {