On Jul 2, 2008, at 7:44 PM, JerodLass wrote:


I have also been trying to adjust the WAR files I create. I have a directory called "Web Content" that contains several critical directories including the WEB-INF directory. Thus far, I have tried using the war plugin with:

task(name+'_war').fileSet(dir: new File('Web Content')){
    exclude('WEB-INF/**')
}

task(name+'_war').webInfFileSets = [new FileSet(dir: new File('Web
Content/WEB-INF'))]

and I have also tried not using the plugin, and defining my own lib task
instead:

libs{
    war(){
        fileSet(dir: new File('Web Content')){
                exclude('WEB-INF/**')
            }
webInfFileSets = [new FileSet(dir: new File('Web Content/ WEB-INF'))]
    }
}

Both compile, but neither seems to be setting the properties with any
effect. WEB-INF files don't end up in the WEB-INF directory and Web Content files don't end up anywhere. What am I doing wrong? How can I properly
access the properties of the war task?  Thanks for the help.

I had no time to try why the above doesn't work yet. I will do so soon.

What about using the src/webapp folder?

- Hans


-Jerod
--
View this message in context: http://www.nabble.com/war-woes- tp18243089p18243089.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



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to