[pkg-java] r7707 - in trunk/maven-debian-helper: debian maven-debian-plugin/src/main/java/org/debian/maven/plugin
twerner at alioth.debian.org
twerner at alioth.debian.org
Wed Dec 17 22:25:24 UTC 2008
Author: twerner
Date: 2008-12-17 22:25:24 +0000 (Wed, 17 Dec 2008)
New Revision: 7707
Modified:
trunk/maven-debian-helper/debian/changelog
trunk/maven-debian-helper/maven-debian-plugin/src/main/java/org/debian/maven/plugin/InstallMojo.java
Log:
UNRELEASED
* Refactoring.
Modified: trunk/maven-debian-helper/debian/changelog
===================================================================
--- trunk/maven-debian-helper/debian/changelog 2008-12-17 20:32:22 UTC (rev 7706)
+++ trunk/maven-debian-helper/debian/changelog 2008-12-17 22:25:24 UTC (rev 7707)
@@ -1,3 +1,10 @@
+maven-debian-helper (0.2) unstable; urgency=low
+
+ UNRELEASED
+ * Refactoring.
+
+ -- Torsten Werner <twerner at debian.org> Wed, 17 Dec 2008 23:19:00 +0100
+
maven-debian-helper (0.1) unstable; urgency=low
* Initial release. (Closes: #508511)
Modified: trunk/maven-debian-helper/maven-debian-plugin/src/main/java/org/debian/maven/plugin/InstallMojo.java
===================================================================
--- trunk/maven-debian-helper/maven-debian-plugin/src/main/java/org/debian/maven/plugin/InstallMojo.java 2008-12-17 20:32:22 UTC (rev 7706)
+++ trunk/maven-debian-helper/maven-debian-plugin/src/main/java/org/debian/maven/plugin/InstallMojo.java 2008-12-17 22:25:24 UTC (rev 7707)
@@ -195,6 +195,16 @@
FileUtils.copyFile(new File(pomSrcPath()), new File(pomDestPath()));
}
+ private void mkdir(String path) throws IOException
+ {
+ new File(path).mkdirs();
+ }
+
+ private void run(String[] command) throws IOException
+ {
+ Runtime.getRuntime().exec(command, null);
+ }
+
/* if a jar exists: copy it and symlink it to the compat share dir
*/
@@ -204,8 +214,8 @@
if (jarFile.exists())
{
FileUtils.copyFile(jarFile, new File(jarDestPath()));
- new File(compatSharePath()).mkdirs();
- Runtime.getRuntime().exec(linkCommand(), null);
+ mkdir(compatSharePath());
+ run(linkCommand());
}
}
}
More information about the pkg-java-commits
mailing list