Hi Storm,
Am 31.12.10 01:34, schrieb StormeHawke:
> Ok, so I found the solution to this once and had it working, but then I broke
> it while working on something else and for the life of me I can't find the
> page again where I found the solution. I wish I could remember what search
> terms I used the first time...
>
> Anyway, In my webapp dir, I've got WEB-INF/datasource. Inside that
> directory are a few files that, depending on the system property invoked
> from the command line, one of them gets copied to
> WEB-INF/dpu-datasource.xml. The datasource dir needs to be excluded from
> the war. (the copy task works)
>
> war {
> copy {
> from('WebRoot/WEB-INF/datasource/')
> into('WebRoot/WEB-INF/')
> include(datasource + '.xml')
> rename(datasource + '.xml', 'dpu-datasource.xml')
> }
> excludes ['WebRoot/WEB-INF/datasource/*.*']
> baseName = 'dpu2'
> }
>
> The "excludes" section there has absolutely no effect - the datasource dir
> and the sensitive files contained therein are still being included in the
> war. What am I missing here?
I remember more guys here on the list having problems with this
"excludes" section. you can use "exclude" instead like in the snippet below:
exclude 'WEB-INF/datasource/*'
This should do the trick, since the base dir in the war task in your
example is WebRoot I guess.
regards,
René
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email