On 28/01/10 1:37 AM, Niko Schmuck wrote:
Hi all,
This is probably something really straight forward, but I couldn't
find it on the FAQ or mailing list: what's the easiest way to exclude
a file from being included in the jar artifact. Without making use of
any configuration set, I simply tried:
jar {
fileSet {
exclude('log4j.properties')
}
}
... but without success. Any hints welcome.
It might be better to exclude it from the main resources, if it's
something that shouldn't be used at runtime:
sourceSets.main.resources.exclude 'log4j.properties'
Otherwise, to exclude the file from the JAR, you could do something like:
jar.resourceCollections[0].exclude 'log4j.properties'
In Gradle 0.9, you will be able to do:
jar.exclude 'log4j.properties'
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email