Skip to content
Snippets Groups Projects
Commit 6d54b4db authored by david_williams's avatar david_williams
Browse files

add quick test for manifest attribute

parent 2d9e60e0
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,12 @@ import org.eclipse.osgi.util.ManifestElement;
import org.osgi.framework.BundleException;
/**
* This simple utility was attached to bug
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329376 and provides a simple
* quick check on one form of incorrect headers.
* This simple utility was originally attached to bug 329376
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329376
* and provides a simple
* quick check on one form of incorrect headers. We do not run this test
* routinely, just tested some "old" code to see if they had that form of
* incorrect manifest.
*/
public class QuickTestManifests implements IApplication {
......@@ -43,11 +46,16 @@ public class QuickTestManifests implements IApplication {
if (child.isDirectory()) {
processFolder(child);
}
// note, we check zip's probably only for orbit case?
else if (child.getName().endsWith(".jar") || child.getName().endsWith(".zip")) {
processJar(child);
}
else {
error("Skipping unexpected file type: " + child);
// these common cases clutter the log. But print out other unexpected file types,
// to aide debugging or to spot invalid root directories
if (!(child.getName().endsWith(".jar.pack.gz") || child.getName().endsWith(".xml"))) {
error("Skipping unexpected file type: " + child);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment