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