xslt-generator:many-to-many

Full name:

net.sf.xsltmp:xslt-generator-maven-plugin:1.8:many-to-many

Description:

Perform XSL transformation of multiple source files with destination files created 1:1.

Each source file is transformed into a single destination file, preserving the directory structure. The destination directory tree is created based on the source directory tree.

Files with up-to-date timestamp are skipped.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
srcDir File - The source directory. The source files are read from here.
xslTemplate String - The XSL template to use.

Optional Parameters

Name Type Since Description
addDestDirTo String - Where should the destination directory be added. Valid values are: sources, resources, test-sources, test-resources.

This is a shortcut to avoid configuring the build-helper-maven-plugin.

When adding to resources or test-resources, all .java files are excluded by default.


destDir File - The destination directory. The output files are written based on this directory.
fileNameRegex String - A regular expression that will match part of the XML file name for replacement.
fileNameReplacement String - The replacement for the matched regular expression of the XML file name.
filter String - Type of filter to use on input files (XSL templates and source files). Must implement Filter.
filterParameters Map - Map of parameters to be passed to the filter.

See the particular filter for its parameters.


force boolean - Force generation. When set, the timestamp of the last build is ignored and the XSLT generation is always performed.
Default value is: false.
parameters Map - A Map of parameters to be passed into the style.
sourceEncoding String - Read the source files (XSL templates and XML transformation sources) using this encoding.
srcExcludes String - Which files from the source directory tree should be excluded in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.


srcIncludes String - Which files from the source directory tree should be included in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.


Default value is: **/*.xml.

Parameter Details

addDestDirTo:

Where should the destination directory be added. Valid values are: sources, resources, test-sources, test-resources.

This is a shortcut to avoid configuring the build-helper-maven-plugin.

When adding to resources or test-resources, all .java files are excluded by default.

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

destDir:

The destination directory. The output files are written based on this directory.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-xml/xslt-generator/

fileNameRegex:

A regular expression that will match part of the XML file name for replacement.
  • Type: java.lang.String
  • Required: No

fileNameReplacement:

The replacement for the matched regular expression of the XML file name.
  • Type: java.lang.String
  • Required: No

filter:

Type of filter to use on input files (XSL templates and source files). Must implement Filter.
  • Type: java.lang.String
  • Required: No

filterParameters:

Map of parameters to be passed to the filter.

See the particular filter for its parameters.

  • Type: java.util.Map
  • Required: No

force:

Force generation. When set, the timestamp of the last build is ignored and the XSLT generation is always performed.
  • Type: boolean
  • Required: No
  • Expression: ${xsltmp.force}
  • Default: false

parameters:

A Map of parameters to be passed into the style.
  • Type: java.util.Map
  • Required: No

sourceEncoding:

Read the source files (XSL templates and XML transformation sources) using this encoding.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.sourceEncoding}

srcDir:

The source directory. The source files are read from here.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.sourceDirectory}

srcExcludes:

Which files from the source directory tree should be excluded in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.

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

srcIncludes:

Which files from the source directory tree should be included in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.

  • Type: java.lang.String
  • Required: No
  • Default: **/*.xml

xslTemplate:

The XSL template to use.
  • Type: java.lang.String
  • Required: Yes