Revision 51
Added by Matt Jones over 24 years ago
Makefile | ||
---|---|---|
1 | 1 |
# For Win32, make 'SEP' be a semicolon |
2 | 2 |
SEP=: |
3 | 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). |
|
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
|
|
5 | 5 |
|
6 | 6 |
USER=jones |
7 |
PW=kinkaj0u |
|
7 | 8 |
|
8 |
PW=your-pw-goes-here
|
|
9 |
JAVAC=javac -d classes
|
|
9 | 10 |
|
10 | 11 |
default: all |
11 | 12 |
|
12 | 13 |
all: orasax reader query servlet |
13 | 14 |
|
14 | 15 |
orasax: util |
15 |
javac -classpath "$(CPATH)" \
|
|
16 |
$(JAVAC) -classpath "$(CPATH)" \
|
|
16 | 17 |
DBSAXWriter.java \ |
17 | 18 |
BasicElement.java \ |
18 | 19 |
DBSAXElement.java \ |
19 | 20 |
DBSAXHandler.java |
20 | 21 |
|
21 | 22 |
sundom: |
22 |
javac -classpath "$(CPATH)" \
|
|
23 |
$(JAVAC) -classpath "$(CPATH)" \
|
|
23 | 24 |
DBWriter.java \ |
24 | 25 |
DBElement.java |
25 | 26 |
|
26 | 27 |
reader: util |
27 |
javac -classpath "$(CPATH)" \
|
|
28 |
$(JAVAC) -classpath "$(CPATH)" \
|
|
28 | 29 |
DBReader.java \ |
29 | 30 |
BasicElement.java \ |
30 | 31 |
ReaderElement.java |
31 |
cp DBReader.class \ |
|
32 |
ReaderElement.class \ |
|
33 |
BasicElement.class \ |
|
34 |
/home/httpd/servlets/ |
|
35 | 32 |
|
36 | 33 |
query: util |
37 |
javac -classpath "$(CPATH)" \
|
|
34 |
$(JAVAC) -classpath "$(CPATH)" \
|
|
38 | 35 |
DBSimpleQuery.java |
39 |
cp DBSimpleQuery.class /home/httpd/servlets/ |
|
40 | 36 |
|
41 | 37 |
servlet: query reader |
42 |
javac -classpath "$(CPATH)" MetaCatServlet.java
|
|
43 |
cp MetaCatServlet.class /home/httpd/servlets/
|
|
38 |
$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
|
|
39 |
cp -r classes/edu /home/httpd/servlets/
|
|
44 | 40 |
|
45 | 41 |
util: |
46 |
javac -classpath "$(CPATH)" \
|
|
42 |
$(JAVAC) -classpath "$(CPATH)" \
|
|
47 | 43 |
MetaCatUtil.java |
48 |
cp MetaCatUtil.class /home/httpd/servlets/ |
|
49 | 44 |
|
50 | 45 |
test: |
51 |
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) |
|
46 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \ |
|
47 |
test.xml $(USER) $(PW) |
|
52 | 48 |
|
53 | 49 |
test1: |
54 |
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \ |
|
50 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \ |
|
51 |
test.xml $(USER) $(PW) \ |
|
55 | 52 |
jdbc:oracle:thin:@localhost:1521:test |
56 | 53 |
|
57 | 54 |
rdtest: |
58 |
java -cp $(CPATH) DBReader 1 $(USER) $(PW) |
|
55 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
|
|
59 | 56 |
|
60 | 57 |
rdtest1: |
61 |
java -cp $(CPATH) DBReader 31 $(USER) $(PW) |
|
58 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
|
|
62 | 59 |
|
63 | 60 |
qtest: |
64 |
java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW) |
|
61 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \ |
|
62 |
Value1 $(USER) $(PW) |
|
65 | 63 |
|
66 | 64 |
qtest1: |
67 |
java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW) |
|
65 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \ |
|
66 |
lakename $(USER) $(PW) |
|
68 | 67 |
|
69 | 68 |
javadoc: |
70 | 69 |
javadoc -classpath $(CPATH) -d docs \ |
... | ... | |
75 | 74 |
DBReader.java \ |
76 | 75 |
ReaderElement.java \ |
77 | 76 |
DBSimpleQuery.java \ |
78 |
MetaCatServlet.java |
|
77 |
MetaCatServlet.java \ |
|
78 |
MetaCatUtil.java |
|
79 | 79 |
|
80 | 80 |
clean: |
81 |
-rm -f *.class Log |
|
81 |
-rm -rf *.class Log classes/edu |
Also available in: Unified diff
changed package name to edu.ucsb.nceas.metacat.*