ZWT V0.3.1 JavaScript framework for Rich Internet Applications

zwt-tools:js-compile

Full name:

org.zeleos.zwt:zwt-tools:0.3.1:js-compile

Description:

Maven mojo to compile JavaScript files with the org.zeleos.zwt.compiler.zecma262.ECMA262Compiler.

It basically compiles the files in a source directory and output compiled files with or without a specific extension in a destination directory. If the source and the destination directories are the same then an file extension for compiled files is required.

Compiled files may be optimized (cleaned and obfuscated) and/or formatted.

Required Parameters
Name Type Description
outputDirectory java.io.File The output directory.
Default value is: ${project.build.outputDirectory}
sourceDirectory java.io.File The source directory.
Default value is: ${basedir}/src/main/js
optional Parameters
Name Type Description
extension java.lang.String The extension to use for output files.
format boolean Format the output.
Default value is: false
optimize boolean Optimize the output.
Default value is: true