[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-dev] @since tag
|
Chris,
Thanks for the pointer. You'll be happy to hear that we've been using PDE tools to assist with API versioning for a few months now. So far it's worked really well for us. Can the PDE tools add missing @since tags to classes en-masse?
Thanks,
David
On Fri, Jan 9, 2009 at 8:04 AM, Chris Aniszczyk
<zx@xxxxxxxxxxxxxxxxx> wrote:
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>
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
_______________________________________________
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