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:
war.doFirst {
assert file("datasource/${datasource}.xml").exists()
}
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Copy-file-into-WEB-INF-fail-if-not-exists-tp5709846p5709855.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email