[MAGIC] improvements to reactor task

Stephen McConnell mcconnell at dpml.net
Tue Jul 12 01:47:50 EDT 2005



I've just committed a small but subtle change to the ReactorTask that makes
things generally easier to manage new projects.  This has come about while
setting up a new SVN repository just top handle tutorials and training
content. I wanted to have a very clean structure as the tutorials will
typically be used as templates for other new projects.

The top level tutorial project build.xml contains the following 

  <project name="osm-tutorial" default="install" basedir="." 
      xmlns:transit="antlib:net.dpml.transit"
      xmlns:x="plugin:dpml/magic/dpml-magic-core">

    <transit:import uri="artifact:template:dpml/magic/standard"/>

    <target name="init" depends="standard.init">
      <x:reactor/>
    </target>

    ...

  </project>

This important thing to note in the above is that I'm calling the
<x:reactor/> task within the initialization task of the project.  The
project itself uses the 'standard' template (instead of the reactor
template) and does stuff like the creation of a module for the tutorial
collection and some javadoc generation.  In earlier versions of Magic this
would have resulted in a recursive build sequence as the invocation of the
reactor would have triggered the rebuild of the project containing the
reactor declaration.  I've also made several improvements to the error
handling during index creation so that the information presented back to the
user is more understandable.

Cheers, Steve.




More information about the dev-dpml mailing list