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
|
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
|
|
27
|
sundom:
|
28
|
$(JAVAC) -classpath "$(CPATH)" \
|
29
|
DBWriter.java \
|
30
|
DBElement.java
|
31
|
|
32
|
reader: util
|
33
|
$(JAVAC) -classpath "$(CPATH)" \
|
34
|
DBReader.java \
|
35
|
BasicElement.java \
|
36
|
ReaderElement.java
|
37
|
|
38
|
query: util
|
39
|
$(JAVAC) -classpath "$(CPATH)" \
|
40
|
DBSimpleQuery.java
|
41
|
|
42
|
servlet: query reader
|
43
|
$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
|
44
|
cp -r classes/edu /home/httpd/servlets/
|
45
|
|
46
|
util:
|
47
|
$(JAVAC) -classpath "$(CPATH)" \
|
48
|
MetaCatUtil.java
|
49
|
|
50
|
test:
|
51
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
52
|
test.xml $(USER) $(PW)
|
53
|
|
54
|
test1:
|
55
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
56
|
test.xml $(USER) $(PW) \
|
57
|
jdbc:oracle:thin:@localhost:1521:test
|
58
|
|
59
|
rdtest:
|
60
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
|
61
|
|
62
|
rdtest1:
|
63
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
|
64
|
|
65
|
qtest:
|
66
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
67
|
Value1 $(USER) $(PW)
|
68
|
|
69
|
qtest1:
|
70
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
71
|
lakename $(USER) $(PW)
|
72
|
|
73
|
xvtest:
|
74
|
java -cp $(CPATH) XMLValidate \
|
75
|
test.xml
|
76
|
|
77
|
javadoc:
|
78
|
javadoc -classpath $(CPATH) -d docs \
|
79
|
-sourcepath ./classes edu.ucsb.nceas.metacat
|
80
|
|
81
|
clean:
|
82
|
-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class
|