You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by _matthewHawthorne <mh...@alumni.pitt.edu> on 2003/07/05 22:18:55 UTC

Problems building and testing from CVS

I am confused about how to build and test the ant source from CVS.  On
downloading and attempting to run the tests (by running 'ant test'), I
see the errors shown below.  I can build using the build.sh script, but
I would like to be able to run the tests separately and manually,
especially if I start to submit patches.

This seems like a very simple problem, but I'm stuck... can anyone offer
any help?



.subterfusion@localhost ant ? ant test
Buildfile: build.xml

check_for_optional_packages:

xml-check:
     [java] #---- BEGIN writeEnvironmentReport($Revision: 1.7 $): Useful
properties found: ----
     [java] java.version=1.4.1_02
     [java] version.JAXP=1.1
     [java] java.ext.dirs=/usr/java/j2sdk1.4.1_02/jre/lib/ext
     [java] version.crimson=not-present
     [java] version.SAX=2.0
     [java]
java.class.path=/files/usr/tools/ant/lib/xml-apis.jar:/files/usr/tools/ant/lib/xercesImpl.jar:/files/usr/tools/ant/lib/optional.jar:/files/usr/tools/ant/lib/junit.jar:/files/usr/tools/ant/lib/ant.jar:/usr/local/apps/appdev/java/java/lib/tools.jar
     [java] version.xerces=not-present
     [java]
sun.boot.class.path=/usr/java/j2sdk1.4.1_02/jre/lib/rt.jar:/usr/java/j2sdk1.4.1_02/jre/lib/i18n.jar:/usr/java/j2sdk1.4.1_02/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.1_02/jre/lib/jsse.jar:/usr/java/j2sdk1.4.1_02/jre/lib/jce.jar:/usr/java/j2sdk1.4.1_02/jre/lib/charsets.jar:/usr/java/j2sdk1.4.1_02/jre/classes
     [java] version.DOM.draftlevel=2.0fd
     [java] version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
     [java] version.DOM=2.0
     [java] version.xalan1=not-present
     [java] #----- END writeEnvironmentReport: Useful properties found:
-----
     [java] # YAHOO! Your environment seems to be OK.

dump-sys-properties:
     [echo] java.vm.info=mixed mode
     [echo] java.vm.name=Java HotSpot(TM) Client VM
     [echo] java.vm.vendor=Sun Microsystems Inc.
     [echo] java.vm.version=1.4.1_02-b06
     [echo] os.arch=i386
     [echo] os.name=Linux
     [echo] os.version=2.4.18-3
     [echo] file.encoding=ANSI_X3.4-1968
     [echo] user.language=en

run-which:

dump-info:

prepare:

build:

BUILD FAILED
file:/home/subterfusion/files/appdev/projects/apache/ant/build.xml:598:
The <selector> data type doesn't support the "unless" attribute.

Total time: 4 seconds


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: Problems building and testing from CVS

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
On Sun, 6 Jul 2003 06:18 am, _matthewHawthorne wrote:
> I am confused about how to build and test the ant source from CVS.  On
> downloading and attempting to run the tests (by running 'ant test'), I
> see the errors shown below.  I can build using the build.sh script, but
> I would like to be able to run the tests separately and manually,
> especially if I start to submit patches.
>
> This seems like a very simple problem, but I'm stuck... can anyone offer
> any help?
>

When you type "ant test", I guess you are trying to build Ant 1.6 (CVS) with 
Ant 1.5.x. This won't work because Ant 1.6's build requires Ant 1.6 :-)

You can't use ant to build Ant. You need to bootstrap it. Have a read here
http://ant.apache.org/manual/install.html#buildingant

and see how you go.

Conor




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org