From f33070ab7ec5ef950ef62b2a5cc186279f908a5b Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Thu, 12 Jan 2012 21:33:54 -0800 Subject: [PATCH] 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 --- .project | 20 +++++++++---------- .../socialgamer/cah/UpdateJsConstants.java | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.project b/.project index fa06ee8..760cde0 100644 --- a/.project +++ b/.project @@ -19,6 +19,16 @@ + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + org.eclipse.jdt.core.javabuilder + + + org.eclipse.ui.externaltools.ExternalToolBuilder auto,full,incremental, @@ -33,16 +43,6 @@ - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - org.eclipse.wst.common.project.facet.core.builder diff --git a/src/net/socialgamer/cah/UpdateJsConstants.java b/src/net/socialgamer/cah/UpdateJsConstants.java index 2c4a7dc..6f76e0e 100644 --- a/src/net/socialgamer/cah/UpdateJsConstants.java +++ b/src/net/socialgamer/cah/UpdateJsConstants.java @@ -32,6 +32,9 @@ public class UpdateJsConstants { final Class[] classes = Constants.class.getClasses(); for (final Class c : classes) { + if (!c.isEnum()) { + continue; + } final String cName = c.getName().split("\\$")[1]; System.out.println(cName); writer.format(enumHeaderFmt, cName);