Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-03-16 17:19:33 -0400
committerSusan Franklin2009-03-16 17:19:33 -0400
commit8325457c9b7605a0b39f47b7e1d4a728dcb7a2a8 (patch)
tree306061102a0d5415af794eb4c53331efe77d7990 /examples
parent0ad4eee803dcad5a589351f69d7cf540d5dd750c (diff)
downloadrt.equinox.p2-8325457c9b7605a0b39f47b7e1d4a728dcb7a2a8.tar.gz
rt.equinox.p2-8325457c9b7605a0b39f47b7e1d4a728dcb7a2a8.tar.xz
rt.equinox.p2-8325457c9b7605a0b39f47b7e1d4a728dcb7a2a8.zip
define repos at build-time
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/p2.inf3
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java17
2 files changed, 3 insertions, 17 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/p2.inf b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/p2.inf
new file mode 100644
index 000000000..48f31a324
--- /dev/null
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/p2.inf
@@ -0,0 +1,3 @@
+instructions.configure=\
+ addRepository(type:0,location:http${#58}//www.eclipse.org/equinox/p2/testing/updateSite);\
+ addRepository(type:1,location:http${#58}//www.eclipse.org/equinox/p2/testing/updateSite); \ No newline at end of file
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
index 5d2735431..4d754b772 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
@@ -28,9 +28,6 @@ public class Activator extends AbstractUIPlugin {
// The shared instance
private static Activator plugin;
- // The update site used for this product
- private static final String CLOUD_UPDATE_SITE = "http://www.eclipse.org/equinox/p2/testing/updateSite";
-
/**
* The constructor
*/
@@ -46,7 +43,6 @@ public class Activator extends AbstractUIPlugin {
plugin = this;
/// XXX initialize the p2 UI policy
initializeP2Policies();
- initializeP2Repositories();
}
/*
@@ -89,17 +85,4 @@ public class Activator extends AbstractUIPlugin {
// XXX User has no access to manipulate repositories
policy.setRepositoryManipulator(null);
}
-
- // This should really be done at product build time
- private void initializeP2Repositories() {
- try {
- URI uri = URIUtil.fromString(CLOUD_UPDATE_SITE);
- ProvisioningUtil.addMetadataRepository(uri, false);
- ProvisioningUtil.addArtifactRepository(uri, false);
- } catch (ProvisionException e) {
- ProvUI.handleException(e, null, StatusManager.SHOW | StatusManager.LOG);
- } catch (URISyntaxException e) {
- ProvUI.handleException(e, null, StatusManager.SHOW | StatusManager.LOG);
- }
- }
}

Back to the top