Skip to content

Commit

Permalink
baby step toward working with Maven 3.0.
Browse files Browse the repository at this point in the history
The next step is to write a new bootstrap code that works with plexus classworlds, which is package-renamed.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26722 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
kohsuke committed Jan 29, 2010
1 parent 97c7060 commit d814c09
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion maven-plugin/src/main/java/hudson/maven/MavenProcessFactory.java
Expand Up @@ -378,9 +378,25 @@ private Node getCurrentNode() {
return Executor.currentExecutor().getOwner().getNode();
}

/**
* Locates classworlds jar file.
*
* Note that Maven 3.0 changed the name to plexus-classworlds
*
* <pre>
* $ find tools/ -name "*classworlds*.jar"
* tools/maven/boot/classworlds-1.1.jar
* tools/maven-2.2.1/boot/classworlds-1.1.jar
* tools/maven-3.0-alpha-2/boot/plexus-classworlds-1.3.jar
* tools/maven-3.0-alpha-3/boot/plexus-classworlds-2.2.2.jar
* tools/maven-3.0-alpha-4/boot/plexus-classworlds-2.2.2.jar
* tools/maven-3.0-alpha-5/boot/plexus-classworlds-2.2.2.jar
* tools/maven-3.0-alpha-6/boot/plexus-classworlds-2.2.2.jar
* </pre>
*/
private static final FilenameFilter CLASSWORLDS_FILTER = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.startsWith("classworlds") && name.endsWith(".jar");
return name.contains("classworlds") && name.endsWith(".jar");
}
};

Expand Down

0 comments on commit d814c09

Please sign in to comment.