-
Notifications
You must be signed in to change notification settings - Fork 4
/
BUILD.txt
58 lines (32 loc) · 1.3 KB
/
BUILD.txt
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
How To Build Tnsnames_checker.jar
=================================
These instructions cause the files to be built within the source directory.
Some people frown upon this mode of building, so if you are one of those, then please ignore
this document and start again with BUILD_OUT_OF_SOURCE.txt. (Bye!)
Still here? Read on.
Prerequisites
-------------
* You must have the Java Development Kit installed and on your path. Try running 'javac -version' to check.
* You must have the latest (currently 4.7.1) version of 'antlr-4.x.x-complete.jar' on your CLASSPATH.
How To Build
------------
For Windows:
set antlr4="java org.antlr.v4.Tool"
cd /D <sourcecode location>\Tnsnames_checker
%antlr4% tnsnamesLexer.g4
%antlr4% tnsnamesParser.g4
javac *.java
jar -cvf tnsnames_checker.jar *.class >nul
del *.class
tnsnames_checker.jar is now ready for use.
java -cp ".\tnsnames_checker.jar:%CLASSPATH%" tnsnames_checker tnsnames.ora >logfile.name 2>&1
For Linux:
alias antlr4="java org.antlr.v4.Tool"
cd <sourcecode location>/Tnsnames_checker
antlr4 tnsnamesLexer.g4
antlr4 tnsnamesParser.g4
javac *.java
jar -cvf tnsnames_checker.jar *.class >/dev/null
rm *.class
tnsnames_checker.jar is now ready for use.
java -cp "./tnsnames_checker.jar:${CLASSPATH}" tnsnames_checker tnsnames.ora >logfile.name 2>&1