Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3c5b5f

Browse files
author
Vincent Cantin
committed
Gradle project is ready, it generates the Java files for the Grammar, and it takes the dependencies from the central Maven repository.
1 parent c9d7371 commit e3c5b5f

File tree

11 files changed

+37
-11412
lines changed

11 files changed

+37
-11412
lines changed

‎.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
.gradle/
2+
/build/
13
/CompareTree/CompareTree/nbproject/private/
2-
/CompareTree/CompareTree/build/
4+
/CompareTree/CompareTree/build/

‎build.gradle

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apply plugin: 'java'
2+
3+
repositories {
4+
mavenCentral()
5+
}
6+
7+
configurations {
8+
antlr4
9+
}
10+
11+
dependencies {
12+
compile 'org.antlr:antlr4-runtime:4.1'
13+
antlr4 'org.antlr:antlr4:4.1'
14+
}
15+
16+
sourceSets {
17+
main {
18+
java {
19+
srcDir new File(buildDir, 'generated-sources/antlr4')
20+
}
21+
}
22+
}
23+
24+
task generateGrammarSource << {
25+
javaexec {
26+
classpath configurations.antlr4
27+
main 'org.antlr.v4.Tool'
28+
args '-o', new File(buildDir, 'generated-sources/antlr4/com/lemoulinstudio/sdiff/parser/java'),
29+
'-package', 'com.lemoulinstudio.sdiff.parser.java',
30+
new File(projectDir, 'src/main/antlr4/Java.g4')
31+
}
32+
}
33+
34+
compileJava.dependsOn(generateGrammarSource)

‎lib/antlr-4.1-complete.jar

-1.17 MB
Binary file not shown.
File renamed without changes.

‎src/main/java/Java.tokens

Lines changed: 0 additions & 201 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /