Skip to content

Commit

Permalink
Merge pull request #351 from entertainyou/cli2
Browse files Browse the repository at this point in the history
Find jar when jsonschema2pojo sh script is not running in script folder
  • Loading branch information
joelittlejohn committed May 13, 2015
2 parents 6f04e54 + 2f8a82c commit c048810
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jsonschema2pojo-cli/src/main/scripts/jsonschema2pojo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
# limitations under the License.
#

java -jar ${project.build.finalName}.jar "$@"
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")

java -jar ${SCRIPTPATH}/${project.build.finalName}.jar "$@"

0 comments on commit c048810

Please sign in to comment.