Hi, 

I'm using Gradle 0.9-rc-3 and I'm having trouble excluding classes from a
war file.  I'm building a Java Applet and the war needs to have a couple of
classes in WEB-INF/classes but the rest in the root of the War file.

I thought this would be straightforward but I've got 2 problems: 
 
1. The from/into statement attempting to put classes into WEB-INF/classes
doesn't seem to work

2. The from/exclude statement attempting to put classes into the war root
works, but the exclusions aren't being applied (the excluded classes are
always included)

war {
    from 'skeleton'                            
    baseName = 'gui'
                   
    classpath = [] //by default gradle puts compiled classes into
WEB-INF/classes, but we don't want this
      
    //FIXME put FileViewerControllerServlet.class and StreamingContent.class
in WEB-INF/classes
    from (sourceSets.main.runtimeClasspath) {
        into 'WEB-INF/classes'      
        include '**/FileViewerControllerServlet.class, 
**/StreamingContent.class'           
    }             
          
    //FIXME put classes needed by applet in the root of war (excluding
iPlanet, FileViewerControllerServlet.class and StreamingContent.class)
    from (sourceSets.main.runtimeClasspath) {
        exclude '**/FileViewerControllerServlet.class,
**/StreamingContent.class, **/iPlanet/**'
    }                                                                    
}
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/exclude-classes-from-war-tp3278257p3278257.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