ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: A Users Experience
Date Tue, 05 Dec 2000 02:06:19 GMT

> -----Original Message-----
> From: Jon Stevens []
> Sent: Tuesday, 5 December 2000 12:23
> To:
> Subject: A Users Experience
> Hi All,
> I checked the head of Ant out of CVS, I typed:
> cd jakarta-ant
> ./
> I then got a bazillion build errors. Watching the errors fly by,
> it appears
> as though it was a result of not having some .jar file or another. I don't
> understand why the bootstrap process is looking for Regexp.jar,
> but that is
> a whole different issue.

Do you have a JAXP compliant parser in your classpath? Did you read the
"System Requirements" section of the documentation? It states

System Requirements
To build and use ant you must have a JAXP compliant XML parser installed and
available on your classpath.

If you do not have a JAXP compliant XML parse installed, you may use the
reference implementation available from Sun. It is available from Once installed make sure the "jaxp.jar" and
"parser.jar" files are in your classpath.

You will also need the JDK installed on your system, version 1.1 or later.

> So, I looked at the docs/index.html document to see what is required for
> bootstrapping Ant. There is absolutely no documentation in there.

Probably needs to be updated but there is sufficient info in there to build
ant. All patches welcome.

You didn't include the error messages here so I can't be sure what your
problem is.

> So, would someone like to please explain to me what contortions I
> need to go
> through in order to build Ant from CVS?

checkout from CVS
set up your classpath with your favourite JAXP parser
set up JAVA_HOME

works for me. as the following shows:

chunky% export CLASSPATH
chunky% cd oss/jakarta-ant/
chunky% JAVA_HOME=/usr/java
chunky% export JAVA_HOME

chunky% ./
... Bootstrapping Ant Distribution
... Compiling Ant Classes
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml


    [mkdir] Created dir: /home/conor/oss/build/ant


    [mkdir] Created dir: /home/conor/oss/build/ant/classes
    [javac] Compiling 161 source files to /home/conor/oss/build/ant/classes
    [javac] Note:
/home/conor/oss/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ uses or overrides a deprecated API.  Recompile with
"-deprecation" for details.
    [javac] 1 warning
     [copy] Copying 2 files to /home/conor/oss/build/ant/classes
     [copy] Copying 2 files to /home/conor/oss/build/ant/classes

    [mkdir] Created dir: /home/conor/oss/build/ant/lib
      [jar] Building jar: /home/conor/oss/build/ant/lib/ant.jar

    [mkdir] Created dir: /home/conor/oss/build/ant/bin
     [copy] Copying 6 files to /home/conor/oss/build/ant/bin



     [copy] Copying 2 files to /home/conor/oss/build/ant/classes
     [copy] Copying 2 files to /home/conor/oss/build/ant/classes

      [jar] Building jar: /home/conor/oss/build/ant/lib/ant.jar

     [copy] Copying 6 files to /home/conor/oss/build/ant/bin

     [echo] copying bootstrapped files into bin and lib
     [copy] Copying 1 file to /home/conor/oss/jakarta-ant/lib
     [copy] Copying 6 files to /home/conor/oss/jakarta-ant/bin


Total time: 15 seconds
... Cleaning Up Build Directories
... Done Bootstrapping Ant Distribution

> I have a patch for the task that I would like to
> contribute, but
> I can't because I can't even build the system so that I can test it before
> committing it. Now, this is a simple little patch that adds the -f
> functionality commonly found in the unix "rm" command.
> I'm going to rant once more

Why? We have had the rant. We have agreed (many of us reluctantly) that we
will go this way. We are waiting for you or Peter or whoever to patch.

> that any simple user should be able
> to check Ant
> out of CVS and build it. If the documentation at least showed me the .jar
> files that I needed, I would be up for downloading all of them and
> installing them into whatever classpath I need to setup, but of
> course there
> isn't any documentation,

Did you read the system requirements section?

> so this stuff should just go into CVS
> and make all
> of our lives easier.

I have a number of OSS projects on my system. Many of them have xerces.jar
in them. Lots of different versions, and many have the same version but
different names. Is this really the solution you want?

BTW, I checked out out turbine. It didn't build because it doesn't include
the servlet API   :-(


View raw message