Copies a single file.
Supported parameters:
Example:
<copy-file>
<file>src/main/native/myapp.so</file>
<toFile>/opt/myapp/myapp.so</toFile>
<attributes>
<user>myapp</user>
<group>myapp</group>
<mode>0644</mode>
</attributes>
</copy-file>
Copies an artifact from the local repository. It has to be specified as a dependency.
Supported parameters:
Example:
<copy-artifact>
<artifact>org.jvnet.hudson.main:hudson-war:war</artifact>
<toFile>/opt/hudson/hudson.war</toFile>
<attributes>
<user>hudson</user>
<group>hudson</group>
<mode>0644</mode>
</attributes>
</copy-artifact>
Creates one or more directories with the specified attributes.
Supported parameters:
Example:
<mkdirs>
<paths>
<path>/var/opt/jetty</path>
<path>/var/opt/jetty/cache</path>
<path>/var/opt/jetty/log</path>
</paths>
<attributes>
<user>jetty</user>
<group>jetty</group>
</attributes>
</mkdirs>
Changes the attributes on files and directories found. It will only look at files copied so far.
Supported parameters:
Example:
<set-attributes>
<basedir>/usr/share/hello/bin</basedir>
<fileAttributes>
<user>bah</user>
<group>bah</group>
<mode>0755</mode>
</fileAttributes>
</set-attributes>
Creates a symbolic link.
Supported parameters:
These operation work in a similar fasion and share these attributes:
Copies a complete directory structure.
Additional parameters:
Example:
<copy-directory> <from>target/appassembler</from> <to>/usr/share/hello</to> </copy-directory>
Exctracts an artifact from the local repository. It has to be specified as a dependency. TODO: document the supported archive types. (at least zip, jar and war are supported)
Additional parameters:
Example:
<extract-artifact> <artifact>org.mortbay.jetty:jetty-assembly:zip</artifact> <to>/opt/jetty</to> </extract-artifact>
Exctracts a file. TODO: document the supported archive types. (at least zip, jar and war are supported)
Additional parameters:
Example:
<extract-file> <archive>src/main/extras.zip</archive> <to>/opt/share/myapp/extras</to> </extract-file>