1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="netbeans" name="api.annotations.common">
<description>Builds, tests, and runs the project org.netbeans.annotations.common</description>
<import file="../nbbuild/templates/projectized.xml"/>
<!--
<target name="findbugs-annotations-init" if="api.annotations.common.findbugs">
<echo>Building common annotations for usage with FindBugs...</echo>
<property name="src.dir" location="build/generated"/>
<property name="src.common" location="src"/>
</target>
<target name="build-init" depends="findbugs-annotations-init, projectized.build-init"/>
<target name="compile" depends="findbugs-annotations, projectized-common.compile"/>
<target name="findbugs-annotations" if="api.annotations.common.findbugs" depends="build-init, projectized.findbugs-init">
<copy todir="${src.dir}">
<fileset dir="${src.common}">
<exclude name="org/netbeans/api/annotations/common/CheckForNull.java"/>
<exclude name="org/netbeans/api/annotations/common/NonNull.java"/>
<exclude name="org/netbeans/api/annotations/common/ConditionalNull.java"/>
<exclude name="org/netbeans/api/annotations/common/NullAllowed.java"/>
</fileset>
<filterchain>
<tokenfilter>
<filetokenizer/>
<replacestring from="RetentionPolicy.SOURCE" to="RetentionPolicy.CLASS"/>
</tokenfilter>
</filterchain>
</copy>
<copy file="${src.common}/org/netbeans/api/annotations/common/CheckForNull.java"
tofile="${src.dir}/org/netbeans/api/annotations/common/CheckForNull.java">
<filterchain>
<tokenfilter>
<filetokenizer/>
<replacestring from="@Retention(RetentionPolicy.SOURCE)"
to="@Retention(RetentionPolicy.CLASS) @javax.annotation.Nonnull(when=javax.annotation.meta.When.MAYBE) @javax.annotation.meta.TypeQualifierNickname"/>
</tokenfilter>
</filterchain>
</copy>
<copy file="${src.common}/org/netbeans/api/annotations/common/NullAllowed.java"
tofile="${src.dir}/org/netbeans/api/annotations/common/NullAllowed.java">
<filterchain>
<tokenfilter>
<filetokenizer/>
<replacestring from="@Retention(RetentionPolicy.SOURCE)"
to="@Retention(RetentionPolicy.CLASS) @javax.annotation.Nonnull(when=javax.annotation.meta.When.MAYBE) @javax.annotation.meta.TypeQualifierNickname"/>
</tokenfilter>
</filterchain>
</copy>
<copy file="${src.common}/org/netbeans/api/annotations/common/NonNull.java"
tofile="${src.dir}/org/netbeans/api/annotations/common/NonNull.java">
<filterchain>
<tokenfilter>
<filetokenizer/>
<replacestring from="@Retention(RetentionPolicy.SOURCE)"
to="@Retention(RetentionPolicy.CLASS) @javax.annotation.Nonnull(when=javax.annotation.meta.When.ALWAYS) @javax.annotation.meta.TypeQualifierNickname"/>
</tokenfilter>
</filterchain>
</copy>
<copy file="${src.common}/org/netbeans/api/annotations/common/ConditionalNull.java"
tofile="${src.dir}/org/netbeans/api/annotations/common/ConditionalNull.java">
<filterchain>
<tokenfilter>
<filetokenizer/>
<replacestring from="@Retention(RetentionPolicy.SOURCE)"
to="@Retention(RetentionPolicy.CLASS) @javax.annotation.Nonnull(when=javax.annotation.meta.When.UNKNOWN) @javax.annotation.meta.TypeQualifierNickname"/>
</tokenfilter>
</filterchain>
</copy>
</target>
-->
</project>
|