Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ScriptingWithJava is a shellscript helping you to make Java usable as a scripting language

License

Notifications You must be signed in to change notification settings

sten-schmidt/ScriptingWithJava

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScriptingWithJava.sh

ScriptingWithJava is a shellscript (Bash- and PowerShell-Version) helping you to make Java usable as a scripting language.

Goal

Typical production servers do not provide tools like maven or gradle meanwhile OpenJDK is available. So edit and recompile Java programs in SSH-Sessions is possible but unhandy.

Requirements

  • You are willing to deploy you Java application in source form as .java files.
  • All your java files exits in a flat folder.
  • All classes are member of the same package.
  • The App-Name defined as $PROG must match the name of the public class providing the public static void main method.

Functional principle

When this script is called, it compares the change date of the Java program with the compiled jar (or class) file and decides if a recompile/rebuild is necessary before execution.

TODO

  • Support for additional jar files (dependencies)
  • Support for non existing Package-Name (default package)

About

ScriptingWithJava is a shellscript helping you to make Java usable as a scripting language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.