blob: 993aa82fd3ea319ffdbc332951b042d86aaa2d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
--- src/javacc-6.1.2/build.xml 2014-05-04 23:04:10.000000000 -0600
+++ build.xml 2015-06-14 20:30:21.775223860 -0600
@@ -59,61 +59,7 @@
</target>
- <target name="compile" depends="clean, clean_generated_sources">
-
- <!-- Create the folders we need in the generated sources folder -->
-
- <mkdir dir="${generated-sources-src}"/>
- <mkdir dir="${generated-sources-src}/org/javacc/parser"/>
- <mkdir dir="${generated-sources-src}/org/javacc/utils"/>
- <mkdir dir="${generated-sources-src}/org/javacc/jjtree"/>
-
- <!-- Generate the Java CC Main Parser -->
-
- <java classname="${javacc-bootstrap-class}" classpath="${bootstrap-jar}" dir="${basedir}/src/main/javacc" fork="true">
- <arg value="JavaCC.jj"/>
- </java>
-
- <!-- This class is overrriden -->
- <delete file="${generated-sources-src}/org/javacc/parser/Token.java" />
-
- <!-- Generate the JJTree Parser Definition (from the tree definition) -->
-
- <java classname="${jjtree-bootstrap-class}" classpath="${bootstrap-jar}" dir="${basedir}/src/main/jjtree" fork="true">
- <arg value="JJTree.jjt"/>
- </java>
-
- <!-- Generate the JJTree Parser -->
-
- <java classname="${javacc-bootstrap-class}" classpath="${bootstrap-jar}" dir="${generated-sources-src}/org/javacc/jjtree" fork="true">
- <arg value="JJTree.jj"/>
- </java>
-
- <!-- Delete the .jj file created by the jjtree program and the classes that were override and already added into the main source path -->
-
- <delete file="${generated-sources-src}/org/javacc/jjtree/JJTree.jj" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTBNF.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTBNFAction.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTBNFDeclaration.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTBNFNodeScope.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTCompilationUnit.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTExpansionNodeScope.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTGrammar.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTJavacode.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTJavacodeBody.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTNodeDescriptor.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTNodeDescriptorExpression.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTOptionBinding.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/ASTOptions.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/JJTreeParserVisitor.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/JJTreeParserDefaultVisitor.java" />
- <delete file="${generated-sources-src}/org/javacc/jjtree/Token.java" />
-
- <!-- Generate the Condition Parser -->
-
- <java classname="${javacc-bootstrap-class}" classpath="${bootstrap-jar}" dir="${basedir}/src/main/javacc" fork="true">
- <arg value="ConditionParser.jj"/>
- </java>
+ <target name="compile" depends="clean">
<mkdir dir="classes"/>
|