move the js constant updater build tool down after java compile since it needs the new constant file compiled first
make the js constant updater only run on enums
This commit is contained in:
parent
61fc4ece55
commit
f33070ab7e
20
.project
20
.project
|
@ -19,6 +19,16 @@
|
||||||
</dictionary>
|
</dictionary>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
|
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
|
||||||
<triggers>auto,full,incremental,</triggers>
|
<triggers>auto,full,incremental,</triggers>
|
||||||
|
@ -33,16 +43,6 @@
|
||||||
</dictionary>
|
</dictionary>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
|
|
|
@ -32,6 +32,9 @@ public class UpdateJsConstants {
|
||||||
|
|
||||||
final Class[] classes = Constants.class.getClasses();
|
final Class[] classes = Constants.class.getClasses();
|
||||||
for (final Class c : classes) {
|
for (final Class c : classes) {
|
||||||
|
if (!c.isEnum()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
final String cName = c.getName().split("\\$")[1];
|
final String cName = c.getName().split("\\$")[1];
|
||||||
System.out.println(cName);
|
System.out.println(cName);
|
||||||
writer.format(enumHeaderFmt, cName);
|
writer.format(enumHeaderFmt, cName);
|
||||||
|
|
Loading…
Reference in New Issue