1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 |
|
---|
18 | <html>
|
---|
19 | <head>
|
---|
20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
21 | <title>Whichresource
|
---|
22 | Task</title>
|
---|
23 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
24 | </head>
|
---|
25 |
|
---|
26 | <body>
|
---|
27 |
|
---|
28 | <!-- PAGE HEADER -->
|
---|
29 |
|
---|
30 | <h2><a name="whichresource">Whichresource Task</a></h2>
|
---|
31 |
|
---|
32 | <!-- START RIGHT SIDE MAIN BODY -->
|
---|
33 |
|
---|
34 |
|
---|
35 | <h3><a name="description">Description</a></h3>
|
---|
36 | <p>
|
---|
37 | Find a class or resource on the supplied classpath, or the system classpath if none is supplied. The named property is set if the item can be found. For example <pre> <whichresource resource="/log4j.properties" property="log4j.url" > </pre>
|
---|
38 | </p>
|
---|
39 | <!-- End Description -->
|
---|
40 |
|
---|
41 | <!-- Ignore -->
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 | <!-- Start Attributes -->
|
---|
46 |
|
---|
47 | <h3><a name="attributes">Parameters</a></h3>
|
---|
48 |
|
---|
49 |
|
---|
50 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
51 | <tr>
|
---|
52 | <td>
|
---|
53 | <b>Attribute</b>
|
---|
54 | </td>
|
---|
55 | <td>
|
---|
56 | <b>Description</b>
|
---|
57 | </td>
|
---|
58 | <td>
|
---|
59 | <b>Type</b>
|
---|
60 | </td>
|
---|
61 | <td>
|
---|
62 | <b>Requirement</b>
|
---|
63 | </td>
|
---|
64 | </tr>
|
---|
65 | <!-- Attribute Group -->
|
---|
66 | <!-- Attribute -->
|
---|
67 | <tr>
|
---|
68 | <td>
|
---|
69 | property
|
---|
70 | </td>
|
---|
71 | <td>
|
---|
72 | the property to fill with the URL of the resource or class
|
---|
73 | </td>
|
---|
74 | <td>
|
---|
75 | String
|
---|
76 | </td>
|
---|
77 | <td>
|
---|
78 | Required
|
---|
79 | </td>
|
---|
80 | </tr>
|
---|
81 |
|
---|
82 | <!-- Attribute Group -->
|
---|
83 | <!-- Attribute -->
|
---|
84 | <tr>
|
---|
85 | <td>
|
---|
86 | class
|
---|
87 | </td>
|
---|
88 | <td>
|
---|
89 | name the class to look for
|
---|
90 | </td>
|
---|
91 | <td>
|
---|
92 | String
|
---|
93 | </td>
|
---|
94 | <td>
|
---|
95 | Exactly one of these two
|
---|
96 | </td>
|
---|
97 | </tr>
|
---|
98 | <!-- Attribute -->
|
---|
99 | <tr>
|
---|
100 | <td>
|
---|
101 | resource
|
---|
102 | </td>
|
---|
103 | <td>
|
---|
104 | name the resource to look for
|
---|
105 | </td>
|
---|
106 | <td>
|
---|
107 | String
|
---|
108 | </td>
|
---|
109 | </tr>
|
---|
110 |
|
---|
111 | <!-- Attribute Group -->
|
---|
112 | <!-- Attribute -->
|
---|
113 | <tr>
|
---|
114 | <td>
|
---|
115 | classpath
|
---|
116 | </td>
|
---|
117 | <td>
|
---|
118 | Set the classpath to be used for this compilation.
|
---|
119 | </td>
|
---|
120 | <td>
|
---|
121 | Path
|
---|
122 | </td>
|
---|
123 | <td>
|
---|
124 | Optional
|
---|
125 | </td>
|
---|
126 | </tr>
|
---|
127 |
|
---|
128 |
|
---|
129 | </table>
|
---|
130 | </blockquote>
|
---|
131 | <!-- End Attributes -->
|
---|
132 |
|
---|
133 | <!-- Start Elements -->
|
---|
134 |
|
---|
135 |
|
---|
136 | <h3><a name="elements">Parameters as nested elements</a></h3>
|
---|
137 |
|
---|
138 | <!-- Start Element -->
|
---|
139 | <h4>classpath</h4> (org.apache.tools.ant.types.Path)
|
---|
140 | <p>
|
---|
141 | Adds a path to the classpath.
|
---|
142 | </p>
|
---|
143 | <!-- End Element -->
|
---|
144 |
|
---|
145 |
|
---|
146 | </body>
|
---|
147 | </html>
|
---|