From 85cef9f8077a5cae5258f3efba193d2b9f1d6a3f Mon Sep 17 00:00:00 2001 From: DJ Houghton Date: Fri, 9 Oct 2009 15:15:57 +0000 Subject: Added back deleted methods for future use. --- .../p2/tests/verifier/VerifierApplication.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'bundles/org.eclipse.equinox.p2.tests.verifier') 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()); -- cgit v1.2.3