Hi Oliver, On 05/02/2013, at 1:42 AM, Oliver Schrenk <[email protected]> wrote:
> Hi, > > Are there more current notes about how to setup Eclipse for osmosis > development then the notes in [1] ? That's all there is at the moment. It should be mostly correct but might be missing a step. > > 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 I personally don't install any gradle support so I'm not sure what it does. It should be sufficient to run: $ ./gradlew eclipse The above command will generate/update the eclipse projects which can then be imported into eclipse without requiring any special plugins. > > 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 That is correct, but you can't run it from the Core project. The Core project doesn't have access to any plugins. In your case you need to run it from the Apidb project which contains the apidb tasks and also has access to the XML tasks. You should be able to modify your existing launch configuration to start from a different project. Hopefully that's the step you've missed. > > --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. I think you're close. Let me know how you go. Brett > > 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 > _______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
