Skip to content

Instantly share code, notes, and snippets.

@rjeschke
Last active December 17, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rjeschke/5643828 to your computer and use it in GitHub Desktop.
Save rjeschke/5643828 to your computer and use it in GitHub Desktop.
jnibuild bash script
#!/bin/bash
artifact=~/.m2/repository/com/github/rjeschke/jnibuild/0.1-SNAPSHOT/jnibuild-0.1-SNAPSHOT.jar
if [ ! -f $artifact ]
then
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=http://maven.renejeschke.de/snapshots/ -Dartifact=com.github.rjeschke:jnibuild:0.1-SNAPSHOT
fi
java -cp $artifact com.github.rjeschke.jnibuild.Build $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment