adding an executable aspect to the jar

This commit is contained in:
Vincent Batts 2012-10-04 09:31:21 -04:00
parent e1677f54b9
commit 721355396c
2 changed files with 14 additions and 4 deletions

View file

@ -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"

View file

@ -0,0 +1,9 @@
package com.hashbangbash.trie;
public class App {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}