Skip to content

Commit

Permalink
Merge pull request #18 from daniel-beck/JENKINS-34530
Browse files Browse the repository at this point in the history
[FIX JENKINS-34530] Make test harness work for 2.x based plugins
  • Loading branch information
olivergondza committed May 4, 2016
2 parents acf3d37 + d29aea5 commit 1f72558
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/org/jvnet/hudson/test/TestPluginManager.java
Expand Up @@ -82,15 +82,15 @@ private Set<String> loadBundledPlugins(File fromDir) throws IOException, URISynt
Set<String> names = new HashSet<String>();

File[] children = fromDir.listFiles();
if (children==null)
throw new Error("Unable to find "+fromDir);
for (File child : children) {
try {
names.add(child.getName());

copyBundledPlugin(child.toURI().toURL(), child.getName());
} catch (IOException e) {
LOGGER.log(Level.SEVERE, "Failed to extract the bundled plugin "+child,e);
if (children!=null) {
for (File child : children) {
try {
names.add(child.getName());

copyBundledPlugin(child.toURI().toURL(), child.getName());
} catch (IOException e) {
LOGGER.log(Level.SEVERE, "Failed to extract the bundled plugin "+child,e);
}
}
}
// If running tests for a plugin, include the plugin being tested
Expand Down

0 comments on commit 1f72558

Please sign in to comment.