source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/CoreTasks/whichresource.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 7.0 KB
Line 
1
2<html>
3<head>
4 <meta http-equiv="Content-Language" content="en-us">
5 <title>Whichresource
6 Task</title>
7<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
8</head>
9
10<body bgcolor="#ffffff" text="#000000" link="#525D76"
11 alink="#525D76" vlink="#525D76">
12
13<table border="0" width="100%" cellspacing="4">
14
15 <!-- PAGE HEADER -->
16 <tr>
17 <td>
18 <table border="0" width="100%"><tr>
19 <td valign="bottom">
20 <font size="+3" face="arial,helvetica,sanserif"><strong>Whichresource
21 Task</strong></font>
22 <br><font face="arial,helvetica,sanserif">Find a class or resource on the supplied classpath, or the system classpath if none is supplied.</font>
23 </td>
24 <td>
25 <!-- PROJECT LOGO -->
26 <a href="http://ant.apache.org/">
27 <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/>
28 </a>
29 </td>
30 </tr></table>
31 </td>
32 </tr>
33
34 <!-- START RIGHT SIDE MAIN BODY -->
35 <tr>
36 <td valign="top" align="left">
37
38 <!-- Applying task/long-description -->
39 <!-- Start Description -->
40 <table border="0" cellspacing="0" cellpadding="2" width="100%">
41 <tr><td>&nbsp;</td></tr>
42
43 <tr><td bgcolor="#525D76">
44 <font color="#ffffff" face="arial,helvetica.sanserif">
45 <a name="description">
46 <strong>Description</strong></a></font>
47 </td></tr>
48
49 <tr><td><blockquote>
50 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> &lt;whichresource resource="/log4j.properties" property="log4j.url" &gt; </pre>
51 </blockquote></td></tr>
52
53 </table>
54 <!-- End Description -->
55
56 <!-- Ignore -->
57
58
59
60 <!-- Start Attributes -->
61 <table border="0" cellspacing="0" cellpadding="2" width="100%">
62 <tr><td>&nbsp;</td></tr>
63 <tr><td bgcolor="#525D76">
64 <font color="#ffffff" face="arial,helvetica.sanserif">
65 <a name="attributes">
66 <strong>Parameters</strong></a></font>
67 </td></tr>
68 <tr><td><blockquote>
69 <table>
70 <tr>
71 <td bgcolor="#cccccc" valign="top" align="left">
72 <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
73 </td>
74 <td bgcolor="#cccccc" valign="top" align="left">
75 <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
76 </td>
77 <td bgcolor="#cccccc" valign="top" align="left">
78 <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
79 </td>
80 <td bgcolor="#cccccc" valign="top" align="left">
81 <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
82 </td>
83 </tr>
84 <!-- Attribute Group -->
85 <!-- Attribute -->
86 <tr>
87 <td bgcolor="#eeeeee" valign="top" align="left">
88 <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
89 </td>
90 <td bgcolor="#eeeeee" valign="top" align="left">
91 <font color="#000000" size="-1" face="arial,helvetica,sanserif">the property to fill with the URL of the resource or class</font>
92 </td>
93 <td bgcolor="#eeeeee" valign="top" align="left">
94 <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
95 </td>
96 <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
97 <font color="#000000" size="-1" face="arial,helvetica,sanserif">Required</font>
98 </td>
99 </tr>
100
101 <!-- Attribute Group -->
102 <!-- Attribute -->
103 <tr>
104 <td bgcolor="#eeeeee" valign="top" align="left">
105 <font color="#000000" size="-1" face="arial,helvetica,sanserif">class</font>
106 </td>
107 <td bgcolor="#eeeeee" valign="top" align="left">
108 <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the class to look for</font>
109 </td>
110 <td bgcolor="#eeeeee" valign="top" align="left">
111 <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
112 </td>
113 <td bgcolor="#eeeeee" valign="top" align="left" rowspan="2">
114 <font color="#000000" size="-1" face="arial,helvetica,sanserif">Exactly one of these two</font>
115 </td>
116 </tr>
117 <!-- Attribute -->
118 <tr>
119 <td bgcolor="#eeeeee" valign="top" align="left">
120 <font color="#000000" size="-1" face="arial,helvetica,sanserif">resource</font>
121 </td>
122 <td bgcolor="#eeeeee" valign="top" align="left">
123 <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the resource to look for</font>
124 </td>
125 <td bgcolor="#eeeeee" valign="top" align="left">
126 <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
127 </td>
128 </tr>
129
130 <!-- Attribute Group -->
131 <!-- Attribute -->
132 <tr>
133 <td bgcolor="#eeeeee" valign="top" align="left">
134 <font color="#000000" size="-1" face="arial,helvetica,sanserif">classpath</font>
135 </td>
136 <td bgcolor="#eeeeee" valign="top" align="left">
137 <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the classpath to be used for this compilation.</font>
138 </td>
139 <td bgcolor="#eeeeee" valign="top" align="left">
140 <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
141 </td>
142 <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
143 <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
144 </td>
145 </tr>
146
147
148 </table>
149 </blockquote></td></tr>
150
151 </table>
152 <!-- End Attributes -->
153
154 <!-- Start Elements -->
155 <table border="0" cellspacing="0" cellpadding="2" width="100%">
156 <tr><td>&nbsp;</td></tr>
157
158 <tr><td bgcolor="#525D76">
159 <font color="#ffffff" face="arial,helvetica.sanserif">
160 <a name="elements">
161 <strong>Parameters as nested elements</strong></a></font>
162 </td></tr>
163
164 <tr><td><blockquote>
165 <!-- Start Element -->
166 <table border="0" cellspacing="0" cellpadding="2" width="100%">
167 <tr><td>&nbsp;</td></tr>
168 <tr><td bgcolor="#828DA6">
169 <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
170 <strong>classpath</strong> (org.apache.tools.ant.types.Path)</font>
171 </td></tr>
172 <tr><td><blockquote>
173 Adds a path to the classpath.
174 <!-- Ignore -->
175 <!-- Ignore -->
176
177 </blockquote></td></tr>
178 </table>
179 <!-- End Element -->
180
181 </blockquote></td></tr>
182
183 </table>
184 <!-- End Elements -->
185
186
187 </td>
188 </tr>
189 <!-- END RIGHT SIDE MAIN BODY -->
190
191 <!-- FOOTER SEPARATOR -->
192 <tr>
193 <td>
194 <hr noshade="" size="1"/>
195 </td>
196 </tr>
197
198 <!-- PAGE FOOTER -->
199 <tr>
200 <td>
201 <div align="center"><font color="#525D76" size="-1"><em>
202 Copyright &copy; 2000-2004, The Apache Software Foundation. All Rights Reserved.
203 </em></font></div>
204 </td>
205 </tr>
206
207</table>
208
209</body>
210</html>
Note: See TracBrowser for help on using the repository browser.