Skip to content

Commit

Permalink
Build self contained jar
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanni committed Mar 25, 2017
1 parent a4deafe commit 8927531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin
*.jar
8 changes: 2 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@
</target>

<target name="jar" depends="compile">
<manifestclasspath property="manifest_cp" jarfile="${jarfile}">
<classpath>
<fileset refid="libfiles"/>
</classpath>
</manifestclasspath>
<jar destfile="${jarfile}">
<fileset dir="${bin}"/>
<fileset dir="${resources}"/>
<manifest>
<attribute name="Main-Class" value="org.helioviewer.jhv.DataSourcesChecker"/>
<attribute name="Class-Path" value="${manifest_cp}"/>
<attribute name="Class-Path" value="."/>
<attribute name="version" value="1.0"/>
<attribute name="revision" value="0"/>
</manifest>
<zipgroupfileset refid="libfiles"/>
</jar>
</target>

Expand Down

0 comments on commit 8927531

Please sign in to comment.