You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2005/12/05 22:03:06 UTC
VFS gump failed
Hi!
Could someone please explain why gump fails with commons-vfs?
In fact, the tests should fail with errors as there is no testserver for VFS to reach, but a ClassNotFoundException is strange, isnt it?
internal-test:
[mkdir] Created dir: /x1/gump/public/workspace/jakarta-commons/vfs/target/test-reports
[junit] Running org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase
[junit] Testsuite: org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Caused an ERROR
[junit] org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase
[junit] java.lang.ClassNotFoundException: org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
Thanks!
---
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: VFS gump failed
Posted by Bill Barker <wb...@wilshire.com>.
"Mario Ivankovits" <ma...@ops.co.at> wrote in message
news:43958F06.9070003@ops.co.at...
> Stefan Bodewig wrote:
>>> Could someone please explain why gump fails with commons-vfs? In
>>> fact, the tests should fail with errors as there is no testserver
>>> for VFS to reach, but a ClassNotFoundException is strange, isnt it?
>>>
>> Because the test-classes directory wasn't on the CLASSPATH (Nial
>> changed the descriptor to include it via a <work> directory already,
>> should work now).
>>
> New the test classes will be found, but the next exception occured due to
> not correctly setup environment.
> Is it somehow possible to disable the test stuff for gump without
> disabling it in build.xml?
>
For Maven it's easy enough. I haven't looked at your build.xml file, so I
don't know. If you have a conditional on the internal-test target then it
just needs to be set in the Gump <project>. Alternatively, if the rest
builds fine without JUnit, then just remove the JUnit dependancy.
> Thanks!
> Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: VFS gump failed
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 06 Dec 2005, Mario Ivankovits <ma...@ops.co.at> wrote:
> Is it somehow possible to disable the test stuff for gump without
> disabling it in build.xml?
Gump can run any target and set properties, so there are several
options. The easiest one may be to place the tests into a target of
their own, add unless="running-in-gump" to that target and modify the
Gump descriptor to set this property.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: VFS gump failed
Posted by Mario Ivankovits <ma...@ops.co.at>.
Stefan Bodewig wrote:
>> Could someone please explain why gump fails with commons-vfs? In
>> fact, the tests should fail with errors as there is no testserver
>> for VFS to reach, but a ClassNotFoundException is strange, isnt it?
>>
> Because the test-classes directory wasn't on the CLASSPATH (Nial
> changed the descriptor to include it via a <work> directory already,
> should work now).
>
New the test classes will be found, but the next exception occured due
to not correctly setup environment.
Is it somehow possible to disable the test stuff for gump without
disabling it in build.xml?
Thanks!
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org
Re: VFS gump failed
Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 05 Dec 2005, Mario Ivankovits <ma...@ops.co.at> wrote:
> Could someone please explain why gump fails with commons-vfs? In
> fact, the tests should fail with errors as there is no testserver
> for VFS to reach, but a ClassNotFoundException is strange, isnt it?
Because the test-classes directory wasn't on the CLASSPATH (Nial
changed the descriptor to include it via a <work> directory already,
should work now).
Ant running in Gump will ignore any <classpath> setting in the
buildfile which means we need to know the location of compiled classes
that also get usedduring the build.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org