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

add quick test for manifest attribute

parent 6d54b4db
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,7 @@ import org.osgi.framework.BundleException;
/**
* This simple utility was originally attached to bug 329376
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329376
* and provides a simple
* 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.
......@@ -32,6 +31,7 @@ public class QuickTestManifests implements IApplication {
private int checkedOk;
private int failedCount;
private int errorCount;
private int foundExepected;
public Object start(IApplicationContext context) throws Exception {
File root = getRoot(context);
......@@ -64,7 +64,8 @@ public class QuickTestManifests implements IApplication {
System.out.println();
System.out.println("Checked bundles under root path: " + rootpath);
System.out.println("Failed to read manifest (may be normal): " + failedCount);
System.out.println("Bundles with version attribute errors: " + errorCount);
System.out.println("Bundles with incorrect 'version' attribute errors: " + errorCount);
System.out.println("Occurances of 'bundle-version': " + foundExepected);
System.out.println("CheckedOk: " + checkedOk);
System.out.println();
}
......@@ -169,6 +170,9 @@ public class QuickTestManifests implements IApplication {
errorCount++;
return;
}
else if ("bundle-version".equals(attr)) {
foundExepected++;
}
}
}
}
......
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