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