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:
Andy Janata 2012-01-12 21:33:54 -08:00
parent 61fc4ece55
commit f33070ab7e
2 changed files with 13 additions and 10 deletions

View File

@ -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>

View File

@ -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);