Revision 15
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=. |
|
4 |
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP).
|
|
5 | 5 |
|
6 |
default: |
|
6 |
default: orasax |
|
7 |
|
|
8 |
orasax: |
|
7 | 9 |
javac -classpath "$(CPATH)" \ |
10 |
DBSAXWriter.java \ |
|
11 |
DBSAXElement.java |
|
12 |
|
|
13 |
sundom: |
|
14 |
javac -classpath "$(CPATH)" \ |
|
8 | 15 |
DBWriter.java \ |
9 | 16 |
DBElement.java |
10 | 17 |
|
11 |
#java -classpath "$(CPATH)" DBWriter DBElement.props file.xml username password |
|
18 |
test: |
|
19 |
java -cp $(CPATH) DBSAXWriter test.xml jones kinkaj0u |
|
12 | 20 |
|
21 |
test1: |
|
22 |
java -cp $(CPATH) DBSAXWriter test.xml jones kinkaj0u \ |
|
23 |
jdbc:oracle:thin:@24.237.22.245:1521:test |
|
24 |
|
|
25 |
test2: |
|
26 |
java -cp $(CPATH) DBSAXWriter test.xml jones kinkaj0u \ |
|
27 |
jdbc:oracle:thin:@localhost:1521:test |
|
28 |
|
|
13 | 29 |
clean: |
14 | 30 |
-rm -f *.class Log |
Also available in: Unified diff
Creating database loading scripts that utilize the oracle SAX parser