summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rw-r--r--rules/ognl/delete.list12
-rw-r--r--rules/ognl/generated-sources.mk9
2 files changed, 21 insertions, 0 deletions
diff --git a/rules/ognl/delete.list b/rules/ognl/delete.list
new file mode 100644
index 0000000..0a20596
--- /dev/null
+++ b/rules/ognl/delete.list
@@ -0,0 +1,12 @@
+lib/build/*.jar
+# Generated sources
+src/java/ognl/JJTOgnlParserState.java
+src/java/ognl/JavaCharStream.java
+src/java/ognl/OgnlParser.java
+src/java/ognl/OgnlParserConstants.java
+src/java/ognl/OgnlParserTokenManager.java
+src/java/ognl/OgnlParserTreeConstants.java
+src/java/ognl/ParseException.java
+src/java/ognl/Token.java
+src/java/ognl/TokenMgrError.java
+src/java/ognl/ognl.jj
diff --git a/rules/ognl/generated-sources.mk b/rules/ognl/generated-sources.mk
new file mode 100644
index 0000000..338247d
--- /dev/null
+++ b/rules/ognl/generated-sources.mk
@@ -0,0 +1,9 @@
+JJTREE = $(JAVA) org.javacc.jjtree.Main
+JAVACC = $(JAVA) org.javacc.parser.Main
+
+target/generated-sources: target/generated-sources/ognl
+target/generated-sources/ognl: src/java/ognl/ognl.jjt
+ $(RM) -r $@
+ $(JJTREE) -BUILD_NODE_FILES=false -OUTPUT_DIRECTORY=$@ $< || { $(RM) -r $@; $(FAIL); }
+ $(JAVACC) -OUTPUT_DIRECTORY=$@ $@/ognl.jj || { $(RM) -r $@; $(FAIL); }
+ $(RM) $@/Node.java