Copyright © 2011, Zeleos Project Team
org.zeleos.zwt:zwt-tools:0.3.1:zjs-compile
Maven mojo to compile ZWT JavaScript files with the
org.zeleos.zwt.compiler.zecma262.ZECMA262Compiler
.
A ZWT JavaScript file must follow the ZWT coding convention.
The goal basically compiles the files in a source directory and output compiled files with or without a specific extension in a output directory. If the source and the output directories are the same then an file extension for compiled files is required.
Compiled files may be optimized (cleaned and obfuscated) and/or formatted.
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 |
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 |