Full name:
com.vertispan.j2cl:j2cl-maven-plugin:0.21.0:test
Description:
@J2clTestInput
,
compiles them to JavaScript, and runs them in the configured
browser. Presently this defaults to using
optimizationLevel=BUNDLE_JAR and webdriver=HTMLUNIT, though these
are actually incompatible (HtmlUnit is not compatible with the es6
"class" keyword, and BUNDLE_JAR avoids transpiling to es3, so a
project using this goal must change one or the other to get
started.Attributes:
test
.test
.Name | Type | Since | Description |
---|---|---|---|
<bootstrapClasspath> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:javac-bootstrap-classpath:0.11.0-9336533b6 .Alias is: javacBootstrapClasspathJar . |
<bootstrapJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:bootstrap:zip:jszip:0.11.0-9336533b6 . |
<classpathScope> |
String |
- |
The dependency scope to use for the classpath.
The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following:
Default value is: test . |
<gwt3BuildCacheDir> |
File |
- |
Specifies the path to the build cache. This defaults to a directory
in target , but for easier reuse and faster builds
between projects, it can make sense to set this globally to a
shared directory.Default value is: ${project.build.directory}/gwt3BuildCache .User property is: gwt3.cache.dir . |
<initialScriptFilename> |
String |
- |
(no description) Default value is: ${project.artifactId}/test.js . |
<internalAnnotationsJar> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:gwt-internal-annotations:0.11.0-9336533b6 . |
<jreJar> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:jre:0.11.0-9336533b6 . |
<jreJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:jre:zip:jszip:0.11.0-9336533b6 . |
<jsinteropAnnotationsJar> |
String |
- |
(no description) Default value is: com.google.jsinterop:jsinterop-annotations:2.0.0 . |
<junitAnnotations> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:junit-annotations:0.11.0-9336533b6 . |
<localBuildCache> |
File |
- |
(no description) Default value is: ${project.build.directory}/j2cl-maven-plugin-local-cache . |
<testJsZip> |
String |
- |
(no description) Default value is: com.vertispan.j2cl:closure-test:zip:jszip:0.11.0-9336533b6 . |
<webappDirectory> |
String |
- |
The output directory for this goal. Note that this is used in
conjunction with initialScriptFilename so that more
than one goal or even project can share the same webappDirectory,
but have their own sub-directory and output file.Default value is: ${project.build.directory}/${project.build.finalName}-test . |
Name | Type | Since | Description |
---|---|---|---|
<annotationProcessorMode> |
AnnotationProcessorMode |
- |
(no description) Default value is: AVOID_MAVEN . |
<checkAssertions> |
boolean |
- |
Whether or not to leave Java assert checks in the compiled code. In
j2cl:test, defaults to true. Has no effect when the compilation
level isn't set to ADVANCED_OPTIMIZATIONS, assertions will always
remain enabled. Default value is: true . |
<compilationLevel> |
String |
- |
Describes how the output should be built - presently supports five
modes, four of which are closure-compiler "compilationLevel"
argument options, and an additional special case for J2cl-base
applcations. The quoted descriptions here explain how
closure-compiler defines them.
Default value is: BUNDLE_JAR .User property is: compilationLevel . |
<defines> |
Map |
- |
Closure flag: "Override the value of a variable annotated
@define . The format is
<name>[=<val>] , where
<name> is the name of a
@define variable and <val>
is a boolean, number, or a single-quoted string that contains no
single quotes. If [=<val>] is omitted,
the variable is marked true" In this plugin the format is to
provided tags for each define key, where the text contents will
represent the value. In the context of J2CL and Java, this can be
used to define values for system properties. |
<dependencyMode> |
String |
- |
Deprecated. Will be removed in 0.21 Default value is: SORT_ONLY . |
<dependencyReplacements> |
List |
- |
(no description) |
<enableSourcemaps> |
boolean |
- |
True to enable sourcemaps to be built into the project output. Default value is: false . |
<env> |
String |
- |
Closure flag: "Determines the set of builtin externs to load.
Options: BROWSER, CUSTOM. Defaults to BROWSER." Presently we
default to BROWSER, but are considering changing this to CUSTOM if
we include externs files in the generate jsinterop artifacts, so
that each set of bindings is self-contained. Default value is: BROWSER . |
<excludes> |
List |
- |
Not presently used, added to match conventions of other maven test
plugins. |
<externs> |
Set |
- |
Deprecated. Will be removed in 0.21 |
<includes> |
List |
- |
Not presently used, added to match conventions of other maven test
plugins. Default value is: **/Test*.java,**/*Test.java, **/GwtTest*.java . |
<incrementalEnabled> |
boolean |
- |
(no description) Default value is: false .User property is: j2cl.incremental . |
<languageOut> |
String |
- |
ECMAScript language level of generated JavasScript. Values
correspond to the Closure Compiler reference:
https://github.com/google/closure-compiler/wiki/Flags-and-Options Default value is: ECMASCRIPT5 .User property is: languageOut . |
<rewritePolyfills> |
boolean |
- |
Closure flag: "Rewrite ES6 library calls to use polyfills provided
by the compiler's runtime." Unlike in closure-compiler, defaults to
false. Default value is: false . |
<shutdownWaitSeconds> |
int |
- |
(no description) |
<skip> |
boolean |
- |
If set to true, tests will not be compiled or run. Default value is: false .User property is: maven.test.skip . |
<skipTests> |
boolean |
- |
If set to true, tests will not be run, but will still be compiled
to JavaScript. Default value is: false .User property is: skipTests . |
<taskMappings> |
Map |
- |
(no description) |
<tests> |
List |
- |
Not presently used, added to match conventions of other maven test
plugins. |
<translationsFile> |
TranslationsFileConfig |
- |
Closure flag: "Source of translated messages. Currently only
supports XTB." |
<webdriver> |
String |
- |
Currently can be "htmlunit" or "chrome" to control how to run tests
- this will be rewritten as part of 0.21. Default value is: htmlunit . |
<workerThreadCount> |
String |
- |
(no description) |
com.vertispan.j2cl.mojo.AnnotationProcessorMode
No
AVOID_MAVEN
java.lang.String
Yes
com.vertispan.j2cl:javac-bootstrap-classpath:0.11.0-9336533b6
javacBootstrapClasspathJar
java.lang.String
Yes
com.vertispan.j2cl:bootstrap:zip:jszip:0.11.0-9336533b6
boolean
No
true
The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following:
java.lang.String
Yes
test
ADVANCED_OPTIMIZATIONS
- "ADVANCED_OPTIMIZATIONS
aggressively reduces code size by renaming function names and
variables, removing code which is never called, etc." This is
typically what is expected for production builds.SIMPLE_OPTIMIZATIONS
- "SIMPLE_OPTIMIZATIONS
performs transformations to the input JS that do not require any
changes to JS that depend on the input JS." Generally not useful in
this plugin - slower than BUNDLE, much bigger than
ADVANCED_OPTIMIZATIONSWHITESPACE_ONLY
- "WHITESPACE_ONLY removes
comments and extra whitespace in the input JS." Generally not
useful in this plugin - slower than BUNDLE, much bigger than
ADVANCED_OPTIMIZATIONSBUNDLE
- "Simply orders and concatenates files to
the output." The GWT fork of closure also prepends define
statements, and provides wiring for sourcemaps.BUNDLE_JAR
- Not a "real" closure-compiler option.
but instead invokes BUNDLE on each classpath entry and generates a
single JS file which will load those bundled files in order.
Enables the compiler to cache results for each dependency, rather
than re-generate a single large JS file.java.lang.String
No
compilationLevel
BUNDLE_JAR
@define
. The format is
<name>[=<val>]
, where
<name>
is the name of a
@define
variable and <val>
is a boolean, number, or a single-quoted string that contains no
single quotes. If [=<val>]
is omitted,
the variable is marked true" In this plugin the format is to
provided tags for each define key, where the text contents will
represent the value. In the context of J2CL and Java, this can be
used to define values for system properties.java.util.Map
No
java.lang.String
No
SORT_ONLY
java.util.List
No
boolean
No
false
java.lang.String
No
BROWSER
java.util.List
No
java.util.Set
No
target
, but for easier reuse and faster builds
between projects, it can make sense to set this globally to a
shared directory.java.io.File
Yes
gwt3.cache.dir
${project.build.directory}/gwt3BuildCache
java.util.List
No
**/Test*.java,**/*Test.java, **/GwtTest*.java
boolean
No
j2cl.incremental
false
java.lang.String
Yes
${project.artifactId}/test.js
java.lang.String
Yes
com.vertispan.j2cl:gwt-internal-annotations:0.11.0-9336533b6
java.lang.String
Yes
com.vertispan.j2cl:jre:0.11.0-9336533b6
java.lang.String
Yes
com.vertispan.j2cl:jre:zip:jszip:0.11.0-9336533b6
java.lang.String
Yes
com.google.jsinterop:jsinterop-annotations:2.0.0
java.lang.String
Yes
com.vertispan.j2cl:junit-annotations:0.11.0-9336533b6
java.lang.String
No
languageOut
ECMASCRIPT5
java.io.File
Yes
${project.build.directory}/j2cl-maven-plugin-local-cache
boolean
No
false
int
No
boolean
No
maven.test.skip
false
boolean
No
skipTests
false
java.util.Map
No
java.lang.String
Yes
com.vertispan.j2cl:closure-test:zip:jszip:0.11.0-9336533b6
java.util.List
No
com.vertispan.j2cl.mojo.TranslationsFileConfig
No
initialScriptFilename
so that more
than one goal or even project can share the same webappDirectory,
but have their own sub-directory and output file.java.lang.String
Yes
${project.build.directory}/${project.build.finalName}-test
java.lang.String
No
htmlunit
java.lang.String
No