Fork me on GitHub

directory-content:copy

Full name:

biz.gabrys.maven.plugins:directory-content-maven-plugin:2.0.0:copy

Description:

Copies files from source to output directory.

Attributes:

  • Requires a Maven project to be executed.
  • Since version: 1.0.
  • Binds by default to the lifecycle phase: process-sources.

Required Parameters

Name Type Since Description
includes String[] 1.0 List of files to include. Specified as fileset patterns which are relative to the source directory. See available fileset patterns formats.

Optional Parameters

Name Type Since Description
excludes String[] 1.0 List of files to exclude. Specified as fileset patterns which are relative to the source directory. See available fileset patterns formats.
Default value is: [].
filesetPatternFormat String 1.0 Defines inclusion and exclusion fileset patterns format. Available options:
  • ant - Ant patterns
  • regex - regular expressions (use '/' as path separator)

Default value is: ant.
User property is: directory.content.filesetPatternFormat.
force boolean 1.0 Forces to always process files. By default file is only processed when modified or the destination file does not exist.
Default value is: false.
User property is: directory.content.force.
outputDirectory File 1.0 The destination directory for copied files.
Default value is: ${project.build.directory}.
User property is: directory.content.outputDirectory.
skip boolean 1.0 Defines whether to skip the plugin execution.
Default value is: false.
User property is: directory.content.skip.
sourceDirectory File 1.0 The directory with source files.
Default value is: ${project.build.sourceDirectory}.
User property is: directory.content.sourceDirectory.
verbose boolean 1.0 Defines whether the plugin runs in verbose mode.
Notice: always true in debug mode.
Default value is: false.
User property is: directory.content.verbose.

Parameter Details

excludes:

List of files to exclude. Specified as fileset patterns which are relative to the source directory. See available fileset patterns formats.
Default value is: [].
  • Type: java.lang.String[]
  • Since: 1.0
  • Required: No

filesetPatternFormat:

Defines inclusion and exclusion fileset patterns format. Available options:
  • ant - Ant patterns
  • regex - regular expressions (use '/' as path separator)
  • Type: java.lang.String
  • Since: 1.0
  • Required: No
  • User Property: directory.content.filesetPatternFormat
  • Default: ant

force:

Forces to always process files. By default file is only processed when modified or the destination file does not exist.
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: directory.content.force
  • Default: false

includes:

List of files to include. Specified as fileset patterns which are relative to the source directory. See available fileset patterns formats.
  • Type: java.lang.String[]
  • Since: 1.0
  • Required: Yes

outputDirectory:

The destination directory for copied files.
  • Type: java.io.File
  • Since: 1.0
  • Required: No
  • User Property: directory.content.outputDirectory
  • Default: ${project.build.directory}

skip:

Defines whether to skip the plugin execution.
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: directory.content.skip
  • Default: false

sourceDirectory:

The directory with source files.
  • Type: java.io.File
  • Since: 1.0
  • Required: No
  • User Property: directory.content.sourceDirectory
  • Default: ${project.build.sourceDirectory}

verbose:

Defines whether the plugin runs in verbose mode.
Notice: always true in debug mode.
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: directory.content.verbose
  • Default: false