matheshar / simple-build-tool

Automatically exported from code.google.com/p/simple-build-tool
Other
0 stars 0 forks source link

Provide a working script for invoking SBT? #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think it would be nice if the simple build tool would come as a package that 
contains everything needed to get started right away instead of requiring 
people to create a script first. Personally I do not like to install JAR files 
in the bin dir -- I think the bin dir should only contain executables or links 
to executables.

So my proposal would be to distribute sbt as a tar and/or zi[ that expands to a 
directory that for now contains only the jar and the scripts (for different 
OS). The user can then add this directory to the bin path or place a symbolic 
link to the script in an existing bin directory. 

I am attaching a shell script for *NIX that can be invoked directly or via a 
symbolic link and will figure out which jar file to use and where the jar file 
is located. It also will only set the -Xmx parameter if the environment 
variable JAVA_OPTS is not set already.

Unfortunately I have now idea how to achieve the same under Windows, but I am 
sure it can be done :)

Original issue reported on code.google.com by johann.petrak@gmail.com on 23 Nov 2010 at 11:54

GoogleCodeExporter commented 8 years ago
The shell script, should be located in the same directory as the jar file.

Original comment by johann.petrak@gmail.com on 23 Nov 2010 at 11:55

Attachments:

GoogleCodeExporter commented 8 years ago
You can certainly put the jar wherever you want.  The Setup page just picks one 
way and goes with it.

Personally I don't see how adding a directory to a path is less work than 
creating a one-line shell script.  In any case, I think that OS-specific 
packages are best handled outside of the sbt project.

You are welcome to use the mailing list if you wish to pursue this further.

Original comment by dmhar...@gmail.com on 29 Nov 2010 at 1:30