Permalink
Browse files

Merge branch 'master' into change-destination-name

  • Loading branch information...
teabot committed Jun 19, 2012
2 parents 6ea8aa2 + 6a6dafb commit 7659ef627d8f6658067f3c004438b25002a856da
View
@@ -63,7 +63,7 @@ configuration of the form:
/etc/[[artifactId]]/[[artifactId]].properties
/etc/[[artifactId]]/log4j.xml
-
+
If you now do a 'mvn clean install', the 'deb' goal will be called and
artifacts consisting of the deb and potentially the changes file will
automatically be attached to the project.
@@ -113,23 +113,25 @@ more 'data' elements. A 'data' element is used to specify a 'directory', a
elements to your 'dataSet' as you'd like. The 'data' element has the
following options:
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- || Element || Description || Required ||
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | src | The directory, tarball, or file to include in the package | Yes |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | dst | New filename at destination (type must be 'file') | No |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | type | Type of the data source. (archive|directory|file) | No; but will be Yes in the future |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | missingSource | Fail if src file/folder is missing (ignore|fail) | No; defaults to 'fail' |
- *------------------+---------------------------------------------------------------------------+---------------------------------------------+
- | includes | A comma seperated list of files to include from the directory or tarball | No; defaults to all files |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | excludes | A comma seperated list of files to exclude from the directory or tarball | No; defaults to no exclutions |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
- | mapper | The files to exclude from the directory or tarball | No |
- *---------------+------------------------------------------------------------------------------+---------------------------------------------+
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ || Element || Description || Required ||
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | src | The directory, tarball, or file to include in the package | Yes |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | dst | New filename at destination (type must be 'file') | No |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | type | Type of the data source. (archive|directory|file|template) | No; but will be Yes in the future |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | missingSource | Fail if src file/folder is missing (ignore|fail) | No; defaults to 'fail' |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | includes | A comma seperated list of files to include from the directory or tarball | No; defaults to all files |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | excludes | A comma seperated list of files to exclude from the directory or tarball | No; defaults to no exclutions |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | mapper | The files to exclude from the directory or tarball | No |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
+ | paths/(path..) | One or more string literal paths that will created in the package | No; Yes for type 'template' |
+ *------------------+------------------------------------------------------------------------------+---------------------------------------------+
There are different kinds of mappers that can be selected via the `type` argument. The most common one is the 'perm' mapper.
@@ -171,8 +173,9 @@ include a directory, a tarball, and a file in your deb package:
<goal>jdeb</goal>
</goals>
<configuration>
- ...
+
<dataSet>
+
<!-- Tarball example -->
<data>
<src>${project.basedir}/target/my_archive.tar.gz</src>
@@ -188,7 +191,7 @@ include a directory, a tarball, and a file in your deb package:
<filemode>600</filemode>
</mapper>
</data>
- ...
+
<!-- Directory example -->
<data>
<src>${project.build.directory}/data</src>
@@ -200,16 +203,27 @@ include a directory, a tarball, and a file in your deb package:
<src>mapping.txt</src>
</mapper>
</data>
- ...
+
<!-- File example -->
<data>
<src>${project.basedir}/README.txt</src>
<dst>README</dst>
<type>file</type>
- <failOnMissingSrc>false</failOnMissingSrc>
+ <missingSrc>ignore</missingSrc>
+ </data>
+
+ <!-- Template example -->
+ <data>
+ <type>template</type>
+ <paths>
+ <path>/etc/${artifactId}</path>
+ <path>/var/lib/${artifactId}</path>
+ <path>/var/log/${artifactId}</path>
+ <path>/var/run/${artifactId}</path>
+ </paths>
</data>
</dataSet>
- ...
+
</configuration>
</execution>
</executions>
Oops, something went wrong.

0 comments on commit 7659ef6

Please sign in to comment.