Permalink
Browse files

More on #11: Moved from unix-maven-plugin to jdeb.

This actually has better documentation, so it's already building valid debs, and is also happily cross-platform.
  • Loading branch information...
pimterry committed Sep 2, 2012
1 parent 6da4d71 commit 35c2703e78769483e0267853b65c34e135a0e45e
View
44 pom.xml
@@ -43,17 +43,39 @@
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty.toolchain</groupId>
<artifactId>unix-maven-plugin</artifactId>
<version>1.0-alpha-6.1</version>
<extensions>true</extensions>
<configuration>
<contact>Tim Perry</contact>
<contactEmail>pimterry@gmail.com</contactEmail>
<deb>
<section>devel</section>
</deb>
</configuration>
<groupId>org.vafer</groupId>
<artifactId>jdeb</artifactId>
<version>0.11</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<dataSet>
<data>
<src>${project.build.directory}/${project.build.finalName}.jar</src>
<dst>js-test-runner.jar</dst>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/java</prefix>
</mapper>
</data>
<data>
<src>src/deb/js-test-runner</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin</prefix>
<filemode>755</filemode>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
View
@@ -0,0 +1,9 @@
Package: [[name]]
Version: [[version]]
Section: misc
Priority: optional
Architecture: all
Depends: jdk (>= 1.5)
Maintainer: Tim Perry <pimterry@gmail.com>
Description: JavaScript test runner
Distribution: development
View
@@ -0,0 +1,3 @@
#!/bin/sh
java -jar /usr/share/java/js-test-runner "$@"
@@ -8,6 +8,6 @@
public interface TestResultOutputter
{
public void writeTestResultToFile(TestResult result, OutputStream outputStream) throws IOException;
void writeTestResultToFile(TestResult result, OutputStream outputStream) throws IOException;
}

0 comments on commit 35c2703

Please sign in to comment.