1 |
6
|
jones
|
# For Win32, make 'SEP' be a semicolon
|
2 |
|
|
SEP=:
|
3 |
|
|
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
|
4 |
15
|
jones
|
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP).
|
5 |
26
|
jones
|
|
6 |
21
|
jones
|
USER=jones
|
7 |
6
|
jones
|
|
8 |
29
|
jones
|
PW=you-pw-goes-here
|
9 |
26
|
jones
|
|
10 |
27
|
jones
|
default: all
|
11 |
15
|
jones
|
|
12 |
27
|
jones
|
all: orasax reader query
|
13 |
21
|
jones
|
|
14 |
15
|
jones
|
orasax:
|
15 |
6
|
jones
|
javac -classpath "$(CPATH)" \
|
16 |
15
|
jones
|
DBSAXWriter.java \
|
17 |
21
|
jones
|
BasicElement.java \
|
18 |
17
|
jones
|
DBSAXElement.java \
|
19 |
|
|
DBSAXHandler.java
|
20 |
15
|
jones
|
|
21 |
|
|
sundom:
|
22 |
|
|
javac -classpath "$(CPATH)" \
|
23 |
6
|
jones
|
DBWriter.java \
|
24 |
|
|
DBElement.java
|
25 |
|
|
|
26 |
21
|
jones
|
reader:
|
27 |
|
|
javac -classpath "$(CPATH)" \
|
28 |
|
|
DBReader.java \
|
29 |
23
|
jones
|
BasicElement.java \
|
30 |
|
|
ReaderElement.java
|
31 |
21
|
jones
|
|
32 |
27
|
jones
|
query:
|
33 |
|
|
javac -classpath "$(CPATH)" \
|
34 |
|
|
DBSimpleQuery.java
|
35 |
|
|
|
36 |
15
|
jones
|
test:
|
37 |
21
|
jones
|
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
|
38 |
6
|
jones
|
|
39 |
15
|
jones
|
test1:
|
40 |
21
|
jones
|
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
|
41 |
15
|
jones
|
jdbc:oracle:thin:@localhost:1521:test
|
42 |
|
|
|
43 |
21
|
jones
|
rdtest:
|
44 |
|
|
java -cp $(CPATH) DBReader 1 $(USER) $(PW)
|
45 |
|
|
|
46 |
24
|
jones
|
rdtest1:
|
47 |
25
|
jones
|
java -cp $(CPATH) DBReader 31 $(USER) $(PW)
|
48 |
24
|
jones
|
|
49 |
27
|
jones
|
qtest:
|
50 |
28
|
jones
|
java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW)
|
51 |
27
|
jones
|
|
52 |
28
|
jones
|
qtest1:
|
53 |
|
|
java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW)
|
54 |
|
|
|
55 |
6
|
jones
|
clean:
|
56 |
|
|
-rm -f *.class Log
|