Exclude generated AST*.java files from internalization

This commit is contained in:
Andreas Dangel 2020-01-24 16:19:24 +01:00
parent bed7baa35e
commit 5feca7fd93
11 changed files with 33 additions and 11 deletions

View File

@ -96,7 +96,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/cpp/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/cpp/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -143,7 +143,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/java/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/java/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -96,7 +96,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/ecmascript5/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/ecmascript5/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -122,7 +122,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/jsp/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/jsp/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -96,7 +96,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/matlab/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/matlab/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -158,7 +158,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/modelica/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/modelica/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -96,7 +96,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/objectivec/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/objectivec/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -145,7 +145,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/plsql/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/plsql/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -96,7 +96,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/python/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/python/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -122,7 +122,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/vf/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/vf/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>

View File

@ -129,7 +129,9 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
<replaceregexp>
<regexp pattern="class|interface" />
<substitution expression="@Deprecated @net.sourceforge.pmd.annotation.InternalApi \0" />
<fileset dir="${target}/net/sourceforge/pmd/lang/vm/ast"/>
<fileset dir="${target}/net/sourceforge/pmd/lang/vm/ast">
<exclude name="AST*.java" />
</fileset>
</replaceregexp>
<replaceregexp>