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 orasax xvalid
|
46
|
$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
|
47
|
cp -r classes/edu /home/httpd/servlets/
|
48
|
cp metacat.properties /home/httpd/servlets/edu/ucsb/nceas/metacat/
|
49
|
|
50
|
util:
|
51
|
$(JAVAC) -classpath "$(CPATH)" \
|
52
|
MetaCatUtil.java
|
53
|
|
54
|
test:
|
55
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
56
|
test.xml $(USER) $(PW)
|
57
|
|
58
|
test1:
|
59
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
|
60
|
test.xml $(USER) $(PW) \
|
61
|
jdbc:oracle:thin:@localhost:1521:test
|
62
|
|
63
|
rdtest:
|
64
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
|
65
|
|
66
|
rdtest1:
|
67
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
|
68
|
|
69
|
qtest:
|
70
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
71
|
Value1 $(USER) $(PW)
|
72
|
|
73
|
qtest1:
|
74
|
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
|
75
|
lakename $(USER) $(PW)
|
76
|
|
77
|
xvtest:
|
78
|
java -cp $(CPATH) XMLValidate \
|
79
|
test.xml
|
80
|
|
81
|
javadoc:
|
82
|
javadoc -classpath $(CPATH) -d docs \
|
83
|
-sourcepath ./classes edu.ucsb.nceas.metacat
|
84
|
|
85
|
clean:
|
86
|
-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class classes/*.class
|