[osmosis-dev] some tests failed on Gentoo (may be because of wrong CLASSPATH)

Dmytro Gorbunov dmitro.gorbunov at gmail.com
Wed Nov 30 13:14:12 GMT 2011


Hi Brett,

Thanks for your answers.

The reason why I'm trying to run tests on Gentoo is that current osmosis
ebuild is terribly outdated and I want to provide new version of it.

The strange thing that it builds good and all database-related tests are
passed but only 2 filesystem-based tests were failed.

In the report v0_6.XmlChangeReaderWriterTest.txt there is an exception
NoSuchMethodError when we call newFile method, I'll try with different
JVM and/or discover what is the real problem.

Testcase: testSimple took 0.005 sec
Caused an ERROR
org.openstreetmap.osmosis.testutil.TestDataUtilities.newFile()Ljava/io/File;
java.lang.NoSuchMethodError:
org.openstreetmap.osmosis.testutil.TestDataUtilities.newFile()Ljava/io/File;
  at
org.openstreetmap.osmosis.testutil.TestDataUtilities.createDataFile(TestDataUtilities.java:54)
  at
org.openstreetmap.osmosis.xml.v0_6.XmlChangeReaderWriterTest.testSimple(XmlChangeReaderWriterTest.java:36)

Kind regards,

I'm triying to make new 
> > >
> > It is a good thing that it is self contained for user installations. But
> > I don't think that concept can work for a distribution. The package
> > manager must install the dependencies. It is not possible for osmosis to
> > download dependencies afterwards. It is run as a user, and users can't
> > write to the installation folder of the application.
> > I once tried to make an ebuild for osmosis and miserably failed, because
> > of this and because I know too little about Java.
> >
> 
> If you want to create a distribution specific build for Osmosis you won't
> be able to use the existing ant build, it is highly coupled to the Ivy
> dependency management framework which downloads dependent jar files from
> the Internet.
> 
> I've personally never tried to package a Java application using Linux
> packaging tools so I'm afraid I'm not much help.
> 
> Brett
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20111129/dd374787/attachment-0001.html>
> 
> ------------------------------
> 
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
> 
> 
> End of osmosis-dev Digest, Vol 33, Issue 5
> ******************************************



More information about the osmosis-dev mailing list