Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2009-10-09 15:15:57 +0000
committerDJ Houghton2009-10-09 15:15:57 +0000
commit85cef9f8077a5cae5258f3efba193d2b9f1d6a3f (patch)
treec256c5870495c0493e0c64c2784c38566b885aca /bundles/org.eclipse.equinox.p2.tests.verifier/src
parent7cf840a1dcdf02e2724b4df5631e330c5324daf6 (diff)
downloadrt.equinox.p2-85cef9f8077a5cae5258f3efba193d2b9f1d6a3f.tar.gz
rt.equinox.p2-85cef9f8077a5cae5258f3efba193d2b9f1d6a3f.tar.xz
rt.equinox.p2-85cef9f8077a5cae5258f3efba193d2b9f1d6a3f.zip
Added back deleted methods for future use.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.verifier/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java b/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java
index 50bd9ccb9..84108df3d 100644
--- a/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java
+++ b/bundles/org.eclipse.equinox.p2.tests.verifier/src/org/eclipse/equinox/internal/p2/tests/verifier/VerifierApplication.java
@@ -39,6 +39,7 @@ public class VerifierApplication implements IApplication {
private static final File DEFAULT_PROPERTIES_FILE = new File("verifier.properties"); //$NON-NLS-1$
private static final String ARG_PROPERTIES = "-verifier.properties"; //$NON-NLS-1$
private Properties properties = null;
+ private List ignoreResolved = null;
/*
* Create and return an error status with the given message.
@@ -153,6 +154,27 @@ public class VerifierApplication implements IApplication {
// nothing to do
}
+ /*
+ * Return a boolean value indicating whether or not the bundle with the given symbolic name
+ * should be considered when looking at bundles which are not resolved in the system.
+ * TODO the call to this method was removed. we should add it back
+ */
+ protected boolean shouldCheckResolved(String bundle) {
+ if (ignoreResolved == null) {
+ ignoreResolved = new ArrayList();
+ String list = properties.getProperty("ignore.unresolved");
+ if (list == null)
+ return true;
+ for (StringTokenizer tokenizer = new StringTokenizer(list, ","); tokenizer.hasMoreTokens();)
+ ignoreResolved.add(tokenizer.nextToken().trim());
+ }
+ for (Iterator iter = ignoreResolved.iterator(); iter.hasNext();) {
+ if (bundle.equals(iter.next()))
+ return false;
+ }
+ return true;
+ }
+
private List getAllBundles() {
PlatformAdmin platformAdmin = (PlatformAdmin) ServiceHelper.getService(Activator.getBundleContext(), PlatformAdmin.class.getName());
PackageAdmin packageAdmin = (PackageAdmin) ServiceHelper.getService(Activator.getBundleContext(), PackageAdmin.class.getName());

Back to the top