[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-192) embedded gradle shrinkwrap-resolver - propagate project properties via API

Peter Butkovic (JIRA) issues at jboss.org
Thu Jul 31 15:26:29 EDT 2014


    [ https://issues.jboss.org/browse/SHRINKRES-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989665#comment-12989665 ] 

Peter Butkovic commented on SHRINKRES-192:
------------------------------------------

honestly I don't remember any more if I gave it a try. 
still it sounds like worth a try.

> 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
>      Security Level: Public(Everyone can see) 
>         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.2.6#6264)


More information about the shrinkwrap-issues mailing list