TrigonicSolutions / gradle-rpm-plugin

Gradle plugin for constructing RPM packages.
Apache License 2.0
38 stars 19 forks source link

DSL for merging fileType Directives #18

Open spn opened 12 years ago

spn commented 12 years ago

Would be nice to have something to merge various fileTypes. For example, to produce a file which is both CONFIG and NOREPLACE, have to write:

fileType = new org.freecompany.redline.payload.Directive(org.freecompany.redline.payload.Directive.RPMFILE_CONFIG | org.freecompany.redline.payload.Directive.RPMFILE_NOREPLACE)

that's way too verbose... Perhaps overloading | (OR) operator for Directive makes sense? this would produce CONFIG | NOREPLACE

AlanKrueger commented 11 years ago

Cloudbees should automatically detect the above change and produce a 1.4 snapshot build, if I've configured it properly.

AlanKrueger commented 11 years ago

Hrm, automated build failed for some odd reason and now it doesn't appear to be uploading shapshots automatically. I manually uploaded a snapshot to https://oss.sonatype.org/content/repositories/snapshots/com/trigonic/gradle-rpm-plugin/1.4-SNAPSHOT/ can you take a look to see if it works for you?