Skip to content

Commit

Permalink
Download universalJavaApplicationStub from the original project locat…
Browse files Browse the repository at this point in the history
…ion instead of maintaining a copy
  • Loading branch information
toonetown committed Apr 20, 2016
1 parent c9b6938 commit 8d8e514
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 399 deletions.
26 changes: 24 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,28 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- Download universalJavaApplicationStub for use in the OS X app -->
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/tofi86/universalJavaApplicationStub/master/src/universalJavaApplicationStub</url>
<outputDirectory>${project.build.directory}/resources</outputDirectory>
<!-- Needs to be named with ".sh" extension or OS X 10.11 gets confused -->
<outputFileName>universalJavaApplicationStub.sh</outputFileName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Package the jar as an OS X application -->
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
Expand All @@ -199,10 +220,10 @@
<configuration>
<target>
<taskdef name="jarbundler" classname="com.ultramixer.jarbundler.JarBundler" />
<chmod file="${project.build.sourceDirectory}/resources/universalJavaApplicationStub.sh" perm="+x" />
<chmod file="${project.build.directory}/resources/universalJavaApplicationStub.sh" perm="+x" />
<jarbundler dir="${project.build.directory}" name="Luyten" shortname="Luyten" signature="Luyten"
jars="${project.build.directory}/${project.artifactId}-${project.version}.jar"
stubfile="${project.build.sourceDirectory}/resources/universalJavaApplicationStub.sh"
stubfile="${project.build.directory}/resources/universalJavaApplicationStub.sh"
useJavaXKey="true" workingdirectory="$JAVAROOT"
bundleid="${project.groupId}.${project.artifactId}"
mainclass="${project.groupId}.${project.artifactId}.LuytenOsx"
Expand All @@ -217,6 +238,7 @@
<documenttype name="Ear File" extensions="ear" role="Viewer" />
<documenttype name="Zip File" extensions="zip" role="Viewer" />
</jarbundler>
<!-- Produce a zip file of the application for distribution -->
<zip destfile="${project.build.directory}/Luyten-OSX.zip">
<zipfileset dir="${project.build.directory}"
includes="Luyten.app/**" excludes="Luyten.app/Contents/MacOS/*" />
Expand Down
Loading

0 comments on commit 8d8e514

Please sign in to comment.