You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Jan Matèrne (jhm)" <ap...@materne.de> on 2014/06/03 09:47:09 UTC

Testing Antlibs

I am trying to build the antlibs, mainly props.

A simple "ant distribution" works, but executing tests fail:

1. ${ant-testutil.jar} must be specified although it is part of the standard
Ant installation

2. antunit is not present (I tweaked the common/build.xml to download that
during the build)

3. when executing the tests I get class not found errors of the built
classes:

 

antunit-test:

BUILD FAILED

antlibs-props\src\tests\antunit\condition-type-test.xml:21: typedef class
org.apache.ant.props.ConditionTypeEvaluator cannot be found using the
classloader AntClassLoader[]

 

How to run the tests?

 

 

(Same problem with antlib-dotnet, not tested any more).

 

 

Jan


AW: Testing Antlibs

Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
Thanks, I came further.
I set up a Jenkins job:

NEW: AntLib-props
repo: git
build on ubuntu (due git@windows-problem)
https://builds.apache.org/job/AntLib-common/
command1: ant -f prepare.xml --> clone or update common, update prepare.xml, load antunit.jar
command2: ant distribution
command3: ant -lib antunit.jar -lib build/lib test
Try out until a 'good' build, so I could clone this job for the other antlibs.
status: starting experiment


Jan

> -----Ursprüngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bodewig@apache.org]
> Gesendet: Dienstag, 3. Juni 2014 09:57
> An: dev@ant.apache.org
> Betreff: Re: Testing Antlibs
> 
> On 2014-06-03, Jan Matèrne (jhm) wrote:
> 
> > I am trying to build the antlibs, mainly props.
> 
> > A simple "ant distribution" works, but executing tests fail:
> 
> > 1. ${ant-testutil.jar} must be specified although it is part of the
> > standard Ant installation
> 
> Not sure whether this has been true in 1.7.x which the commons build
> files strive to be compatible with.  Maybe we should drop that goal or
> at least modify the check to see whether ant-testutil.jar is in an
> expected place.
> 
> > 2. antunit is not present (I tweaked the common/build.xml to download
> > that during the build)
> 
> Yes, I always use -lib switches to point to my locally built antunit.
> 
> > 3. when executing the tests I get class not found errors of the built
> > classes:
> 
> and I also need to set -lib switches for the Antlib under test and even
> to the test classes for some antlibs (AntUnit itself is such a case,
> Compress is happy with just adding the Antlib).
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional
> commands, e-mail: dev-help@ant.apache.org



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


Re: Testing Antlibs

Posted by Stefan Bodewig <bo...@apache.org>.
On 2014-06-03, Jan Matèrne (jhm) wrote:

> I am trying to build the antlibs, mainly props.

> A simple "ant distribution" works, but executing tests fail:

> 1. ${ant-testutil.jar} must be specified although it is part of the standard
> Ant installation

Not sure whether this has been true in 1.7.x which the commons build
files strive to be compatible with.  Maybe we should drop that goal or
at least modify the check to see whether ant-testutil.jar is in an
expected place.

> 2. antunit is not present (I tweaked the common/build.xml to download that
> during the build)

Yes, I always use -lib switches to point to my locally built antunit.

> 3. when executing the tests I get class not found errors of the built
> classes:

and I also need to set -lib switches for the Antlib under test and even
to the test classes for some antlibs (AntUnit itself is such a case,
Compress is happy with just adding the Antlib).

Stefan

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