cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Larson <timlarsonw...@yahoo.com>
Subject Re: [Proposal] Simple "production build" directions
Date Fri, 29 Aug 2003 13:51:46 GMT
Lets try to fix the first issue on your list.

The last target in src/targets/webapp-build.xml is "custom-conf".
This is the only place the "customconf" property is used.
Notice that the "customconf" property is applied to the included
filename, not to the "srcdir" attribute:

  <xpatch file="${build.webapp}/WEB-INF/cocoon.xconf" srcdir="" addComments="true">
    <include name="${customconf}/*.xconf" />
  </xpatch>

If I read the xpatch source code correctly, this limits the customconf to
only working with subdirectories.  I think we can fix this by changing the
target to apply the customconf to the srcdir instead of to the included
filename, like this:

  <xpatch file="${build.webapp}/WEB-INF/cocoon.xconf" srcdir="${customconf}" addComments="true">
     <include name="*.xconf" />
  </xpatch>

Here is the whole converted target if you would not mind testing it
with your desired configuration:

  <target name="custom-conf" depends="init-tasks" description="Uses Cocoon's xpatch task
to
customize runtime configuration">
    <xpatch file="${build.webapp}/sitemap.xmap" srcdir="${customconf}">
       <include name="*.xmap" />
       <include name="*.xpipe" />
    </xpatch>
    <xpatch file="${build.webapp}/WEB-INF/cocoon.xconf" srcdir="${customconf}" addComments="true">
       <include name="*.xconf" />
    </xpatch>
    <xpatch file="${build.webapp}/WEB-INF/logkit.xconf" srcdir="${customconf}">
       <include name="*.xlog" />
    </xpatch>
    <xpatch file="${build.webapp}/WEB-INF/web.xml" srcdir="${customconf}">
       <include name="*.xweb" />
    </xpatch>
  </target>

Please let me know how this goes,
--Tim Larson

--- Tomasz Nowak <tnowak-l@netventure.pl> wrote:
...
> 1. customconf property doesn't work properly at my linuxbox :(
>    I have some .xweb, .xconf and .xmap files in 'myconf'
>    directory but they are not seen by buildtools when
>    'myconf' is outside cocoon source directory.
> 
>    customconf=../myconf <- doesn't work.
>    after moving it into cocoonsrc dir ($ mv ../myconf .)
>    and changing customconf in local.build.properties to:
>    customconf=myconf
>    everything works fine.
> 
>    Of course file permis and modes are ok. Is this a bug?
...


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Mime
View raw message