Menu

#11 Add Main-Class to jar's manifest

open
nobody
None
5
2010-01-27
2010-01-27
Anonymous
No

For the java version, put

<target name="jar" depends="compile">
<jar destfile="kwalify.jar" basedir="${main.destdir}" >
<manifest>
<attribute name="Main-Class" value="kwalify.Main"/>
</manifest>
</jar>
</target>

And then you can do

java -jar kwalify.jar -f schema.yaml file.yaml

Also, it would be nice if you had a shell script named kwalify that just did

java -jar kwalify.jar $@

it would make it easier to know how to run kwalify

Discussion


Log in to post a comment.