avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <leosim...@apache.org>
Subject Re: [proposal] AMTAGS (avalon meta tags)
Date Wed, 09 Apr 2003 10:33:06 GMT
in case you're wondering how difficult it is to convert from current 
phoenix tags to AMTAGS, here's an ant script that updates all files (I 
think, haven't tested it):

<project
	name="convert phoenix tags from 4.0 to AMTAGS"
	default="phoenix-to-amtags">

<target
	name="phoenix-to-amtags"
	depends="set-src-dir"
	description="convert sources to AMTAGS format">

<echo>
===================================================================
This target will replace all occurences of the old-style phoenix
doclet tags in your sourcefiles (at ${src.dir})
with the new-style AMTAGS-compatible tag format.
===================================================================

</echo>

<!-- make sure this is desired -->
<input
     message="Are you sure you wish to continue?"
     validargs="y,n"
     addproperty="do.replace"/>
<condition property="do.abort">
     <equals arg1="n" arg2="${do.replace}"/>
</condition>
<fail if="do.abort">Build aborted by user.</fail>

<!-- do the replacements -->
<replace
	match="@phoenix:service"
	replace="@avalon.service"
	flags="g"
	byline="true">
     <fileset dir="${src.dir}" includes="**/*.java"/>
</replace>
<replace
	match="@phoenix:dependency"
	replace="@avalon.dependency"
	flags="g"
	byline="true">
     <fileset dir="${src.dir}" includes="**/*.java"/>
</replace>
<replace
	match="@phoenix:"
	replace="@phoenix."
	flags="g"
	byline="true">
     <fileset dir="${src.dir}" includes="**/*.java"/>
</replace>

</target>

<target name="set-src-dir" unless="src.dir">

<input
     message="Please enter the location of you sourcefiles:"
     addproperty="src.dir"/>

</target>

</project>

actually supporting AMTAGS as well as the old tags in phoenix 4.1 is of 
similar difficulty (ie, not). I suspect the same holds for merlin 'n 
fortress. Just to add some perspective.

cheers!

- Leo



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message