Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2013-09-04 14:38:24 -0400
committerJohn Arthorne2013-09-04 14:38:24 -0400
commit2ee73be19eae9088b0688a5fea170751d2a91ac1 (patch)
tree9253ee0b983f4f42415ca5c5801ba1b598fe2367 /bundles/org.eclipse.equinox.p2.publisher
parentbcc06545903139bf560a1f1eebe6ee26a9b34429 (diff)
downloadrt.equinox.p2-2ee73be19eae9088b0688a5fea170751d2a91ac1.tar.gz
rt.equinox.p2-2ee73be19eae9088b0688a5fea170751d2a91ac1.tar.xz
rt.equinox.p2-2ee73be19eae9088b0688a5fea170751d2a91ac1.zip
Fixed compiler warningI20130905-2000I20130904-2000
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.publisher')
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherApplication.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherApplication.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherApplication.java
index 6a52f070d..5e92d44b8 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherApplication.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/AbstractPublisherApplication.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2010 IBM Corporation and others.
+ * Copyright (c) 2007, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -105,7 +105,7 @@ public abstract class AbstractPublisherApplication implements IApplication {
if (repoLocation.equals(new File(source)))
throw new IllegalArgumentException(NLS.bind(Messages.exception_artifactRepoNoAppendDestroysInput, URIUtil.toUnencodedString(artifactLocation)));
}
- repo.removeAll();
+ repo.removeAll(new NullProgressMonitor());
}
publisherInfo.setArtifactRepository(repo);
} else if ((publisherInfo.getArtifactOptions() & IPublisherInfo.A_PUBLISH) > 0)
@@ -150,7 +150,10 @@ public abstract class AbstractPublisherApplication implements IApplication {
}
}
- @SuppressWarnings("unused")
+ /**
+ * Process application arguments.
+ * @throws URISyntaxException thrown by subclasses
+ */
protected void processParameter(String arg, String parameter, PublisherInfo publisherInfo) throws URISyntaxException {
try {
if (arg.equalsIgnoreCase("-metadataRepository") || arg.equalsIgnoreCase("-mr")) //$NON-NLS-1$ //$NON-NLS-2$

Back to the top