summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-10 15:09:29 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-10 15:09:29 -0400
commite4f10725b1ec44ba9219247cc95de167b2432f49 (patch)
tree687d685fcb9b8b6fca990d99698845c756a60987 /rules
parent7d961f1f1a191378c683dcf04c74b8715563241a (diff)
add ognl
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