cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "solprovider (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-2074) Build ignores custom applications
Date Tue, 01 Jan 2008 19:21:43 GMT

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

solprovider closed COCOON-2074.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1.11)
                   2.1.12-dev (Current SVN)

Tested successfully:
1. Create new directory in src/webapp.
2. Add "Hello World" application to new directory.
3. Build and run Cocoon.
4. Browse to http://127.0.0.1:8888/{newdirectory}/  (Final slash is required due to different
issue.)
5. See Hello World.

Thank you Carsten.  The new code is cleaner than the original and my proposals.

Applications not requiring Java compilation can be created in src/webapp; the standard build
will include the applications.

> Build ignores custom applications
> ---------------------------------
>
>                 Key: COCOON-2074
>                 URL: https://issues.apache.org/jira/browse/COCOON-2074
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: - Build System: Ant
>    Affects Versions: 2.1.10
>            Reporter: solprovider
>            Priority: Minor
>             Fix For: 2.1.12-dev (Current SVN)
>
>
> The build process carefully adds each of the standard files in the webapp directory.
New applications are not included in the build process.  The improvement copies the entire
directory.  I did not notice any files needing to be excluded; any such files could be excluded
from the fileset.
> webapp-build.xml
> CURRENT CODE:
>     <copy file="${webapp}/welcome.xml" tofile="${build.webapp}/welcome.xml" filtering="on"/>
>     <copy file="${webapp}/not-found.xml" tofile="${build.webapp}/not-found.xml" filtering="on"/>
>     <copy file="${webapp}/welcome.xslt" tofile="${build.webapp}/welcome.xslt" filtering="on"/>
>     <copy file="${webapp}/sitemap.xmap" tofile="${build.webapp}/sitemap.xmap"/>
>     <!-- generate sitemap entries
>     <sitemap-components sitemap="${build.webapp}/sitemap.xmap" source="${java}"/>
>     -->
>     <copy todir="${build.webapp}/stylesheets" filtering="on">
>       <fileset dir="${webapp}/stylesheets">
>         <include name="**/*.xslt"/>
>       </fileset>
>     </copy>
>     <copy todir="${build.webapp}/resources" filtering="off">
>       <fileset dir="${webapp}/resources"/>
>     </copy>
>     <copy todir="${build.webapp}/WEB-INF" filtering="on">
>       <fileset dir="${webapp}/WEB-INF">
>         <include name="entities/**"/>
>         <include name="classes/**"/>
>         <include name="*.x*"/>
>         <include name="properties/**"/>
>       </fileset>
>     </copy>
> REPLACE WITH:
>  <copy todir="${build.webapp}" filtering="on">
>     <fileset dir="${webapp}"/>
>   </copy>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message