1 |
6
|
jones
|
# For Win32, make 'SEP' be a semicolon
|
2 |
|
|
SEP=:
|
3 |
|
|
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
|
4 |
45
|
jones
|
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 |
26
|
jones
|
|
6 |
21
|
jones
|
USER=jones
|
7 |
6
|
jones
|
|
8 |
30
|
jones
|
PW=your-pw-goes-here
|
9 |
26
|
jones
|
|
10 |
27
|
jones
|
default: all
|
11 |
15
|
jones
|
|
12 |
45
|
jones
|
all: orasax reader query servlet
|
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 |
49
|
jones
|
cp DBReader.class \
|
32 |
|
|
ReaderElement.class \
|
33 |
|
|
BasicElement.class \
|
34 |
|
|
/home/httpd/servlets/
|
35 |
21
|
jones
|
|
36 |
27
|
jones
|
query:
|
37 |
|
|
javac -classpath "$(CPATH)" \
|
38 |
|
|
DBSimpleQuery.java
|
39 |
49
|
jones
|
cp DBSimpleQuery.class /home/httpd/servlets/
|
40 |
27
|
jones
|
|
41 |
49
|
jones
|
servlet: query reader
|
42 |
|
|
javac -classpath "$(CPATH)" MetaCatServlet.java
|
43 |
|
|
cp MetaCatServlet.class /home/httpd/servlets/
|
44 |
45
|
jones
|
|
45 |
15
|
jones
|
test:
|
46 |
21
|
jones
|
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
|
47 |
6
|
jones
|
|
48 |
15
|
jones
|
test1:
|
49 |
21
|
jones
|
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
|
50 |
15
|
jones
|
jdbc:oracle:thin:@localhost:1521:test
|
51 |
|
|
|
52 |
21
|
jones
|
rdtest:
|
53 |
|
|
java -cp $(CPATH) DBReader 1 $(USER) $(PW)
|
54 |
|
|
|
55 |
24
|
jones
|
rdtest1:
|
56 |
25
|
jones
|
java -cp $(CPATH) DBReader 31 $(USER) $(PW)
|
57 |
24
|
jones
|
|
58 |
27
|
jones
|
qtest:
|
59 |
28
|
jones
|
java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW)
|
60 |
27
|
jones
|
|
61 |
28
|
jones
|
qtest1:
|
62 |
|
|
java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW)
|
63 |
|
|
|
64 |
31
|
jones
|
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 |
46
|
jones
|
DBSimpleQuery.java \
|
73 |
|
|
MetaCatServlet.java
|
74 |
31
|
jones
|
|
75 |
6
|
jones
|
clean:
|
76 |
|
|
-rm -f *.class Log
|