Author: abelevich
Date: 2009-05-04 14:13:39 -0400 (Mon, 04 May 2009)
New Revision: 14013
Modified:
trunk/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java
Log:
fix jar resource resolve
Modified:
trunk/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java
===================================================================
---
trunk/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java 2009-05-04
18:04:24 UTC (rev 14012)
+++
trunk/cdk/maven-resource-dependency-plugin/src/main/java/org/richfaces/cdk/rd/mojo/ResourceDependencyMojo.java 2009-05-04
18:13:39 UTC (rev 14013)
@@ -22,6 +22,7 @@
import java.io.File;
import java.net.MalformedURLException;
+import java.net.URI;
import java.net.URL;
import java.util.Collection;
import java.util.Collections;
@@ -402,10 +403,10 @@
}
File file = artifact.getFile();
-
+
try {
FileSystemManager manager = VFS.getManager();
- jarFileObjects = manager.resolveFile("jar://" + file.getAbsolutePath());
+ jarFileObjects = manager.resolveFile("jar:" + file.getAbsolutePath());
} catch (FileSystemException e) {
getLog().error("Error during processing file: " + file.getAbsolutePath()+
"\n" + e.getMessage(), e);
}
Show replies by date