-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from alfh/revert_jpf_removal_pr
Revert the "Remove Java Plugin Framework" commits in 0.49.0, to allow external plugins to be loaded in the usual manner
- Loading branch information
Showing
5 changed files
with
263 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
osmosis-core/src/main/java/org/openstreetmap/osmosis/core/plugin/CorePlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// This software is released into the Public Domain. See copying.txt for details. | ||
package org.openstreetmap.osmosis.core.plugin; | ||
|
||
import org.java.plugin.Plugin; | ||
|
||
|
||
/** | ||
* The core plugin entry point. | ||
* | ||
* @author Marcus Wolschon | ||
*/ | ||
public class CorePlugin extends Plugin { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
protected void doStart() throws Exception { | ||
// ignored | ||
} | ||
|
||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
@Override | ||
protected void doStop() throws Exception { | ||
// ignored | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
osmosis-core/src/main/resources/org/openstreetmap/osmosis/core/plugin/plugin.xml.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 1.0" "http://jpf.sourceforge.net/plugin_1_0.dtd"> | ||
<plugin id="org.openstreetmap.osmosis.core.plugin.Core" version="no-version-specified" | ||
class="org.openstreetmap.osmosis.core.plugin.CorePlugin"> | ||
<extension-point id="Task"> | ||
<parameter-def id="class" /> | ||
<parameter-def id="name" /> | ||
</extension-point> | ||
</plugin> |