Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
6d54b4db
Commit
6d54b4db
authored
14 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
add quick test for manifest attribute
parent
2d9e60e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
+12
-4
12 additions, 4 deletions
.../src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
with
12 additions
and
4 deletions
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
+
12
−
4
View file @
6d54b4db
...
...
@@ -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
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment