Merge pull request #224 from diezcami/javac

Added javac rule
This commit is contained in:
Vladimir Iakovlev
2015-05-28 18:01:14 +03:00
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'