Added javac rule

This commit is contained in:
Cami Diez
2015-05-27 15:38:46 +08:00
parent 718cadb85a
commit a9e3b22fa4
3 changed files with 33 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Appends .java when compiling java files
#
# Example:
# > javac foo
# error: Class names, 'foo', are only accepted if annotation
# processing is explicitly requested
#
#
def match(command, settings):
return (command.script.startswith ('javac ')
and not command.script.endswith('.java'))
def get_new_command(command, settings):
return command.script + '.java'