Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2008-12-08 18:19:36 +0000
committerDJ Houghton2008-12-08 18:19:36 +0000
commite14f8ad13540970368dacfb84234334d89d753fb (patch)
tree71625f2c5222345605b89a5ba47342ce40a0d604 /bundles/org.eclipse.equinox.p2.metadata.repository
parentd2b1de9a0a318cc7dbf9cd961b8a84b59488716b (diff)
downloadrt.equinox.p2-e14f8ad13540970368dacfb84234334d89d753fb.tar.gz
rt.equinox.p2-e14f8ad13540970368dacfb84234334d89d753fb.tar.xz
rt.equinox.p2-e14f8ad13540970368dacfb84234334d89d753fb.zip
Bug 254747 - [mirror] MirrorApplication should append by default
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java
index b813b2e34..6f56df58c 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java
@@ -137,10 +137,6 @@ public class MirrorApplication implements IApplication {
if (args == null)
return;
for (int i = 0; i < args.length; i++) {
- // check for args without parameters (i.e., a flag arg)
- if (args[i].equalsIgnoreCase("-emptyRepository")) //$NON-NLS-1$
- append = false;
-
// check for args with parameters. If we are at the last argument or
// if the next one has a '-' as the first character, then we can't have
// an arg with a param so continue.
@@ -150,6 +146,9 @@ public class MirrorApplication implements IApplication {
if (args[i - 1].equalsIgnoreCase("-destinationName")) //$NON-NLS-1$
destinationName = arg;
+ if (args[i - 1].equalsIgnoreCase("-writeMode")) //$NON-NLS-1$
+ if (args[i].equalsIgnoreCase("clean")) //$NON-NLS-1$
+ append = false;
try {
if (args[i - 1].equalsIgnoreCase("-source")) //$NON-NLS-1$

Back to the top