提交 5af65a06 编写于 作者: K kohsuke

adjusting to work with new manifest file that the maven plugin creates.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1003 71c3de6d-444a-0410-be80-ed276b4c234a
上级 07bfa1e2
......@@ -102,7 +102,13 @@ public final class PluginWrapper {
if(isLinked) {
// resolve the .hpl file to the location of the manifest file
archive = resolve(archive,new BufferedReader(new FileReader(archive)).readLine());
String firstLine = new BufferedReader(new FileReader(archive)).readLine();
if(firstLine.startsWith("Manifest-Version:")) {
// this is the manifest already
} else {
// in direction
archive = resolve(archive, firstLine);
}
// then parse manifest
FileInputStream in = new FileInputStream(archive);
try {
......@@ -201,6 +207,7 @@ public final class PluginWrapper {
private void parseClassPath(File archive, List<URL> paths, String attributeName, String separator) throws IOException {
String classPath = manifest.getMainAttributes().getValue(attributeName);
if(classPath==null) return; // attribute not found
for (String s : classPath.split(separator)) {
File file = resolve(archive, s);
if(file.getName().contains("*")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册