cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Yates <ceya...@stanford.edu>
Subject AntBuildGenerator
Date Wed, 21 May 2003 22:42:45 GMT
to paraphrase Daffy Duck:  Its stupendous. . . . , its collossal . . . , 
its . . . , its . . . AntBuildGenerator!

    I haven't tested this extensively but so far so good.  I wrote this 
for cocoon 2.1 to facilitate remote maintenance of our website 
http://lane.stanford.edu/ which is moving into a much more secure 
environment to accomodate recently enacted health information privacy 
laws (HIPPA) here in the US.  We won't have direct log-on access to the 
server to do updates.  When I iron out all the wrinkles, our content 
person will be able to commit content changes to cvs, then run an ant 
build script on the server remotely to checkout, validate and deploy the 
content onto the site.

http://www.stanford.edu/~ceyates/cocoon/AntBuildGenerator.java

xhtml stylesheet:

http://www.stanford.edu/~ceyates/cocoon/ant.xsl

sitemap:

      <map:generator name="ant"
                                 logger="sitemap.generator.ant"
                                 
src="edu.stanford.laneweb.AntBuildGenerator">
            <!-- optional parameters -->
        <parameter name="build-file" value="WEB-INF/build.xml"/>
        <parameter name="default-log-level" value="info"/>
      </map:generator>

      <map:pipeline match="ant">
        <map:generate type="ant"/>
        <map:transform type="xslt" src="ant.xsl"/>
        <map:serialize type="xhtml"/>
      </map:pipeline>

sample urls:

http://host.dot.com/ant?target=checkout&log-level=verbose
http://host.dot.com/ant
http://host.dot.com/ant?log-level=debug
http://hot.dot.com/ant?target=deploy

log levels are error,warn,info,verbose,debug

no target parameter = default target of build file

Charles Yates
Lane Medical Library





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


Mime
View raw message