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)./classes
|
5
|
|
6
|
USER=jones
|
7
|
PW=kinkaj0u
|
8
|
|
9
|
JAVAC=javac -d classes
|
10
|
|
11
|
default: all
|
12
|
|
13
|
all: orasax reader query servlet
|
14
|
|
15
|
orasax: util
|
16
|
$(JAVAC) -classpath "$(CPATH)" \
|
17
|
DBSAXWriter.java \
|
18
|
BasicElement.java \
|
19
|
DBSAXElement.java \
|
20
|
DBSAXHandler.java
|
21
|
|
22
|
sundom:
|
23
|
$(JAVAC) -classpath "$(CPATH)" \
|
24
|
DBWriter.java \
|
25
|
DBElement.java
|
26
|
|
27
|
reader: util
|
28
|
$(JAVAC) -classpath "$(CPATH)" \
|
29
|
DBReader.java \
|
30
|
BasicElement.java \
|
31
|
ReaderElement.java
|
32
|
|
33
|
query: util
|
34
|
$(JAVAC) -classpath "$(CPATH)" \
|
35
|
DBSimpleQuery.java
|
36
|
|
37
|
servlet: query reader
|
38
|
$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
|
39
|
cp -r classes/edu /home/httpd/servlets/
|
40
|
|
41
|
util:
|
42
|
$(JAVAC) -classpath "$(CPATH)" \
|
43
|
MetaCatUtil.java
|
44
|
|
45
|
test:
|
46
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
47
|
test.xml $(USER) $(PW)
|
48
|
|
49
|
test1:
|
50
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
51
|
test.xml $(USER) $(PW) \
|
52
|
jdbc:oracle:thin:@localhost:1521:test
|
53
|
|
54
|
rdtest:
|
55
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
|
56
|
|
57
|
rdtest1:
|
58
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
|
59
|
|
60
|
qtest:
|
61
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
62
|
Value1 $(USER) $(PW)
|
63
|
|
64
|
qtest1:
|
65
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
66
|
lakename $(USER) $(PW)
|
67
|
|
68
|
javadoc:
|
69
|
javadoc -classpath $(CPATH) -d docs \
|
70
|
DBSAXWriter.java \
|
71
|
BasicElement.java \
|
72
|
DBSAXElement.java \
|
73
|
DBSAXHandler.java \
|
74
|
DBReader.java \
|
75
|
ReaderElement.java \
|
76
|
DBSimpleQuery.java \
|
77
|
MetaCatServlet.java \
|
78
|
MetaCatUtil.java
|
79
|
|
80
|
clean:
|
81
|
-rm -rf *.class Log classes/edu
|