You are not logged in.

#1 2014-11-23 14:36:17

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

JVM based scripting

Hi,

I've written a CLI utility in Clojure (it's a debut, yes). It's a very much in-house project too, so I did what occurred to me first.
/usr/bin/pcc:

#!/usr/bin/env bash

java -jar /home/alexey/spaces/clojure/pcc/target/uberjar/pcc-clojure-standalone.jar "$@"

It works, but doesn't look nice and proper. What are the basic guidelines for deploying Java based apps, especially scripts?

Offline

#2 2014-11-23 15:01:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,332
Website

Re: JVM based scripting

You mean the script doesn't look proper, or your ui?  Have you checked existing java tools?  Why do you specify bash?  Here's /usr/bin/jabref:

#!/bin/sh
exec ${JAVA_HOME}/bin/java -jar /usr/share/java/jabref/JabRef-2.10.jar "$@"

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-11-23 15:43:13

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: JVM based scripting

Trilby wrote:

You mean the script doesn't look proper, or your ui?

The very existence of this script looks outrageous. If you tell me this is really the Java way, I cannot but comply, though.

Offline

Board footer

Powered by FluxBB