Skip to content

Instantly share code, notes, and snippets.

@tatemz
Last active July 6, 2016 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatemz/2621654a404a6ff5aa602f8abf54806e to your computer and use it in GitHub Desktop.
Save tatemz/2621654a404a6ff5aa602f8abf54806e to your computer and use it in GitHub Desktop.
A build system for sublime text using docker java containers. Edit to fit your own needs... Check out this page for more build variables http://docs.sublimetext.info/en/latest/reference/build_systems/configuration.html
{
"shell_cmd": "docker run -v \"$file:/$file_name\" --rm java sh -c 'javac $file_name && java $file_base_name'"
}
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment