ZWT V0.3.1 JavaScript framework for Rich Internet Applications

zwt-tools:zjs-package

Full name:

org.zeleos.zwt:zwt-tools:0.3.1:zjs-package

Description:

Maven mojo to package one or more ZWT class to one or more packaged JavaScript files using org.zeleos.zwt.tools.packager.zecma262.ZECMA262Packager.

The resulting files don't contains any include() directives. They contains all the required dependencies of the input class in the correct loading order.

Note that if multiple files are packaged at the same time, dependencies are included only once for the first class that defines this dependency. It is then assumed that they are loaded in a single HTML page in the same order as during the packaging operation.

The name of the resulting files are qualified ZWT class names: [namespace].[className].js.

The resulting files can be obfuscated. It is also possible to output different files per class path.

This goal can also be used to package all the ZWT application classes contained in the sourceDirectory.

Required Parameters
Name Type Description
classList java.lang.String[] The list of classes to package.
classPath java.lang.String[] The class path where to find classes.
Default value is: ${basedir}/src/main/js
outputDirectory java.io.File The output directory.
Default value is: ${project.build.directory}/${project.build.finalName}/js-pack
sourceDirectory java.io.File The source directory to find ZWT application classes.
Default value is: ${basedir}/src/main/js
zwtFrmkArtifactId java.lang.String The artifactId of the ZWT framework to use.
Default value is: zwt-frmk
zwtFrmkGroupId java.lang.String The groupId of the ZWT framework to use.
Default value is: org.zeleos.zwt
optional Parameters
Name Type Description
obfuscate boolean Obfuscate/Optimize the output.
Default value is: true
split boolean Split the output per class path.
Default value is: false