javascript:compile

Goal which assemble javascript sources into the packaging directory. An optional assembler descriptor can be set to configure scripts to be merged. Other scripts are simply copied to the output directory.

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: compile

Optional Parameters

Name Type Description
assemblerReaderManager AssemblerReaderManager No description.
descriptor File Descriptor for the strategy to assemble individual scripts sources into destination. Default value is src/assembler/${project.artifactId}.xml.
descriptorFormat String Descriptor file format (default or jsbuilder)
excludes String[] Exclusion pattern.
includes String[] Inclusion pattern.
outputDirectory File The output directory of the assembled js file. Default value is ${project.build.outputDirectory}.
sourceDirectory File Location of the source files. Default value is ${basedir}/src/main/javascript.

Parameter Details

assemblerReaderManager

No Description.

  • Type : org.codehaus.mojo.javascript.assembler.AssemblerReaderManager
  • Required : No

descriptor

Descriptor for the strategy to assemble individual scripts sources into destination.

  • Type : java.io.File
  • Required : No
  • Default : src/assembler/${project.artifactId}.xml

descriptorFormat

Descriptor file format (default or jsbuilder)

  • Type : java.lang.String
  • Required : No

excludes

Exclusion pattern.

  • Type : java.lang.String[]
  • Required : No

includes

Inclusion pattern.

  • Type : java.lang.String[]
  • Required : No

outputDirectory

The output directory of the assembled js file.

  • Type : java.io.File
  • Required : No
  • Default : ${project.build.outputDirectory}

sourceDirectory

Location of the source files.

  • Type : java.io.File
  • Required : No
  • Default : ${basedir}/src/main/javascript