Quantcast

Skinny Wars

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Skinny Wars

dburns

Hello,

We are considering making Grails our framework of choice for developing web
applications.  But, due to the size of the war files, our administrator(s)
are not happy deploying to our environments.

We've researched and tested the 'skinny war' methods but it appears to be
an 'all or none' situation.   Is there a relatively easy way to either
include certain jar files in the war or establish a shared location for the
other jar files your project may have that are outside of the 'out of the
box' jars that are included with Grails?    Has anyone had success using a
shared location to place these additional jar files for your Grails
applications?    How effective would it be to not go the --nojars route and
simple utilize the dependency resolution to pick and choose what is to be
included in the war file....even though it could be cumbersome?

We are currently utilizing Grails 1.3.7 in a Websphere 6.1 environment
(soon going to 8.x).

Thanks,
Doug


*********************************************************************************************
This email message and any attachments is for use only by the named addressee(s) and may contain confidential, privileged and/or proprietary information.  If you have received this message in error, please immediately notify the sender and delete and destroy the message and all copies.  All unauthorized direct or indirect use or disclosure of this message is strictly prohibited.  No right to confidentiality or privilege is waived or lost by any error in transmission.
*********************************************************************************************

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Skinny Wars

potter_ru

Maybe you can use such method.

You can easily exclude from war all jar files existing in /your/shared/directory. Add this snippet to your BuildConfig.groovy:

grails.war.resources = { stagingDir, args ->
    new File('/your/shared/directory').eachFileMatch(~/.*\.jar/) { theFile ->
        delete(file: "${stagingDir}/WEB-INF/lib/${theFile}")
    }
}

	
	
	
Justify your existence !
Loading...