cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Antwort: precompile-only
Date Tue, 28 Sep 2004 10:25:45 GMT
Jonas.Kilian@o2.com wrote:

>Hi,
>
>I have XSP-precompilation working reliable with Cocoon 2.1.3,  this is how 
>my ant target looks like:
>  
>
Yes, it works on 2.1.3. I believe it is broken on 2.1.5 (or should I say 
'I broke it' on 2.1.5 :-(

Regards, Upayavira


><target name="precompile-xsp-files" description="Compiles previously distributed XSP
files">
>
>    <property name="cocoon.context" value="${basedir}/lib/cocoon"/>
>    <path id="cp">
>          <!-- Patch for program generator is FIRST ONE in classpath -->
>          <path location="${common.tools.dir}/lib/CocoonPatch-ProgramGenerator.jar"/>
>      <fileset refid="fileset.dist.libs"/>
>      <fileset refid="fileset.tomcat.common.libs"/>
>      <path location="${dist.dir}/webapp/WEB-INF/classes"/>
>    </path>
>
>    <taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask" classpathref="cp"/>
>
>
><!--
>    All configuration params taken from 
>org.apache.cocoon.bean.helpers.BeanConfigurator
>    Yes, there's no explanation given yet :-(
>
>    private static final String NODE_ROOT = "cocoon";
>    private static final String ATTR_VERBOSE = "verbose";
>
>    private static final String NODE_LOGGING = "logging";
>    private static final String ATTR_LOG_KIT = "log-kit";
>    private static final String ATTR_LOG_LEVEL = "level";
>    private static final String ATTR_LOGGER = "logger";
>
>    private static final String NODE_CONTEXT_DIR = "context-dir";
>    private static final String NODE_DEST_DIR = "dest-dir";
>    private static final String NODE_WORK_DIR = "work-dir";
>    private static final String NODE_CONFIG_FILE = "config-file";
>    private static final String NODE_URI_FILE = "uri-file";
>    private static final String NODE_CHECKSUMS_URI = "checksums-uri";
>
>    private static final String ATTR_CONTEXT_DIR = "context-dir";
>    private static final String ATTR_DEST_DIR = "dest-dir";
>    private static final String ATTR_WORK_DIR = "work-dir";
>    private static final String ATTR_CONFIG_FILE = "config-file";
>    private static final String ATTR_URI_FILE = "uri-file";
>    private static final String ATTR_CHECKSUMS_URI = "checksums-uri";
>    private static final String ATTR_AGENT = "user-agent";
>    private static final String ATTR_ACCEPT = "accept";
>    private static final String ATTR_DEFAULT_FILENAME = 
>"default-filename";
>
>    private static final String NODE_BROKEN_LINKS = "broken-links";
>    private static final String ATTR_BROKEN_LINK_REPORT_TYPE = "type";
>    private static final String ATTR_BROKEN_LINK_REPORT_FILE = "file";
>    private static final String ATTR_BROKEN_LINK_GENERATE = "generate";
>    private static final String ATTR_BROKEN_LINK_EXTENSION = "extension";
>
>    private static final String NODE_AGENT = "user-agent";
>    private static final String NODE_ACCEPT = "accept";
>
>    private static final String ATTR_FOLLOW_LINKS = "follow-links";
>    private static final String ATTR_PRECOMPILE_ONLY = "precompile-only";
>    private static final String ATTR_CONFIRM_EXTENSIONS = 
>"confirm-extensions";
>    private static final String NODE_LOAD_CLASS = "load-class";
>    private static final String NODE_DEFAULT_FILENAME = 
>"default-filename";
>
>    private static final String NODE_INCLUDE = "include";
>    private static final String NODE_EXCLUDE = "exclude";
>    private static final String ATTR_INCLUDE_EXCLUDE_PATTERN = "pattern";
>
>    private static final String NODE_INCLUDE_LINKS = "include-links";
>    private static final String ATTR_LINK_EXTENSION = "extension";
>
>    private static final String NODE_URI = "uri";
>    private static final String ATTR_URI_TYPE = "type";
>    private static final String ATTR_URI_SOURCEPREFIX = "src-prefix";
>    private static final String ATTR_URI_SOURCEURI = "src";
>    private static final String ATTR_URI_DESTURI = "dest";
>
>    private static final String NODE_URIS = "uris";
>    private static final String ATTR_NAME = "name";
>
>    -->
>
>    <echo>
>        XSP precompilation is done from distribution directory to
>        avoid path problems. Make sure you to run 'ant dist' before.
>        This target does not depend on dist to speed up the process.
>    </echo>
>
>                 <cocoon verbose="true"
>                         classpathref="cp"
>                         follow-links="false"
>                         precompile-only="true"
>                         confirm-extensions="false"
>                         md5-compare="false"
>                         context-dir="${dist.dir}/webapp"
>                         config-file="{dist.dir}/webapp/WEB-INF/cocoon.xconf"
>                         work-dir="${dist.dir}/xsp-build"
>                         dest-dir="${dist.dir}/xsp-build"
>                         checksums-uri="${dist.dir}/xsp-build/checksums"
>                         default-filename="index.html"
>                         accept="*/*">
>
>                    <broken-links type="xml"
>                                  file="${dist.dir}/xsp-build/brokenlinks.xml"
>                                  generate="true"
>                                  extension=".error"/>
>                    <logging
>                        log-kit="${basedir}/src/webapp/WEB-INF/logkit-cli.xconf"
>                        logger="cli"
>                        level="DEBUG" />
>
>                    <include pattern="**"/>
>                 </cocoon>
>
>  </target>
>
>Regards,
>Jonas
>
>
>
>
>
>
>
>Nandakumar Mounasamy <kumar_1000@yahoo.com>
>27.09.2004 22:11
>Bitte antworten an users
>
> 
>        An:     users@cocoon.apache.org, Nandakumar Mounasamy <kumar_1000@yahoo.com>
>        Kopie: 
>        Thema:  precompile-only
>
>
>Hello!
> 
>Has anyone got the CLI's precompile-only feature tested to precompile the 
>xsp pages?
>I have a few xsp pages and the CLI tool exits without precompiling them. 
>No error messages too. 
> 
>However, when precompile-only is disabled , error below is returned.
> X [0]                                     /mywebapp/index.xml  BROKEN: 
>Resource not found: 
>500
> 
><cocoon verbose="true"
>        follow-links="true"
>        precompile-only="false"
>        confirm-extensions="true">
>
><broken-links type="xml"
>                 file="brokenlinks.xml"
>                 generate="false"
>                 extension=".error"/>
><uris name="home"
>         follow-links="true"
>         src-prefix="/mywebapp/"
>         dest="build/dest/mywebapp"
>         type="append"
>         >
>      <uri src="index.xml"/>
>   </uris>
></cocoon>
>Any help is appreciated!
> 
>Thanks
>Do you Yahoo!?
>New and Improved Yahoo! Mail - 100MB free storage!
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message