forked from phoedos/pmd
Rename lang-terse-name to lang-id
This commit is contained in:
parent
7813f544e3
commit
f49f25f0e1
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<!-- Input properties:
|
<!-- Input properties:
|
||||||
- lang-name: matches the grammar name (eg "Swift")
|
- lang-name: matches the grammar name (eg "Swift")
|
||||||
- lang-terse-name: uncapitalized package name (eg "swift")
|
- lang-id: the language id, used in the conventional package name (eg "swift")
|
||||||
- node-prefix: prefix for generated AST nodes (eg "Sw")
|
- node-prefix: prefix for generated AST nodes (eg "Sw")
|
||||||
- root-node-name: name of the root node without prefix (eg "TopLevel"), will be made to implement RootNode
|
- root-node-name: name of the root node without prefix (eg "TopLevel"), will be made to implement RootNode
|
||||||
|
|
||||||
@ -14,10 +14,10 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<property name="target-package-dir" value="${antlr4.outputDirectory}/net/sourceforge/pmd/lang/${lang-terse-name}/ast"/>
|
<property name="target-package-dir" value="${antlr4.outputDirectory}/net/sourceforge/pmd/lang/${lang-id}/ast"/>
|
||||||
|
|
||||||
|
|
||||||
<property name="lang-ast-package" value="net.sourceforge.pmd.lang.${lang-terse-name}.ast" />
|
<property name="lang-ast-package" value="net.sourceforge.pmd.lang.${lang-id}.ast" />
|
||||||
<property name="ast-api-package" value="net.sourceforge.pmd.lang.ast" />
|
<property name="ast-api-package" value="net.sourceforge.pmd.lang.ast" />
|
||||||
<property name="ast-impl-package" value="${ast-api-package}.impl.antlr4" />
|
<property name="ast-impl-package" value="${ast-api-package}.impl.antlr4" />
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
whose name is an acronym, eg PLSQL (in camelcase, "Plsql").
|
whose name is an acronym, eg PLSQL (in camelcase, "Plsql").
|
||||||
Defaults to lang-name.
|
Defaults to lang-name.
|
||||||
|
|
||||||
- lang-terse-name: Terse name, used in the conventional package names
|
- lang-id: The language id, used in the conventional package names
|
||||||
|
|
||||||
It also uses the following maven properties:
|
It also uses the following maven properties:
|
||||||
|
|
||||||
@ -34,12 +34,12 @@
|
|||||||
</not>
|
</not>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<property name="target-package-dir" value="${javacc.outputDirectory}/net/sourceforge/pmd/lang/${lang-terse-name}/ast" />
|
<property name="target-package-dir" value="${javacc.outputDirectory}/net/sourceforge/pmd/lang/${lang-id}/ast" />
|
||||||
<property name="stamp-file" value="${project.build.directory}/last-generated-timestamp" />
|
<property name="stamp-file" value="${project.build.directory}/last-generated-timestamp" />
|
||||||
|
|
||||||
<property name="javacc-home.path" value="${project.build.directory}/lib/javacc" />
|
<property name="javacc-home.path" value="${project.build.directory}/lib/javacc" />
|
||||||
|
|
||||||
<property name="lang-ast-package" value="net.sourceforge.pmd.lang.${lang-terse-name}.ast" />
|
<property name="lang-ast-package" value="net.sourceforge.pmd.lang.${lang-id}.ast" />
|
||||||
<property name="ast-api-package" value="net.sourceforge.pmd.lang.ast" />
|
<property name="ast-api-package" value="net.sourceforge.pmd.lang.ast" />
|
||||||
<property name="ast-impl-package" value="${ast-api-package}.impl.javacc" />
|
<property name="ast-impl-package" value="${ast-api-package}.impl.javacc" />
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
||||||
<property name="lang-name" value="Cpp" />
|
<property name="lang-name" value="Cpp" />
|
||||||
<property name="lang-terse-name" value="cpp" />
|
<property name="lang-id" value="cpp" />
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||||
<property name="lang-name" value="CSharp" />
|
<property name="lang-name" value="CSharp" />
|
||||||
<property name="lang-terse-name" value="cs" />
|
<property name="lang-id" value="cs" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||||
<property name="lang-name" value="Dart" />
|
<property name="lang-name" value="Dart" />
|
||||||
<property name="lang-terse-name" value="dart" />
|
<property name="lang-id" value="dart" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||||
<property name="lang-name" value="Golang" />
|
<property name="lang-name" value="Golang" />
|
||||||
<property name="lang-terse-name" value="go" />
|
<property name="lang-id" value="go" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="Java" />
|
<property name="lang-name" value="Java" />
|
||||||
<property name="lang-terse-name" value="java" />
|
<property name="lang-id" value="java" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
||||||
<property name="lang-name" value="Ecmascript5" />
|
<property name="lang-name" value="Ecmascript5" />
|
||||||
<property name="lang-terse-name" value="ecmascript5" />
|
<property name="lang-id" value="ecmascript5" />
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="Jsp" />
|
<property name="lang-name" value="Jsp" />
|
||||||
<property name="lang-terse-name" value="jsp" />
|
<property name="lang-id" value="jsp" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="pmd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="pmd-language">
|
||||||
<property name="lang-name" value="Kotlin" />
|
<property name="lang-name" value="Kotlin" />
|
||||||
<property name="lang-terse-name" value="kotlin" />
|
<property name="lang-id" value="kotlin" />
|
||||||
<property name="root-node-name" value="KotlinFile" />
|
<property name="root-node-name" value="KotlinFile" />
|
||||||
<property name="node-prefix" value="Kt" />
|
<property name="node-prefix" value="Kt" />
|
||||||
</ant>
|
</ant>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="cpd-language">
|
||||||
<property name="lang-name" value="Lua" />
|
<property name="lang-name" value="Lua" />
|
||||||
<property name="lang-terse-name" value="lua" />
|
<property name="lang-id" value="lua" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
||||||
<property name="lang-name" value="Matlab" />
|
<property name="lang-name" value="Matlab" />
|
||||||
<property name="lang-terse-name" value="matlab" />
|
<property name="lang-id" value="matlab" />
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="Modelica" />
|
<property name="lang-name" value="Modelica" />
|
||||||
<property name="lang-terse-name" value="modelica" />
|
<property name="lang-id" value="modelica" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
||||||
<property name="lang-name" value="ObjectiveC" />
|
<property name="lang-name" value="ObjectiveC" />
|
||||||
<property name="lang-terse-name" value="objectivec" />
|
<property name="lang-id" value="objectivec" />
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="PLSQL" />
|
<property name="lang-name" value="PLSQL" />
|
||||||
<property name="lang-name-camelcase" value="Plsql" />
|
<property name="lang-name-camelcase" value="Plsql" />
|
||||||
<property name="lang-terse-name" value="plsql" />
|
<property name="lang-id" value="plsql" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
<property name="no-jjtree" value="true" /> <!-- This is a CPD module -->
|
||||||
<property name="lang-name" value="Python" />
|
<property name="lang-name" value="Python" />
|
||||||
<property name="lang-terse-name" value="python" />
|
<property name="lang-id" value="python" />
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<target>
|
<target>
|
||||||
<ant antfile="${antlr4.ant.wrapper}" target="pmd-language">
|
<ant antfile="${antlr4.ant.wrapper}" target="pmd-language">
|
||||||
<property name="lang-name" value="Swift" />
|
<property name="lang-name" value="Swift" />
|
||||||
<property name="lang-terse-name" value="swift" />
|
<property name="lang-id" value="swift" />
|
||||||
<property name="root-node-name" value="TopLevel" />
|
<property name="root-node-name" value="TopLevel" />
|
||||||
<property name="node-prefix" value="Sw" />
|
<property name="node-prefix" value="Sw" />
|
||||||
</ant>
|
</ant>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="Vtl" />
|
<property name="lang-name" value="Vtl" />
|
||||||
<property name="lang-terse-name" value="velocity" />
|
<property name="lang-id" value="velocity" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
<ant antfile="${javacc.ant.wrapper}" target="alljavacc">
|
||||||
<property name="javacc.jar" value="${javacc.jar}" />
|
<property name="javacc.jar" value="${javacc.jar}" />
|
||||||
<property name="lang-name" value="Vf" />
|
<property name="lang-name" value="Vf" />
|
||||||
<property name="lang-terse-name" value="visualforce" />
|
<property name="lang-id" value="visualforce" />
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user