karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf git commit: [KARAF-3472] Use directly workDirectory as File in InstallKars MOJO
Date Sat, 24 Jan 2015 13:38:58 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-3.0.x 52b0effcb -> 2b2d3e8b6


[KARAF-3472] Use directly workDirectory as File in InstallKars MOJO


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/2b2d3e8b
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/2b2d3e8b
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/2b2d3e8b

Branch: refs/heads/karaf-3.0.x
Commit: 2b2d3e8b6e7354842f01403790a4f50ef4d9d336
Parents: 52b0eff
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Sat Jan 24 14:38:17 2015 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Sat Jan 24 14:38:17 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/karaf/tooling/features/InstallKarsMojo.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/2b2d3e8b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/InstallKarsMojo.java
----------------------------------------------------------------------
diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/InstallKarsMojo.java
b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/InstallKarsMojo.java
index bde0483..c2142e6 100644
--- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/InstallKarsMojo.java
+++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/InstallKarsMojo.java
@@ -55,7 +55,7 @@ public class InstallKarsMojo extends MojoSupport {
      * @parameter default-value="${project.build.directory}/assembly"
      * @required
      */
-    protected String workDirectory;
+    protected File workDirectory;
 
     /**
      * Features configuration file (etc/org.apache.karaf.features.cfg).
@@ -168,7 +168,7 @@ public class InstallKarsMojo extends MojoSupport {
                     getLog().info("Extracting " + artifact.toString() + " kar");
                     try {
                         Kar kar = new Kar(karFile.toURI());
-                        kar.extract(systemDirectory, new File(workDirectory));
+                        kar.extract(systemDirectory, workDirectory);
                         for (URI repositoryUri : kar.getFeatureRepos()) {
                             resolveRepository(repositoryUri.getPath(), repositories, features,
false, addToStartup);
                         }


Mime
View raw message