[Anthill-pro] Disable static content

Eric Minick etm at urbancode.com
Mon Mar 3 15:48:16 CST 2008


Sure, I would look at Ant to help you with this. Have AnthillPro run an 
Ant script that uses the Replace task.

-- Eric

Mevi wrote:
> Hi,
>  
> In our project we would like to disable file serving. Via RAD one can 
> edit the Web Deployment Descriptor. Under the extensions tab there is 
> a check box for "File serving enabled" . What happens under the covers 
> is that the ibm-web-ext.xmi file is modified. The attribute is for 
> fileServingEnabled is set to false. This is only applicable when 
> running on the servers and not our development environment. Thus we 
> want it to be set when we build. However the catch we do not want this 
> put into clear case. That is the file ibm-web-ext.xmi only gets 
> modified for the artifact and not the source code.
>
> Is this doable? ie Can ANT change the ibm-web-ext.xmi file contents 
> during the build in Anthill Pro?
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <webappext:WebAppExtension xmi:version="2.0" 
> xmlns:xmi="http://www.omg.org/XMI" xmlns:webappext="webappext.xmi" 
> xmi:id="WebAppExtension_1186668401406" reloadInterval="3" 
> reloadingEnabled="true" additionalClassPath="" 
> fileServingEnabled="false" directoryBrowsingEnabled="false" 
> serveServletsByClassnameEnabled="false">
>
> <webApp href="WEB-INF/web.xml#WebApp_ID"/>
>
> </webappext:WebAppExtension>
>
>
>
> -- 
> Mevi
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>   


More information about the Anthill-pro mailing list