So now I have worked out how to set myself up to run the runtime tests on torque, but I am getting this error:


Administrator@ERIADOR /d/user/code/java/torque-cvs/jakarta-turbine-torque
$ maven runtime:test

<snip>

java:jar:

runtime:prepare:
[echo] Copying profile into distribution directory: profile/tansaku.mysql.profile
[copy] Copying 1 file to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest
[copy] Copying 6 files to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest\schema
[copy] Copying 1 file to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest
[copy] Copying 1 file to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest




[copy] Copying 1 file to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest\lib
[copy] Copying 208 files to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest\templates
[copy] Copied 1 empty directory to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest\templates
[copy] Copying 1 file to D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\rttest

runtime:test:
[mkdir] Created dir: D:\user\code\java\torque-cvs\jakarta-turbine-torque\target\test\logs

[ERROR] BUILD FAILED
[ERROR] File...... d:\user\code\java\torque-cvs\jakarta-turbine-torque\maven.xml
[ERROR] Element... ant
[ERROR] Line...... 126
[ERROR] Column.... 30
[ERROR] Warning: Could not find file C:\user\code\java\jar\commons-beanutils\jars\commons-beanutils-1.5.jar to copy.
Total time: 31 seconds

this line in maven.xml refers to the test target in build-test.xml but I can't see why it should be searching for this file in this location .....

I have checked that the maven.home variable is set, and it is set to d:\User\Code\Java\maven-1.0-beta-7
It seems like this is being ignored at present in favour of ./jar/ or something similar and I am not sure why.

I can see that in the test reports files that various jar files are being reported to be at this kind of location:

Administrator@ERIADOR /d/user/code/java/torque-cvs/jakarta-turbine-torque
$ fgrep -r /jar/ *
target/test-reports/TEST-org.apache.torque.engine.database.TestPackageHandling.xml: <property name="jcs.jar" value="c:/user/code/java/jar
/jcs/jars/jcs-1.0-dev.jar"></property>
target/test-reports/TEST-org.apache.torque.engine.database.TestPackageHandling.xml: <property name="tomcat-naming.jar" value="c:/user/cod
e/java/jar/tomcat/jars/tomcat-naming-1.0.jar"></property>

Any help gratefully received.

CHEERS> SAM


Sam Joseph wrote:

Just to quickly answer my own questions;

the test:test target is in maven.xml

the tests it runs do not access a database .

CHEERS> SAM

Sam Joseph wrote:

Hi,

So I checked the latest version of Torque out of CVS, installed maven
and entered the command:

maven java:jar

the various jar files got downloaded, tests were run, and the jar file
was built. All well and good.

However I can't figure out from the documentation or the directory tree
which database was used to run these tests against. I have mysql running
on my computer and nothing else, so I assume that given the tests all
passed that it must have used my local mysql db, or perhaps it ran the
tests on a remote machine?

Anyway, the problem I am having is that I can't find which xml files
contain the "test:test:" target or which build.properties are being used
to run these tests.

I am a complete maven novice so please be gentle with me.

Thanks in advance.

CHEERS> SAM


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to