Created
August 22, 2013 19:25
-
-
Save faruktoptas/6311652 to your computer and use it in GitHub Desktop.
Sublime Text 2 Java compile build settings.
Place jcompile.sh in /usr/bin directory then make it executable.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file=$1 | |
basename="${file%%.*}" | |
javac $file | |
java $basename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["jcompile.sh", "$file_name"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment