Hi,

Are there more current notes about how to setup Eclipse for osmosis development 
then the notes in [1] ?

I know that ant has been deprecated in favor of gradle, so I installed Eclipse 
Grade Support via [2] and 

        $ git clone https://github.com/openstreetmap/osmosis
        $ cd osmosis
        $ ./gradlew assemble

and proceeded to import osmosis' multi-modules using `File > Import > Gradle`. 
Everything compiles fine.

But when I try to execute a command like

        osmosis --read-xml file="bremen.osm.bz2" --write-apidb-0.6 
host="127.0.0.1" database="api06_test" user="osm" password="osm" 
validateSchemaVersion=no

using a Run Configuration with `org.openstreetmap.osmosis.core.Osmosis` as the 
main class
and

        --read-xml file="bremen.osm.bz2" --write-apidb-0.6 host="127.0.0.1" 
database="api06_test" user="osm" password="osm" validateSchemaVersion=no

as program arguments I get

        Feb 04, 2013 3:31:39 PM org.openstreetmap.osmosis.core.Osmosis run
        INFO: Osmosis Version 0.41-55-gb44b7d7-dirty
        Feb 04, 2013 3:31:39 PM org.openstreetmap.osmosis.core.Osmosis run
        INFO: Preparing pipeline.
        Feb 04, 2013 3:31:39 PM org.openstreetmap.osmosis.core.Osmosis main
        SEVERE: Execution aborted.
        org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type 
read-xml doesn't exist.
                at 
org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.java:60)
                at 
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
                at 
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)
                at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
                at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)

It doesn't seem to pickup the various tasks. 

My end goal is to debug write-apidb-0.6 as I'm trying to write data to an 
unsupported database and run into problems with duplicate user entries and want 
to use Eclipse's Debugger to go through the code.

Best regards
Oliver


[1] http://wiki.openstreetmap.org/wiki/Osmosis/Development#Eclipse_Setup
[2] 
http://static.springsource.org/sts/docs/latest/reference/html/gradle/installation.html

OSX 10.8.2
Java 1.7.0_11-b21
osmosis 0.41-55-gb44b7d7-dirty
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to