1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:23 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | Os (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.condition.Os class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="Os (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Or.html" title="class in org.apache.tools.ant.taskdefs.condition"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Socket.html" title="class in org.apache.tools.ant.taskdefs.condition"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="Os.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs.condition</FONT>
|
---|
85 | <BR>
|
---|
86 | Class Os</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.condition.Os</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>Os</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | Condition that tests the OS type.
|
---|
100 | <P>
|
---|
101 |
|
---|
102 | <P>
|
---|
103 | <DL>
|
---|
104 | <DT><B>Since:</B></DT>
|
---|
105 | <DD>Ant 1.4</DD>
|
---|
106 | </DL>
|
---|
107 | <HR>
|
---|
108 |
|
---|
109 | <P>
|
---|
110 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
111 |
|
---|
112 |
|
---|
113 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
114 |
|
---|
115 |
|
---|
116 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
117 |
|
---|
118 | <A NAME="constructor_summary"><!-- --></A>
|
---|
119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
121 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
122 | <B>Constructor Summary</B></FONT></TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#Os()">Os</A></B>()</CODE>
|
---|
126 |
|
---|
127 | <BR>
|
---|
128 | Default constructor</TD>
|
---|
129 | </TR>
|
---|
130 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
131 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#Os(java.lang.String)">Os</A></B>(java.lang.String family)</CODE>
|
---|
132 |
|
---|
133 | <BR>
|
---|
134 | Constructor that sets the family attribute</TD>
|
---|
135 | </TR>
|
---|
136 | </TABLE>
|
---|
137 |
|
---|
138 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
139 |
|
---|
140 | <A NAME="method_summary"><!-- --></A>
|
---|
141 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
142 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
143 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
144 | <B>Method Summary</B></FONT></TD>
|
---|
145 | </TR>
|
---|
146 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
148 | <CODE> boolean</CODE></FONT></TD>
|
---|
149 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#eval()">eval</A></B>()</CODE>
|
---|
150 |
|
---|
151 | <BR>
|
---|
152 | Determines if the OS on which Ant is executing matches the type of
|
---|
153 | that set in setFamily.</TD>
|
---|
154 | </TR>
|
---|
155 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
156 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
157 | <CODE>static boolean</CODE></FONT></TD>
|
---|
158 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#isArch(java.lang.String)">isArch</A></B>(java.lang.String arch)</CODE>
|
---|
159 |
|
---|
160 | <BR>
|
---|
161 | Determines if the OS on which Ant is executing matches the
|
---|
162 | given OS architecture.</TD>
|
---|
163 | </TR>
|
---|
164 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
166 | <CODE>static boolean</CODE></FONT></TD>
|
---|
167 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#isFamily(java.lang.String)">isFamily</A></B>(java.lang.String family)</CODE>
|
---|
168 |
|
---|
169 | <BR>
|
---|
170 | Determines if the OS on which Ant is executing matches the
|
---|
171 | given OS family.</TD>
|
---|
172 | </TR>
|
---|
173 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
174 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
175 | <CODE>static boolean</CODE></FONT></TD>
|
---|
176 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#isName(java.lang.String)">isName</A></B>(java.lang.String name)</CODE>
|
---|
177 |
|
---|
178 | <BR>
|
---|
179 | Determines if the OS on which Ant is executing matches the
|
---|
180 | given OS name.</TD>
|
---|
181 | </TR>
|
---|
182 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
183 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
184 | <CODE>static boolean</CODE></FONT></TD>
|
---|
185 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#isOs(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">isOs</A></B>(java.lang.String family,
|
---|
186 | java.lang.String name,
|
---|
187 | java.lang.String arch,
|
---|
188 | java.lang.String version)</CODE>
|
---|
189 |
|
---|
190 | <BR>
|
---|
191 | Determines if the OS on which Ant is executing matches the
|
---|
192 | given OS family, name, architecture and version</TD>
|
---|
193 | </TR>
|
---|
194 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
196 | <CODE>static boolean</CODE></FONT></TD>
|
---|
197 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#isVersion(java.lang.String)">isVersion</A></B>(java.lang.String version)</CODE>
|
---|
198 |
|
---|
199 | <BR>
|
---|
200 | Determines if the OS on which Ant is executing matches the
|
---|
201 | given OS version.</TD>
|
---|
202 | </TR>
|
---|
203 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
205 | <CODE> void</CODE></FONT></TD>
|
---|
206 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#setArch(java.lang.String)">setArch</A></B>(java.lang.String arch)</CODE>
|
---|
207 |
|
---|
208 | <BR>
|
---|
209 | Sets the desired OS architecture</TD>
|
---|
210 | </TR>
|
---|
211 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
213 | <CODE> void</CODE></FONT></TD>
|
---|
214 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#setFamily(java.lang.String)">setFamily</A></B>(java.lang.String f)</CODE>
|
---|
215 |
|
---|
216 | <BR>
|
---|
217 | Sets the desired OS family type</TD>
|
---|
218 | </TR>
|
---|
219 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
220 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
221 | <CODE> void</CODE></FONT></TD>
|
---|
222 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#setName(java.lang.String)">setName</A></B>(java.lang.String name)</CODE>
|
---|
223 |
|
---|
224 | <BR>
|
---|
225 | Sets the desired OS name</TD>
|
---|
226 | </TR>
|
---|
227 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
229 | <CODE> void</CODE></FONT></TD>
|
---|
230 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#setVersion(java.lang.String)">setVersion</A></B>(java.lang.String version)</CODE>
|
---|
231 |
|
---|
232 | <BR>
|
---|
233 | Sets the desired OS version</TD>
|
---|
234 | </TR>
|
---|
235 | </TABLE>
|
---|
236 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
237 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
238 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
239 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
240 | </TR>
|
---|
241 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
242 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
243 | </TR>
|
---|
244 | </TABLE>
|
---|
245 |
|
---|
246 | <P>
|
---|
247 |
|
---|
248 | <!-- ============ FIELD DETAIL =========== -->
|
---|
249 |
|
---|
250 |
|
---|
251 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
252 |
|
---|
253 | <A NAME="constructor_detail"><!-- --></A>
|
---|
254 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
255 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
256 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
257 | <B>Constructor Detail</B></FONT></TD>
|
---|
258 | </TR>
|
---|
259 | </TABLE>
|
---|
260 |
|
---|
261 | <A NAME="Os()"><!-- --></A><H3>
|
---|
262 | Os</H3>
|
---|
263 | <PRE>
|
---|
264 | public <B>Os</B>()</PRE>
|
---|
265 | <DL>
|
---|
266 | <DD>Default constructor
|
---|
267 | <P>
|
---|
268 | </DL>
|
---|
269 | <HR>
|
---|
270 |
|
---|
271 | <A NAME="Os(java.lang.String)"><!-- --></A><H3>
|
---|
272 | Os</H3>
|
---|
273 | <PRE>
|
---|
274 | public <B>Os</B>(java.lang.String family)</PRE>
|
---|
275 | <DL>
|
---|
276 | <DD>Constructor that sets the family attribute
|
---|
277 | <P>
|
---|
278 | <DT><B>Parameters:</B><DD><CODE>family</CODE> - a String value</DL>
|
---|
279 |
|
---|
280 | <!-- ============ METHOD DETAIL ========== -->
|
---|
281 |
|
---|
282 | <A NAME="method_detail"><!-- --></A>
|
---|
283 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
284 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
285 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
286 | <B>Method Detail</B></FONT></TD>
|
---|
287 | </TR>
|
---|
288 | </TABLE>
|
---|
289 |
|
---|
290 | <A NAME="setFamily(java.lang.String)"><!-- --></A><H3>
|
---|
291 | setFamily</H3>
|
---|
292 | <PRE>
|
---|
293 | public void <B>setFamily</B>(java.lang.String f)</PRE>
|
---|
294 | <DL>
|
---|
295 | <DD>Sets the desired OS family type
|
---|
296 | <P>
|
---|
297 | <DD><DL>
|
---|
298 | </DL>
|
---|
299 | </DD>
|
---|
300 | <DD><DL>
|
---|
301 | <DT><B>Parameters:</B><DD><CODE>f</CODE> - The OS family type desired<br />
|
---|
302 | Possible values:<br />
|
---|
303 | <ul>
|
---|
304 | <li>dos</li>
|
---|
305 | <li>mac</li>
|
---|
306 | <li>netware</li>
|
---|
307 | <li>os/2</li>
|
---|
308 | <li>tandem</li>
|
---|
309 | <li>unix</li>
|
---|
310 | <li>windows</li>
|
---|
311 | <li>win9x</li>
|
---|
312 | <li>z/os</li>
|
---|
313 | <li>os/400</li>
|
---|
314 | </ul></DL>
|
---|
315 | </DD>
|
---|
316 | </DL>
|
---|
317 | <HR>
|
---|
318 |
|
---|
319 | <A NAME="setName(java.lang.String)"><!-- --></A><H3>
|
---|
320 | setName</H3>
|
---|
321 | <PRE>
|
---|
322 | public void <B>setName</B>(java.lang.String name)</PRE>
|
---|
323 | <DL>
|
---|
324 | <DD>Sets the desired OS name
|
---|
325 | <P>
|
---|
326 | <DD><DL>
|
---|
327 | </DL>
|
---|
328 | </DD>
|
---|
329 | <DD><DL>
|
---|
330 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - The OS name</DL>
|
---|
331 | </DD>
|
---|
332 | </DL>
|
---|
333 | <HR>
|
---|
334 |
|
---|
335 | <A NAME="setArch(java.lang.String)"><!-- --></A><H3>
|
---|
336 | setArch</H3>
|
---|
337 | <PRE>
|
---|
338 | public void <B>setArch</B>(java.lang.String arch)</PRE>
|
---|
339 | <DL>
|
---|
340 | <DD>Sets the desired OS architecture
|
---|
341 | <P>
|
---|
342 | <DD><DL>
|
---|
343 | </DL>
|
---|
344 | </DD>
|
---|
345 | <DD><DL>
|
---|
346 | <DT><B>Parameters:</B><DD><CODE>arch</CODE> - The OS architecture</DL>
|
---|
347 | </DD>
|
---|
348 | </DL>
|
---|
349 | <HR>
|
---|
350 |
|
---|
351 | <A NAME="setVersion(java.lang.String)"><!-- --></A><H3>
|
---|
352 | setVersion</H3>
|
---|
353 | <PRE>
|
---|
354 | public void <B>setVersion</B>(java.lang.String version)</PRE>
|
---|
355 | <DL>
|
---|
356 | <DD>Sets the desired OS version
|
---|
357 | <P>
|
---|
358 | <DD><DL>
|
---|
359 | </DL>
|
---|
360 | </DD>
|
---|
361 | <DD><DL>
|
---|
362 | <DT><B>Parameters:</B><DD><CODE>version</CODE> - The OS version</DL>
|
---|
363 | </DD>
|
---|
364 | </DL>
|
---|
365 | <HR>
|
---|
366 |
|
---|
367 | <A NAME="eval()"><!-- --></A><H3>
|
---|
368 | eval</H3>
|
---|
369 | <PRE>
|
---|
370 | public boolean <B>eval</B>()
|
---|
371 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
372 | <DL>
|
---|
373 | <DD>Determines if the OS on which Ant is executing matches the type of
|
---|
374 | that set in setFamily.
|
---|
375 | <P>
|
---|
376 | <DD><DL>
|
---|
377 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html#eval()">eval</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></CODE></DL>
|
---|
378 | </DD>
|
---|
379 | <DD><DL>
|
---|
380 |
|
---|
381 | <DT><B>Returns:</B><DD>true if the condition is true
|
---|
382 | <DT><B>Throws:</B>
|
---|
383 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if an error occurs<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Os.html#setFamily(java.lang.String)"><CODE>setFamily(String)</CODE></A></DL>
|
---|
384 | </DD>
|
---|
385 | </DL>
|
---|
386 | <HR>
|
---|
387 |
|
---|
388 | <A NAME="isFamily(java.lang.String)"><!-- --></A><H3>
|
---|
389 | isFamily</H3>
|
---|
390 | <PRE>
|
---|
391 | public static boolean <B>isFamily</B>(java.lang.String family)</PRE>
|
---|
392 | <DL>
|
---|
393 | <DD>Determines if the OS on which Ant is executing matches the
|
---|
394 | given OS family.
|
---|
395 | <P>
|
---|
396 | <DD><DL>
|
---|
397 | </DL>
|
---|
398 | </DD>
|
---|
399 | <DD><DL>
|
---|
400 | <DT><B>Parameters:</B><DD><CODE>family</CODE> - the family to check for
|
---|
401 | <DT><B>Returns:</B><DD>true if the OS matches<DT><B>Since:</B></DT>
|
---|
402 | <DD>1.5</DD>
|
---|
403 | </DL>
|
---|
404 | </DD>
|
---|
405 | </DL>
|
---|
406 | <HR>
|
---|
407 |
|
---|
408 | <A NAME="isName(java.lang.String)"><!-- --></A><H3>
|
---|
409 | isName</H3>
|
---|
410 | <PRE>
|
---|
411 | public static boolean <B>isName</B>(java.lang.String name)</PRE>
|
---|
412 | <DL>
|
---|
413 | <DD>Determines if the OS on which Ant is executing matches the
|
---|
414 | given OS name.
|
---|
415 | <P>
|
---|
416 | <DD><DL>
|
---|
417 | </DL>
|
---|
418 | </DD>
|
---|
419 | <DD><DL>
|
---|
420 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - the OS name to check for
|
---|
421 | <DT><B>Returns:</B><DD>true if the OS matches<DT><B>Since:</B></DT>
|
---|
422 | <DD>1.7</DD>
|
---|
423 | </DL>
|
---|
424 | </DD>
|
---|
425 | </DL>
|
---|
426 | <HR>
|
---|
427 |
|
---|
428 | <A NAME="isArch(java.lang.String)"><!-- --></A><H3>
|
---|
429 | isArch</H3>
|
---|
430 | <PRE>
|
---|
431 | public static boolean <B>isArch</B>(java.lang.String arch)</PRE>
|
---|
432 | <DL>
|
---|
433 | <DD>Determines if the OS on which Ant is executing matches the
|
---|
434 | given OS architecture.
|
---|
435 | <P>
|
---|
436 | <DD><DL>
|
---|
437 | </DL>
|
---|
438 | </DD>
|
---|
439 | <DD><DL>
|
---|
440 | <DT><B>Parameters:</B><DD><CODE>arch</CODE> - the OS architecture to check for
|
---|
441 | <DT><B>Returns:</B><DD>true if the OS matches<DT><B>Since:</B></DT>
|
---|
442 | <DD>1.7</DD>
|
---|
443 | </DL>
|
---|
444 | </DD>
|
---|
445 | </DL>
|
---|
446 | <HR>
|
---|
447 |
|
---|
448 | <A NAME="isVersion(java.lang.String)"><!-- --></A><H3>
|
---|
449 | isVersion</H3>
|
---|
450 | <PRE>
|
---|
451 | public static boolean <B>isVersion</B>(java.lang.String version)</PRE>
|
---|
452 | <DL>
|
---|
453 | <DD>Determines if the OS on which Ant is executing matches the
|
---|
454 | given OS version.
|
---|
455 | <P>
|
---|
456 | <DD><DL>
|
---|
457 | </DL>
|
---|
458 | </DD>
|
---|
459 | <DD><DL>
|
---|
460 | <DT><B>Parameters:</B><DD><CODE>version</CODE> - the OS version to check for
|
---|
461 | <DT><B>Returns:</B><DD>true if the OS matches<DT><B>Since:</B></DT>
|
---|
462 | <DD>1.7</DD>
|
---|
463 | </DL>
|
---|
464 | </DD>
|
---|
465 | </DL>
|
---|
466 | <HR>
|
---|
467 |
|
---|
468 | <A NAME="isOs(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
---|
469 | isOs</H3>
|
---|
470 | <PRE>
|
---|
471 | public static boolean <B>isOs</B>(java.lang.String family,
|
---|
472 | java.lang.String name,
|
---|
473 | java.lang.String arch,
|
---|
474 | java.lang.String version)</PRE>
|
---|
475 | <DL>
|
---|
476 | <DD>Determines if the OS on which Ant is executing matches the
|
---|
477 | given OS family, name, architecture and version
|
---|
478 | <P>
|
---|
479 | <DD><DL>
|
---|
480 | </DL>
|
---|
481 | </DD>
|
---|
482 | <DD><DL>
|
---|
483 | <DT><B>Parameters:</B><DD><CODE>family</CODE> - The OS family<DD><CODE>name</CODE> - The OS name<DD><CODE>arch</CODE> - The OS architecture<DD><CODE>version</CODE> - The OS version
|
---|
484 | <DT><B>Returns:</B><DD>true if the OS matches<DT><B>Since:</B></DT>
|
---|
485 | <DD>1.7</DD>
|
---|
486 | </DL>
|
---|
487 | </DD>
|
---|
488 | </DL>
|
---|
489 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
490 | <HR>
|
---|
491 |
|
---|
492 |
|
---|
493 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
494 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
495 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
496 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
497 | <TR>
|
---|
498 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
499 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
500 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
501 | <TR ALIGN="center" VALIGN="top">
|
---|
502 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
503 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
504 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
505 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
506 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
507 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
508 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
509 | </TR>
|
---|
510 | </TABLE>
|
---|
511 | </TD>
|
---|
512 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
513 | </EM>
|
---|
514 | </TD>
|
---|
515 | </TR>
|
---|
516 |
|
---|
517 | <TR>
|
---|
518 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
519 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Or.html" title="class in org.apache.tools.ant.taskdefs.condition"><B>PREV CLASS</B></A>
|
---|
520 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/condition/Socket.html" title="class in org.apache.tools.ant.taskdefs.condition"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
521 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
522 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
523 | <A HREF="Os.html" target="_top"><B>NO FRAMES</B></A>
|
---|
524 | <SCRIPT type="text/javascript">
|
---|
525 | <!--
|
---|
526 | if(window==top) {
|
---|
527 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
528 | }
|
---|
529 | //-->
|
---|
530 | </SCRIPT>
|
---|
531 | <NOSCRIPT>
|
---|
532 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
533 | </NOSCRIPT>
|
---|
534 |
|
---|
535 | </FONT></TD>
|
---|
536 | </TR>
|
---|
537 | <TR>
|
---|
538 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
539 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
540 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
541 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
542 | </TR>
|
---|
543 | </TABLE>
|
---|
544 | <A NAME="skip-navbar_bottom"></A>
|
---|
545 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
546 |
|
---|
547 | <HR>
|
---|
548 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
549 | </BODY>
|
---|
550 | </HTML>
|
---|