[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-dev] @since tag
|
In case anyone needs to do this again, this is what I used:
<?xml version="1.0" encoding="UTF-8"?>
<project name="since" default="all">
<target name="all">
<replaceregexp flags="s" match="(\s+)(\*/\s+public class)">
<substitution _expression_="\1* @since 1.0\1\2"/>
<fileset dir="..">
<include name="org.eclipse.mylyn.wikitext*/src/**/*.java"/>
<exclude name="org.eclipse.mylyn.wikitext.tests/**/*"/>
<exclude name="**/internal/**/*"/>
</fileset>
</replaceregexp>
</target>
</project>
On Thu, Jan 8, 2009 at 3:29 PM, Steffen Pingel
<steffen.pingel@xxxxxxxxxxx> wrote:
I have used ant in the past to add annotations to generated code. You can find an example in o.e.m.jira.core/build-helper.xml:
<replace dir="src/org/eclipse/mylyn/internal/jira/core/wsdl">
<include name="**/*.java"/>
<replacetoken><![CDATA[
public ]]></replacetoken>
<replacevalue><![CDATA[
@SuppressWarnings("all")
public ]]></replacevalue>
</replace>
For adding the @since tags it might be possible to match on the @author tag, if it is present in the class comment of all source files.
Steffen
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev