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