Found the following todo from the archives & tried addressing the same here . Inline >* Write a specialized XDoclet task (see >xdoclet.sourceforge.net) that >generated the blockinfo for the blocks. We already >have a semi-prototype of >that (see gen-blockinfo.xml in basedir) but it >regenerates the blockinfo all >the time. It would be nice to have a ant task that did something like > > ><gen-blockinfo srcDir="..." destDir="..."> > <classpath refid="project.class.path"/> > <include name="**/*Block.java"/> ></gen-blockinfo> >
>And it would generate the blockinfos - only if they >needed to be regenerated >(ie the src had changed since last regeneration). > Have given a shot at this . * gen-blockinfo.xml (re-factored build script ) * Phoenix-XDoclet.jar(phoenix xdoclel ant tasks) * xdoclet.zip (src + build script to compile/test) removed the jars from the above to reduce the redundancy since jars are already there with cornerstone . Hope this helps . Maybe I can give the shot with auto-generating the manifest entries in a similar fashion(XDoc').? V i n a y. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
<?xml version="1.0"?>
<!--
==============================================================================
Phoenix build file to generate BlockInfo from Javadoc tags
Authors:
Peter Donald <[EMAIL PROTECTED]>
Legal:
Copyright (c) 2002 The Apache Software Foundation. All Rights Reserved.
==============================================================================
-->
<project default="main" basedir=".">
<property name="src.base" value="src"/>
<property name="src.dir" value="${src.base}/java/"/>
<property name="lib.dir" value="lib"/>
<!-- directory where you place generated code -->
<property name="gen.dir" value="gen"/>
<property name="build.classes" value="build/classes"/>
<path id="project.class.path">
<pathelement path="${build.classes}" />
<pathelement path="${java.class.path}" />
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<!-- Main target -->
<target name="main" depends="xdoclet" />
<!-- runs xdoclet if need be -->
<target name="xdoclet" unless="xdoclet.uptodate">
<taskdef name="phoenix-blocks" classname="org.apache.avalon.phoenix.tools.xdoclet.PhoenixXDoclet" classpathref="project.class.path"/>
<phoenix-blocks destDir="${gen.dir}" sourcePath="${src.dir}" classpathref="project.class.path" >
<fileset dir="${src.dir}">
<include name="org/apache/avalon/cornerstone/blocks/connection/*.java" />
</fileset>
<blockinfo templatePath="src/manifest/blockinfo.j" />
</phoenix-blocks>
</target>
</project>
Phoenix-XDoclet.jar
Description: Phoenix-XDoclet.jar
xdoclet.zip
Description: xdoclet.zip
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
