Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Knauer2007-10-18 09:26:30 -0400
committerMarkus Knauer2007-10-18 09:26:30 -0400
commit0b0666736c432614d1314e6c6a9082fadc676246 (patch)
tree70abbb2eee47898af8bbff55fb1004f020ccf87a
parent59b107da085d23dfa13d0e6eb2b952897de7ab0d (diff)
downloadorg.eclipse.epp.packages-0b0666736c432614d1314e6c6a9082fadc676246.tar.gz
org.eclipse.epp.packages-0b0666736c432614d1314e6c6a9082fadc676246.tar.xz
org.eclipse.epp.packages-0b0666736c432614d1314e6c6a9082fadc676246.zip
IPlatformRunnable -> IApplication
-rw-r--r--plugins/org.eclipse.epp.packaging.core/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.epp.packaging.core/plugin.xml4
-rw-r--r--plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/PackagingApplication.java (renamed from plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/Application.java)27
3 files changed, 18 insertions, 14 deletions
diff --git a/plugins/org.eclipse.epp.packaging.core/META-INF/MANIFEST.MF b/plugins/org.eclipse.epp.packaging.core/META-INF/MANIFEST.MF
index 6514f76b..d1f90649 100644
--- a/plugins/org.eclipse.epp.packaging.core/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.epp.packaging.core/META-INF/MANIFEST.MF
@@ -18,4 +18,5 @@ Export-Package: org.eclipse.epp.packaging.core,
org.eclipse.epp.packaging.core.download,
org.eclipse.epp.packaging.core.io,
org.eclipse.epp.packaging.core.logging
+Eclipse-LazyStart: false
diff --git a/plugins/org.eclipse.epp.packaging.core/plugin.xml b/plugins/org.eclipse.epp.packaging.core/plugin.xml
index b3afb468..da7d34c6 100644
--- a/plugins/org.eclipse.epp.packaging.core/plugin.xml
+++ b/plugins/org.eclipse.epp.packaging.core/plugin.xml
@@ -7,7 +7,7 @@
point="org.eclipse.core.runtime.applications">
<application>
<run
- class="org.eclipse.epp.packaging.core.Application">
+ class="org.eclipse.epp.packaging.core.PackagingApplication">
</run>
</application>
</extension>
@@ -15,7 +15,7 @@
id="EPP"
point="org.eclipse.core.runtime.products">
<product
- application="org.eclipse.epp.packaging.core.application"
+ application="application"
name="EPP Packaging">
<property
name="appName"
diff --git a/plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/Application.java b/plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/PackagingApplication.java
index 3c006bf7..1ac19709 100644
--- a/plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/Application.java
+++ b/plugins/org.eclipse.epp.packaging.core/src/org/eclipse/epp/packaging/core/PackagingApplication.java
@@ -10,29 +10,32 @@
*******************************************************************************/
package org.eclipse.epp.packaging.core;
-import org.eclipse.core.runtime.IPlatformRunnable;
+import java.util.Iterator;
+import java.util.Map;
+
import org.eclipse.epp.packaging.core.configuration.ArgumentParser;
import org.eclipse.epp.packaging.core.configuration.ICommands;
import org.eclipse.epp.packaging.core.configuration.IPackagerConfiguration;
import org.eclipse.epp.packaging.core.configuration.xml.ConfigurationParser;
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
/**
* Main entry point for the EPP packager.
*/
-public class Application implements IPlatformRunnable {
+public class PackagingApplication implements IApplication {
- /**
- * Runs the Eclipse Packager. args is expected to be a conventional String
- * array. The first entry must hold the location of the configuration
- * properties file.
- */
- public Object run( final Object args ) throws Exception {
+ public Object start( final IApplicationContext context ) throws Exception {
+ Map arguments = context.getArguments();
+ String[] args = ( String[] )arguments.get( IApplicationContext.APPLICATION_ARGS );
ICommands commands = ArgumentParser.parse( args );
- ConfigurationParser configurationParser
- = new ConfigurationParser( commands.getConfigurationFile() );
- IPackagerConfiguration configuration
- = configurationParser.parseConfiguration( );
+ ConfigurationParser configurationParser = new ConfigurationParser( commands.getConfigurationFile() );
+ IPackagerConfiguration configuration = configurationParser.parseConfiguration();
new EclipsePackagingExecutor( commands, configuration ).execute();
return EXIT_OK;
}
+
+ public void stop() {
+ // nothing to stop here...
+ }
} \ No newline at end of file

Back to the top