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?
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Exclude-files-or-directories-from-war-tp3323087p3323087.html
Sent from the gradle-user mailing list archive at Nabble.com.

Reply via email to