Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSL for merging fileType Directives #18

Open
spn opened this issue Aug 24, 2012 · 2 comments
Open

DSL for merging fileType Directives #18

spn opened this issue Aug 24, 2012 · 2 comments
Milestone

Comments

@spn
Copy link

spn commented Aug 24, 2012

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 added a commit that referenced this issue Jan 30, 2013
address #18 by injecting a Directive.or metaclass method
@AlanKrueger
Copy link
Member

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

@AlanKrueger
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants