Skip to content

Commit

Permalink
LPS-51081 Add attribute for choosing the working dir in the "gradle-e…
Browse files Browse the repository at this point in the history
…xecute" macrodef
  • Loading branch information
Ithildir authored and brianchandotcom committed Jul 9, 2015
1 parent 5f51575 commit 69d74f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ Please set the environment variable ANT_OPTS to the recommended value of
</macrodef>

<macrodef name="gradle-execute">
<attribute default="${basedir}" name="dir" />
<attribute default="true" name="failonerror" />
<attribute name="task" />
<element implicit="true" name="args" optional="true" />
Expand All @@ -857,7 +858,7 @@ Please set the environment variable ANT_OPTS to the recommended value of
</else>
</if>

<exec executable="${sdk.dir}/tools/gradle/gradlew${gradlew.suffix}" failonerror="@{failonerror}">
<exec dir="@{dir}" executable="${sdk.dir}/tools/gradle/gradlew${gradlew.suffix}" failonerror="@{failonerror}">
<args />
<arg value="@{task}" />
</exec>
Expand Down

0 comments on commit 69d74f7

Please sign in to comment.