Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-08-21 23:47:15 +0000
committerPascal Rapicault2010-08-21 23:47:15 +0000
commit92f40be340d4fd12506b52fd7987320210b03ca0 (patch)
treebc84718a6b89f6ddab957e90b3052b9f28ee33f1 /bundles/org.eclipse.equinox.p2.updatesite
parentccd93b9df281656adcf1de1970b5e5a73055f795 (diff)
downloadrt.equinox.p2-92f40be340d4fd12506b52fd7987320210b03ca0.tar.gz
rt.equinox.p2-92f40be340d4fd12506b52fd7987320210b03ca0.tar.xz
rt.equinox.p2-92f40be340d4fd12506b52fd7987320210b03ca0.zip
Bug 313454 - [publisher] Add a new flag to the UpdateSitePublisherApplication to generate the JRE's IU
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.updatesite')
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/UpdateSitePublisherApplication.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/UpdateSitePublisherApplication.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/UpdateSitePublisherApplication.java
index bfba4f751..7e193de0d 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/UpdateSitePublisherApplication.java
+++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/UpdateSitePublisherApplication.java
@@ -11,6 +11,7 @@ package org.eclipse.equinox.internal.p2.updatesite;
import java.net.URISyntaxException;
import org.eclipse.equinox.p2.publisher.*;
+import org.eclipse.equinox.p2.publisher.actions.JREAction;
/**
* <p>
@@ -40,6 +41,23 @@ public class UpdateSitePublisherApplication extends AbstractPublisherApplication
protected IPublisherAction[] createActions() {
LocalUpdateSiteAction action = new LocalUpdateSiteAction(source, categoryQualifier);
action.setCategoryVersion(categoryVersion);
+ if (addJRE) {
+ return new IPublisherAction[] {action, new JREAction((String) null)};
+ }
return new IPublisherAction[] {action};
}
+
+ /** by default don't generate the JRE IU */
+ private boolean addJRE = false;
+
+ /**
+ * Detect the flag -addJREIU to turn on the generation of the JREIU.
+ */
+ protected void processFlag(String flag, PublisherInfo publisherInfo) {
+ super.processFlag(flag, publisherInfo);
+ if (flag.equalsIgnoreCase("-addJREIU"))//$NON-NLS-1$
+ {
+ addJRE = true;
+ }
+ }
}

Back to the top