class Buildr::Scala::Scalac::Javac
Javac compiler:
compile.using(:javac)
Used by default if .java files are found in the src/main/java directory (or src/test/java) and sets the target directory to target/classes (or target/test/classes).
Accepts the following options:
-
:warnings – Issue warnings when compiling. True when running in verbose mode.
-
:debug – Generates bytecode with debugging information. Set from the debug
environment variable/global option.
-
:deprecation – If true, shows deprecation messages. False by default.
-
:source – Source code compatibility.
-
:target – Bytecode compatibility.
-
:lint – Lint option is one of true, false (default), name (e.g. 'cast') or array.
-
:other – Array of options passed to the compiler
(e.g. ['-implicit:none', '-encoding', 'iso-8859-1'])
Constants
- OPTIONS
Public Instance Methods
Filter out source files that are known to not produce any corresponding .class output file. If we leave this type of file in the generated compile map the compiler will always be run due to missing output files.
# File lib/buildr/java/compiler.rb, line 69 def compile_map(sources, target) map = super map.reject! { |key,_| File.basename(key) == 'package-info.java' } || map end