Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- updates to gradle build config

- correct pom.xml
- some figures used in article
  • Loading branch information...
commit 6bfa51377a3c3dd9960f5c284d053f82b6690a1b 1 parent 2a441fa
@kellyrob99 authored
View
12 .gitignore
@@ -0,0 +1,12 @@
+target/
+build/
+.gradle/
+gradle/
+gradlew*
+.idea/**
+*.iml
+*.ipr
+*.iws
+grails-jira-plugin*.zip
+plugin.xml
+
View
2  build.gradle
@@ -24,6 +24,8 @@ idea {
}
}
+sourceSets.main.resources.srcDirs = []
+
idea {
project {
ipr {
View
4 pom.xml
@@ -44,12 +44,12 @@
<goal>run</goal>
</goals>
<configuration>
- <tasks>
+ <target>
<ant antfile="${basedir}/src/main/resources/build.xml">
<target name="all"/>
<property name="foo" value="NotBar2"/>
</ant>
- </tasks>
+ </target>
</configuration>
</execution>
</executions>
View
8 src/article/GradleAntImportPropertyTable.csv
@@ -0,0 +1,8 @@
+"Command line invocation","Gradle Build Config","Effect","Result"
+"gradle dist","ant.importBuild('src/main/resources/build.xml')","build.properties value loaded from ant build is used","foo=bar"
+"gradle dist -Dfoo=NotBar","ant.importBuild('src/main/resources/build.xml')","command line property is used","foo=NotBar"
+"gradle dist -Dfoo=NotBar","ant.foo='NotBarFromGradle'
+ant.importBuild('src/main/resources/build.xml')","Gradle build property is used","foo=NotBarFromGradle"
+"gradle dist -Dfoo=NotBar","ant.foo='NotBarFromGradle'
+ant.importBuild('src/main/resources/build.xml')
+ant.foo='NotBarFromGradleAgain'","Gradle build property override is used","foo=NotBarFromGradleAgain"
View
BIN  src/article/GradleAntImportPropertyTable.ods
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.