Is it possible to use a filter in a war task?
I thought this was being added in 0.9 (I have 0.9-rc-3), there is a
reference to this being added in trunk in this thread:
http://gradle.1045684.n5.nabble.com/How-to-do-a-copy-filter-the-gradle-way-td1435633.html#a1435642
I've tried adding a filter but get an error 'Cause: Could not find property
'ReplaceTokens' on task ':appletgenerator:war'.'
I assume I'll have to do this in a copy prior to the war until this is added
to a release.
project(':appletgenerator') {
apply plugin: 'war'
dependencies {
compile project(':gui')
compile ":j2ee", ":log4j" //picked up from repository defined in
'subprojects' section
}
war {
from 'skeleton'
filter(ReplaceTokens, tokens: ['Internal-Release': '2.1',
'Unspecified' : 'Today'])
}
}
--
View this message in context:
http://gradle.1045684.n5.nabble.com/filter-in-war-tp3265460p3265460.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