Project

General

Profile

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 transform
14

    
15
transform:
16
	$(JAVAC) -classpath "$(CPATH)" \
17
		DBTransform.java
18

    
19
xvalid:
20
	$(JAVAC) -classpath "$(CPATH)" \
21
		XMLValidate.java \
22
		GenericXMLValidate.java
23

    
24
orasax: util
25
	$(JAVAC) -classpath "$(CPATH)" \
26
		DBSAXWriter.java \
27
		BasicElement.java \
28
		DBSAXElement.java \
29
		DBSAXHandler.java \
30
		DBEntityResolver.java \
31
		DBDTDHandler.java \
32
		DBSAXDocument.java
33
		
34
sundom:
35
	$(JAVAC) -classpath "$(CPATH)" \
36
		DBWriter.java \
37
		DBElement.java
38
		
39
reader: util
40
	$(JAVAC) -classpath "$(CPATH)" \
41
		DBReader.java \
42
		BasicElement.java \
43
		ReaderElement.java
44

    
45
query: util
46
	$(JAVAC) -classpath "$(CPATH)" \
47
		DBSimpleQuery.java
48

    
49
servlet: query reader orasax xvalid transform
50
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
51
	cp -r classes/edu /home/httpd/servlets/
52
	cp metacat.properties /home/httpd/servlets/edu/ucsb/nceas/metacat/
53

    
54
util: 
55
	$(JAVAC) -classpath "$(CPATH)" \
56
		MetaCatUtil.java
57

    
58
test:
59
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
60
		test.xml $(USER) $(PW)
61

    
62
test1:
63
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
64
		test.xml $(USER) $(PW) \
65
		jdbc:oracle:thin:@localhost:1521:test
66

    
67
rdtest:
68
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW) 
69

    
70
rdtest1:
71
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 11 $(USER) $(PW) 
72

    
73
qtest:
74
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
75
		Value1 $(USER) $(PW) 
76

    
77
qtest1:
78
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
79
		lakename $(USER) $(PW) 
80

    
81
xvtest:
82
	java -cp $(CPATH) XMLValidate \
83
		test.xml
84

    
85
javadoc:
86
	javadoc -classpath $(CPATH) -d docs \
87
		-sourcepath ./classes edu.ucsb.nceas.metacat
88

    
89
clean:
90
	-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class classes/*.class
(15-15/30)