You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Charles Yates <ce...@stanford.edu> on 2003/05/22 00:42:45 UTC
AntBuildGenerator
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
Re: AntBuildGenerator
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
Le Jeudi, 22 mai 2003, à 00:42 Europe/Zurich, Charles Yates a écrit :
> to paraphrase Daffy Duck: Its stupendous. . . . , its collossal . . .
> , its . . . , its . . . AntBuildGenerator!
It looks so - I have created a patch at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20138 so this can be
included in Cocoon when a committer finds some time.
I should have asked before if you're ok to donate it, though.
If not, please let me know and I'll remove the patch from bugzilla.
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org