diff options
author | Pascal Rapicault | 2008-03-11 01:35:02 +0000 |
---|---|---|
committer | Pascal Rapicault | 2008-03-11 01:35:02 +0000 |
commit | 4d168c7500d33b91f2ca17d8a9ee49b51cc8eb4d (patch) | |
tree | a74cfcac7888bc07ab9bdf0958cdc4d0acc5f06a /bundles/org.eclipse.equinox.p2.console | |
parent | 3248f7b04fd742b3e28dbb43e921a35f252eebc0 (diff) | |
download | rt.equinox.p2-4d168c7500d33b91f2ca17d8a9ee49b51cc8eb4d.tar.gz rt.equinox.p2-4d168c7500d33b91f2ca17d8a9ee49b51cc8eb4d.tar.xz rt.equinox.p2-4d168c7500d33b91f2ca17d8a9ee49b51cc8eb4d.zip |
add command to remove reposv20080310-2148
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.console')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvCommandProvider.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvCommandProvider.java b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvCommandProvider.java index 3112b3608..abcb2c42f 100644 --- a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvCommandProvider.java +++ b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvCommandProvider.java @@ -5,6 +5,7 @@ * available at http://www.eclipse.org/legal/epl-v10.html * * Contributors: IBM Corporation - initial API and implementation + * Band XI - add more commands ******************************************************************************/ package org.eclipse.equinox.internal.p2.console; @@ -71,6 +72,19 @@ public class ProvCommandProvider implements CommandProvider { interpreter.println("Unable to add repository: " + repoURL); } + public void _provdelrepo(CommandInterpreter interpreter) { + String urlString = interpreter.nextArgument(); + if (urlString == null) { + interpreter.print("Repository location must be provided"); + interpreter.println(); + return; + } + URL repoURL = toURL(interpreter, urlString); + if (repoURL == null) + return; + ProvisioningHelper.removeMetadataRepository(repoURL); + } + public void _provaddartifactrepo(CommandInterpreter interpreter) { String urlString = interpreter.nextArgument(); if (urlString == null) { @@ -85,6 +99,19 @@ public class ProvCommandProvider implements CommandProvider { interpreter.println("Unable to add repository: " + repoURL); } + public void _provdelartifactrepo(CommandInterpreter interpreter) { + String urlString = interpreter.nextArgument(); + if (urlString == null) { + interpreter.print("Repository location must be provided"); + interpreter.println(); + return; + } + URL repoURL = toURL(interpreter, urlString); + if (repoURL == null) + return; + ProvisioningHelper.removeArtifactRepository(repoURL); + } + /** * Install a given IU to a given profile location. */ @@ -134,6 +161,18 @@ public class ProvCommandProvider implements CommandProvider { } /** + * Deletes a profile given an id, location, and flavor + */ + public void _provdelprofile(CommandInterpreter interpreter) { + String profileId = interpreter.nextArgument(); + if (profileId == null) { + interpreter.println("Id must be provided"); + return; + } + ProvisioningHelper.removeProfile(profileId); + } + + /** * Lists the installable units that match the given URL, id, and/or version. * * @param interpreter |