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
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:
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:
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