I have written an Ant task for running Fortress (see attachment). If this is of general interest then I can beef up the JavaDocs and commit it. However, the question is then: where should it go? Under fortress source tree?
Excellent. It should go under src/tools along with the MetaInfoCollector. BTW, the all important question is: Can you run JUnit tests against it?
Example of usage:
<target name="run" depends="compile">
<taskdef name="fortress" classname="org.apache.avalon.fortress.ant.FortressRunner">
<classpath refid="classpath"/>
</taskdef>
<fortress
containerClass="org.apache.avalon.fortress.impl.DefaultContainer"
contextDirectory="./"
workDirectory="./"
containerConfiguration="resource://app.xconf"
loggerManagerConfiguration="resource://app.xlog"
roleManagerConfiguration="resource://app.roles"
lookupComponentRole="com.mycompany.ui.swing.Runnable/gui" invokeMethod="run" /> </target>
Rgds, Neeme
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, The Swiss hold the America's Cup, France is accusing the US of arrogance, and Germany doesn't want to go to war. And the 3 most powerful men in America are named 'Bush', 'Dick', and 'Colon' (sic)".
-----Chris Rock
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
