
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
[10449] gant/trunk/build.gradle: Change the way in which gant_installPath is processed to deal with the case when it is not defined.
- Revision
- 10449
- Author
- russel
- Date
- 2009-11-10 05:55:11 -0600 (Tue, 10 Nov 2009)
Log Message
Change the way in which gant_installPath is processed to deal with the case when it is not defined.
Modified Paths
Diff
Modified: gant/trunk/build.gradle (10448 => 10449)
--- gant/trunk/build.gradle 2009-11-10 10:30:02 UTC (rev 10448)
+++ gant/trunk/build.gradle 2009-11-10 11:55:11 UTC (rev 10449)
@@ -166,7 +166,9 @@
dependencies { groovy ( 'org.codehaus.groovy:groovy-all:' + groovyVersion ) }
compileGroovy.doFirst { println ( '\n\tUsing Groovy version ' + groovyVersion + '\n' ) }
test.doFirst { groovyAntTaskTestVersionPropertyFile.write ( 'groovyAntTaskTestVersion = ' + groovyVersion ) }
- def installDirectory = evaluate ( '"' + ( gant_installPath ?: '/usr/share/gant' ) + '"' )
+ def installDirectory = '/usr/share/gant'
+ try { installDirectory = gant_installPath }
+ catch ( MissingPropertyException mpe ) { /* Intentionally left blank. */ }
task install ( dependsOn : 'assemble' , description : "Install Gant (compiled against Groovy ${groovyVersion}) to ${installDirectory}." ) << {
def installBinDirectory = installDirectory + '/bin'
def scriptsDirectory = '../scripts'
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email