[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-192) embedded gradle shrinkwrap-resolver - propagate project properties via API
Matous Jobanek (JIRA)
issues at jboss.org
Wed Aug 19 04:04:26 EDT 2015
[ https://issues.jboss.org/browse/SHRINKRES-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099701#comment-13099701 ]
Matous Jobanek commented on SHRINKRES-192:
------------------------------------------
Hi [~mmatloka], is there any progress regarding to this issue
> embedded gradle shrinkwrap-resolver - propagate project properties via API
> --------------------------------------------------------------------------
>
> Key: SHRINKRES-192
> URL: https://issues.jboss.org/browse/SHRINKRES-192
> Project: ShrinkWrap Resolvers
> Issue Type: Feature Request
> Environment: gradle 1.12, jdk 1.7_u45, fedora, org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-gradle-embedded-archive:2.2.0-alpha-1
> Reporter: Peter Butkovic
> Assignee: Michal Matloka
> Labels: gradle
>
> I'd like to propagate project properties to embedded gradle build.
> I tried following:
> {code}
> ShrinkWrap.create(EmbeddedGradleImporter.class)
> .forThisProjectDirectory().forTasks("build").withArguments("-x", "test", "-Psomepropname=somepropvalue")
> .importBuildOutput().as(WebArchive.class)
> {code}
> but the {{somepropname}} is not set in embedded build.
> Using the gradle.properties is not an option for me, as {{somepropname}} value changes from build to build.
> Workaround was to write temp properties file and read it in embedded build with silent failure (as suggested here: http://issues.gradle.org/browse/GRADLE-1419?focusedCommentId=16245&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16245) but that sounds too much work to do for such a simple task.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the shrinkwrap-issues
mailing list