Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] @since tag

On a side note, I highly recommend that the Mylyn team use PDE API Tools to help with @since tag tracking.

http://www.ibm.com/developerworks/opensource/library/os-eclipse-api-tools/index.html

On Thu, Jan 8, 2009 at 11:19 PM, David Green <dgreen99@xxxxxxxxx> wrote:
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


On 1/8/09, David Green <dgreen99@xxxxxxxxx> wrote:
All,

Is anyone aware of an easy way to add a @since tag to all classes in a source folder or package in one go?  This is upcoming for WikiText.

Thanks,

David

_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



Back to the top