Skip to content
Snippets Groups Projects
Commit 11f4f665 authored by Juan Ignacio Ubeira's avatar Juan Ignacio Ubeira
Browse files

Using 'doLast' instead of '<<' operator in templates.

parent 63693b4a
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ jar { ...@@ -67,7 +67,8 @@ jar {
} }
} }
task info << { task info {
doLast {
println "\nProject Info" println "\nProject Info"
println "============\n" println "============\n"
println "Name : ${rootProject}" println "Name : ${rootProject}"
...@@ -89,6 +90,7 @@ task info << { ...@@ -89,6 +90,7 @@ task info << {
println "Files : ${it}" println "Files : ${it}"
} }
} }
}
/* Damon's message generator doesn't catch every message. It expects everything to be nicely under 'msg' /* Damon's message generator doesn't catch every message. It expects everything to be nicely under 'msg'
* and that directory to be under the package root. It also expects every msg it finds should be buildable. * and that directory to be under the package root. It also expects every msg it finds should be buildable.
...@@ -98,9 +100,11 @@ task info << { ...@@ -98,9 +100,11 @@ task info << {
* Until we get this properly fixed (it fails in genjava), then we use the following bugfix to deal with the * Until we get this properly fixed (it fails in genjava), then we use the following bugfix to deal with the
* 'Could not copy MANIFEST.MF...' error that occurs when no sources are to be made for an artifact. * 'Could not copy MANIFEST.MF...' error that occurs when no sources are to be made for an artifact.
*/ */
task bugfixtask << { task bugfixtask {
doLast {
mkdir sourceSets.main.output.classesDir mkdir sourceSets.main.output.classesDir
} }
}
jar.dependsOn(bugfixtask) jar.dependsOn(bugfixtask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment