cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: [jira] Commented: (COCOON-2074) Build ignores custom applications
Date Sat, 29 Dec 2007 21:55:39 GMT
On Dec 29, 2007, at 4:10 PM, solprovider (JIRA) wrote:

>
>    [ https://issues.apache.org/jira/browse/COCOON-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

> #action_12554955 ]
>
> solprovider commented on COCOON-2074:
> -------------------------------------
>
> This version copies the directory with filtering="off", then  
> overwrites the files requiring filtering="on"
>
> FILE: webapp-build.xml
> REPLACE WITH:
> <copy todir="${build.webapp}" filtering="off">
>    <fileset dir="${webapp}"/>

You should add <exclude>s here and remove overwrite=true below. Using  
'overwrite' here indicates bad tone: it doubles amount of work done by  
the build script, and adds work (and increases the time) to the "do- 
nothing" build.

Vadim


>  </copy>
>
>    <copy file="${webapp}/welcome.xml" tofile="${build.webapp}/ 
> welcome.xml" filtering="on" overwrite="true"/>
>    <copy file="${webapp}/not-found.xml" tofile="${build.webapp}/not- 
> found.xml" filtering="on" overwrite="true"/>
>    <copy file="${webapp}/welcome.xslt" tofile="${build.webapp}/ 
> welcome.xslt" filtering="on" overwrite="true"/>
>    <copy file="${webapp}/sitemap.xmap" tofile="${build.webapp}/ 
> sitemap.xmap" overwrite="true"/>
>
> <copy todir="${build.webapp}/stylesheets" filtering="on"  
> overwrite="true">
>      <fileset dir="${webapp}/stylesheets">
>        <include name="**/*.xslt"/>
>      </fileset>
>    </copy>
>
> <copy todir="${build.webapp}/WEB-INF" filtering="on" overwrite="true">
>      <fileset dir="${webapp}/WEB-INF">
>        <include name="entities/**"/>
>        <include name="classes/**"/>
>        <include name="*.x*"/>
>        <include name="properties/**"/>
>      </fileset>
>    </copy>


Mime
View raw message