You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Carpenter, James" <ja...@ercot.com> on 2003/12/23 23:49:05 UTC
test-jar target broken in source distrib
I am trying to write a custom ant task and was hoping to make use of Ant's junit test extensions.
According to Writing Tasks tutorial I need to run test-jar on the source distribution. I tried that and the build fails complaining about build\testcases not found. I don't yet know whats wrong, but thought I should give the development community a heads up as someone more familar with the ant distribution than I may know the answer already.
On a side note, it sure would be nice if the binary distribution contained the test jar or if it could at least be downloaded in precompiled form.
----------------------------------
The details (without debug) are below:
C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src>ant test-jar
Buildfile: build.xml
prepare:
check_for_optional_packages:
build:
[mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build
[mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classes
[mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\lib
[javac] Compiling 525 source files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\b
uild\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[copy] Copying 3 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
s
[copy] Copying 2 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
s
[copy] Copying 2 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
s\org\apache\tools\ant\taskdefs\optional\junit\xsl
compile-tests:
test-jar:
BUILD FAILED
C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build.xml:874: C:\workarea\javaapps\tools_u
nzipped\apache-ant-1.6.0-src\build\testcases not found.
Total time: 34 seconds
C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: test-jar target broken in source distrib
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Hi,
sorry about this missing jar,
you might want to do the following :
- download the sources,
- run a build. build.bat should do the work.
- then run ant test-jar
this should build the jar
Antoine
Carpenter, James wrote:
>I am trying to write a custom ant task and was hoping to make use of Ant's junit test extensions.
>
>According to Writing Tasks tutorial I need to run test-jar on the source distribution. I tried that and the build fails complaining about build\testcases not found. I don't yet know whats wrong, but thought I should give the development community a heads up as someone more familar with the ant distribution than I may know the answer already.
>
>On a side note, it sure would be nice if the binary distribution contained the test jar or if it could at least be downloaded in precompiled form.
>
>----------------------------------
>The details (without debug) are below:
>
>C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src>ant test-jar
>Buildfile: build.xml
>
>prepare:
>
>check_for_optional_packages:
>
>build:
> [mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build
> [mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classes
> [mkdir] Created dir: C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\lib
> [javac] Compiling 525 source files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\b
>uild\classes
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [copy] Copying 3 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
>s
> [copy] Copying 2 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
>s
> [copy] Copying 2 files to C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build\classe
>s\org\apache\tools\ant\taskdefs\optional\junit\xsl
>
>compile-tests:
>
>test-jar:
>
>BUILD FAILED
>C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src\build.xml:874: C:\workarea\javaapps\tools_u
>nzipped\apache-ant-1.6.0-src\build\testcases not found.
>
>Total time: 34 seconds
>C:\workarea\javaapps\tools_unzipped\apache-ant-1.6.0-src>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org