tcurdt/jdeb — pull request #44 by teabot (2012-06-15 16:05:14+00:00)
Title: Add a configuration option to allow for missing src files.

What does it do?
---------------------------
This patch allows you to specify a behaviour on each dataset that lets them fail silently if the ```src``` file is not present.
```xml

${project.basedir}/src/main/scripts/${artifactId}
file
false

perm
etc/init.d
744

```
Why is this useful?
---------------------------
We use jdeb in many, many projects. We have a standard project and package layout. To minimize configuration we put our jdeb configuration in our 'master' pom file. Developers just inherit it and don't have to think about getting our deb packaging right.

For example we say that for projects that produce daemons:
```
src/main/scripts/${artifactId}
```
will always be made executable and deployed as:
```
/etc/init.d/${artifactId}
```
But not every project is a daemon, so we like to be able to tell JDeb that if ```src/main/scripts/${artifactId}``` doesn't exist then don't worry about it - just continue. We have a few conditional data sets that are packaged like this.