[gradle-user] Re: [HowTo] Maven credentials reuse

2012-06-04 Thread TheKaptain
Your call to 'credentials' is expecting a Closure as an argument, so you should be able to call it like this: maven { credentials (archivaCredentials) url http://archiva.abc.com/archiva/repository/public/; } maven { credentials (archivaCredentials) url

[gradle-user] Re: Copy file into WEB-INF, fail if not exists

2012-06-04 Thread Peter Niederwieser
StormeHawke wrote So since I'm not actually using the Copy() functionality anymore, is there a way to assert that the requested file exists in the war task? A flag I can set? A hack I can implement in a doFirst clause? You can perform some assertions in a doFirst block. Something like:

[gradle-user] Re: Copy file into WEB-INF, fail if not exists

2012-06-04 Thread StormeHawke
Peter Niederwieser wrote You can perform some assertions in a doFirst block. Something like: war.doFirst { assert file(datasource/${datasource}.xml).exists() } Thanks Peter, that works like a charm :) ~Brian -- View this message in context:

[gradle-user] Re: Generating test reports from non-JUnit based tests

2012-06-04 Thread TheKaptain
Not sure if this is encouraged or not, but it works :) task testSite(type: Exec) { commandLine 'casperjs', 'test', 'src/test/casper', --xunit=$testResultsDir/casper-suite.xml doLast{ def reporter = new