forked from restlet/restlet-framework-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadjava.xml
More file actions
180 lines (172 loc) · 7.07 KB
/
loadjava.xml
File metadata and controls
180 lines (172 loc) · 7.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="loadjava" default="..." basedir=".">
<!-- $Id: loadjava.xml,v 1.4 2006/05/30 11:49:44 mochoa Exp $
- You need to pass these properties: login, file
- login string must be using syntax of -oci8 option of loadjava.
- it means using a valid SQLNet connect string.
- ex:
- <loadjava-with-public-synonym
- login="scott/tiger@sqlnet_connect_string"
- file="../bin/Toolkit8i.jar"/>
-
- <loadjava
- login="scott/tiger@sqlnet_connect_string"
- file="../bin/Toolkit8i.jar"/>
-
- <dropjava
- login="scott/tiger@sqlnet_connect_string"
- file="../bin/Toolkit8i.jar"/>
-
-->
<path id="aurora.classpath">
<pathelement path="${ORACLE_HOME}/jdbc/lib/ojdbc5.jar"/>
<pathelement path="${ORACLE_HOME}/javavm/lib/aurora.zip"/>
</path>
<!--
- This macro loads a java resource to on Oracle JVM server
- using loadjava interface and admin tool.
- Also grant access to everybody and creates public synonym
- To execute this macro, provide these parameters:
- login Full connect string to the database server.
- file File to be upload (file.jar|file.class|file.java).
-->
<macrodef name="loadjava-with-public-synonym" description="Load Java with public synonym to OJVM">
<attribute name="login" default="LOGIN NOT SET"/>
<attribute name="file" default="FILE NOT SET"/>
<attribute name="dir" default="."/>
<attribute name="authid" default="-nodefiner"/>
<attribute name="failonerror" default="true"/>
<!-- load resource -->
<sequential>
<java failonerror="@{failonerror}" classname="oracle.aurora.server.tools.loadjava.LoadJavaMain"
fork="yes"
dir="@{dir}">
<classpath refid="aurora.classpath" />
<arg value="@{authid}"/>
<arg value="-r"/>
<arg value="-v"/>
<arg value="-s"/>
<arg value="-g"/>
<arg value="public"/>
<arg value="-u"/>
<arg value="@{login}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
<!--
- This macro loads a java resource to on Oracle JVM server
- using loadjava interface and admin tool.
-->
<macrodef name="loadjava-with-resolver" description="Load Java with resolver spec into OJVM">
<attribute name="login" default="LOGIN NOT SET"/>
<attribute name="file" default="FILE NOT SET"/>
<attribute name="dir" default="."/>
<attribute name="resolver" default="RESOLVER NOT SET"/>
<attribute name="authid" default="-nodefiner"/>
<attribute name="failonerror" default="true"/>
<!-- load resource -->
<sequential>
<java failonerror="@{failonerror}" classname="oracle.aurora.server.tools.loadjava.LoadJavaMain"
fork="yes"
dir="@{dir}">
<classpath refid="aurora.classpath" />
<arg value="@{authid}"/>
<arg value="-r"/>
<arg value="-v"/>
<arg value="-s"/>
<arg value="-resolver"/>
<arg value="@{resolver}"/>
<arg value="-u"/>
<arg value="@{login}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
<!--
- This macro loads a java resource to on Oracle JVM server
- using loadjava interface and admin tool.
-->
<macrodef name="loadjava-with-resolver-and-grant" description="Load Java with resolver spec and grant into OJVM">
<attribute name="login" default="LOGIN NOT SET"/>
<attribute name="file" default="FILE NOT SET"/>
<attribute name="dir" default="."/>
<attribute name="resolver" default="RESOLVER NOT SET"/>
<attribute name="grant" default="GRANT NOT SET"/>
<attribute name="authid" default="-nodefiner"/>
<attribute name="failonerror" default="true"/>
<!-- load resource -->
<sequential>
<java failonerror="@{failonerror}" classname="oracle.aurora.server.tools.loadjava.LoadJavaMain"
fork="yes"
dir="@{dir}">
<classpath refid="aurora.classpath" />
<arg value="@{authid}"/>
<arg value="-r"/>
<arg value="-v"/>
<arg value="-s"/>
<arg value="-resolver"/>
<arg value="@{resolver}"/>
<arg value="-g"/>
<arg value="@{grant}"/>
<arg value="-u"/>
<arg value="@{login}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
<!--
- This macro loads a java resource to on Oracle JVM server
- using loadjava interface and admin tool.
- To execute this macro, give these parameters:
- login Full connect string to the database server.
- file File to be upload (file.jar|file.class|file.java).
-->
<macrodef name="loadjava" description="Load Java without public synonym to OJVM">
<attribute name="login" default="LOGIN NOT SET"/>
<attribute name="file" default="FILE NOT SET"/>
<attribute name="dir" default="."/>
<attribute name="authid" default="-nodefiner"/>
<attribute name="failonerror" default="true"/>
<!-- load resource -->
<sequential>
<java failonerror="@{failonerror}" classname="oracle.aurora.server.tools.loadjava.LoadJavaMain"
fork="yes"
dir="@{dir}">
<classpath refid="aurora.classpathh" />
<arg value="@{authid}"/>
<arg value="-r"/>
<arg value="-v"/>
<arg value="-u"/>
<arg value="@{login}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
<!--
- This macro removes a java resource from on Oracle JVM server
- using dropjava interface and admin tool.
- To execute this macro, give these parameters:
- login Full connect string to the database server.
- file File to be drop (file.jar|file.class|file.java).
-->
<macrodef name="dropjava" description="Drop Java from OJVM">
<attribute name="login" default="LOGIN NOT SET"/>
<attribute name="file" default="FILE NOT SET"/>
<attribute name="dir" default="."/>
<attribute name="failonerror" default="true"/>
<!-- drop resource -->
<sequential>
<java failonerror="@{failonerror}"
classname="oracle.aurora.server.tools.loadjava.DropJavaMain"
fork="yes"
dir="@{dir}">
<classpath refid="aurora.classpath" />
<arg value="-v"/>
<arg value="-u"/>
<arg value="@{login}"/>
<arg value="@{file}"/>
</java>
</sequential>
</macrodef>
</project>