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