Pardon the repost, the formatting of the original message got stripped out
and left it all but unreadable

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-tp3323092p3323092.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


Reply via email to