adding an executable aspect to the jar
This commit is contained in:
parent
e1677f54b9
commit
721355396c
2 changed files with 14 additions and 4 deletions
|
@ -22,11 +22,12 @@
|
|||
|
||||
<target name="dist" depends="compile"
|
||||
description="generate the distribution" >
|
||||
<!-- Create the distribution directory -->
|
||||
<mkdir dir="${dist}/lib"/>
|
||||
|
||||
<!-- Put everything in ${build} into the find-hidden-beds-${DSTAMP}.jar file -->
|
||||
<jar jarfile="${dist}/lib/trie-${DSTAMP}.jar" basedir="${build}"/>
|
||||
<jar jarfile="${dist}/trie-${DSTAMP}.jar" basedir="${build}">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="com.hashbangbash.trie.App"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="clean"
|
||||
|
|
9
src/main/java/com/hashbangbash/trie/App.java
Normal file
9
src/main/java/com/hashbangbash/trie/App.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package com.hashbangbash.trie;
|
||||
|
||||
|
||||
public class App {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue