Add Main-Class to jar's manifest
Brought to you by:
kwatch
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