From e4f10725b1ec44ba9219247cc95de167b2432f49 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 10 Jun 2014 15:09:29 -0400 Subject: add ognl --- rules/ognl/delete.list | 12 ++++++++++++ rules/ognl/generated-sources.mk | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 rules/ognl/delete.list create mode 100644 rules/ognl/generated-sources.mk (limited to 'rules') 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 -- cgit v1.2.3-54-g00ecf