[Subclipse-dev] unavailable JavaSVN causes NoClassDefFoundError, commandline appends unnecessary commit message
From: iochroma <iochroma_at_yahoo.com>
Date: 2006-10-14 15:35:06 CEST
Hi there!
After spending hours and hours and hours bringing my ant build script to life I thought I should share my wisdom with you as I stumbled over some subclipse odds and ends.
1) The javahl library will not be used in a nested ant script called by the <ant> task. This is due to an UnsatisfiedLinkError: Native Library ...lib....dll already loaded in another classloader
This is an ant issue but it might be useful to find it in the FAQ.
2) using the commandline client a WC->WC copy failed since the commit message is always appended, the default is an empty string. A WC->WC does only not require it, my svn command (1.3.0) refuses it and throws an error (does 1.4 accept it anyway?). Maybe it is wise to only append a message if the user stated one. I did the following and modified src/main/org/tigris/subversion/svnclientadapter/commandline/CommandLine.java:
This is a quick-and-dirty solution that worked. I didn't care much about the "--force-log".
3) if no javasvn library is on the classpath the svn ant task fails with a NoClassDefFoundError. The JavaSvnClientAdapterFactory is called by setup() via svnant SvnTask and immediately instantiates the JavaSvnClientAdapter which depends on tmatesoft classes like org.tmatesoft.svn.core.SVNException. This causes the error.
I suggest moving the isAvailable() method of javahl to it's factory too, for reasons of uniformity.
And I might be forgiven for not doing this modifications by myself. The deadline hangs over my like the Sword of Damocles.
---------------------------------------------------------------------
|
This is an archived mail posted to the Subclipse Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.