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:32 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | CommandlineJava (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.types.CommandlineJava 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="CommandlineJava (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/types/Commandline.Marker.html" title="class in org.apache.tools.ant.types"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types"><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="CommandlineJava.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: <A HREF="#nested_class_summary">NESTED</A> | 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.types</FONT>
|
---|
85 | <BR>
|
---|
86 | Class CommandlineJava</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.types.CommandlineJava</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>CommandlineJava</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable</DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | A representation of a Java command line that is
|
---|
100 | a composite of 2 <tt>Commandline</tt>. One is used for the
|
---|
101 | vm/options and one for the classname/arguments. It provides
|
---|
102 | specific methods for a java command line.
|
---|
103 | <P>
|
---|
104 |
|
---|
105 | <P>
|
---|
106 | <HR>
|
---|
107 |
|
---|
108 | <P>
|
---|
109 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
110 |
|
---|
111 | <A NAME="nested_class_summary"><!-- --></A>
|
---|
112 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
113 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
114 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
115 | <B>Nested Class Summary</B></FONT></TD>
|
---|
116 | </TR>
|
---|
117 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
118 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
119 | <CODE>static class</CODE></FONT></TD>
|
---|
120 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A></B></CODE>
|
---|
121 |
|
---|
122 | <BR>
|
---|
123 | Specialized Environment class for System properties</TD>
|
---|
124 | </TR>
|
---|
125 | </TABLE>
|
---|
126 |
|
---|
127 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
128 |
|
---|
129 |
|
---|
130 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
131 |
|
---|
132 | <A NAME="constructor_summary"><!-- --></A>
|
---|
133 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
134 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
135 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
136 | <B>Constructor Summary</B></FONT></TD>
|
---|
137 | </TR>
|
---|
138 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
139 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#CommandlineJava()">CommandlineJava</A></B>()</CODE>
|
---|
140 |
|
---|
141 | <BR>
|
---|
142 | constructor uses the VM we are running on now.</TD>
|
---|
143 | </TR>
|
---|
144 | </TABLE>
|
---|
145 |
|
---|
146 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
147 |
|
---|
148 | <A NAME="method_summary"><!-- --></A>
|
---|
149 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
150 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
151 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
152 | <B>Method Summary</B></FONT></TD>
|
---|
153 | </TR>
|
---|
154 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
155 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
156 | <CODE> void</CODE></FONT></TD>
|
---|
157 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#addSysproperties(org.apache.tools.ant.types.CommandlineJava.SysProperties)">addSysproperties</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A> sysp)</CODE>
|
---|
158 |
|
---|
159 | <BR>
|
---|
160 | add a set of system properties</TD>
|
---|
161 | </TR>
|
---|
162 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
163 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
164 | <CODE> void</CODE></FONT></TD>
|
---|
165 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#addSysproperty(org.apache.tools.ant.types.Environment.Variable)">addSysproperty</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A> sysp)</CODE>
|
---|
166 |
|
---|
167 | <BR>
|
---|
168 | add a system property</TD>
|
---|
169 | </TR>
|
---|
170 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
171 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
172 | <CODE> void</CODE></FONT></TD>
|
---|
173 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#addSyspropertyset(org.apache.tools.ant.types.PropertySet)">addSyspropertyset</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/PropertySet.html" title="class in org.apache.tools.ant.types">PropertySet</A> sysp)</CODE>
|
---|
174 |
|
---|
175 | <BR>
|
---|
176 | add a set of system properties</TD>
|
---|
177 | </TR>
|
---|
178 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
180 | <CODE> void</CODE></FONT></TD>
|
---|
181 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#clearJavaArgs()">clearJavaArgs</A></B>()</CODE>
|
---|
182 |
|
---|
183 | <BR>
|
---|
184 | Clear out the java arguments.</TD>
|
---|
185 | </TR>
|
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
188 | <CODE> java.lang.Object</CODE></FONT></TD>
|
---|
189 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#clone()">clone</A></B>()</CODE>
|
---|
190 |
|
---|
191 | <BR>
|
---|
192 | clone the object; clone of all fields in the class</TD>
|
---|
193 | </TR>
|
---|
194 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
196 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A></CODE></FONT></TD>
|
---|
197 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#createArgument()">createArgument</A></B>()</CODE>
|
---|
198 |
|
---|
199 | <BR>
|
---|
200 | create a new argument to the java program</TD>
|
---|
201 | </TR>
|
---|
202 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
203 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
204 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
205 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#createBootclasspath(org.apache.tools.ant.Project)">createBootclasspath</A></B>(<A HREF="../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> p)</CODE>
|
---|
206 |
|
---|
207 | <BR>
|
---|
208 | Create a boot classpath.</TD>
|
---|
209 | </TR>
|
---|
210 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
211 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
212 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
213 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#createClasspath(org.apache.tools.ant.Project)">createClasspath</A></B>(<A HREF="../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> p)</CODE>
|
---|
214 |
|
---|
215 | <BR>
|
---|
216 | Create a classpath.</TD>
|
---|
217 | </TR>
|
---|
218 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
220 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A></CODE></FONT></TD>
|
---|
221 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#createVmArgument()">createVmArgument</A></B>()</CODE>
|
---|
222 |
|
---|
223 | <BR>
|
---|
224 | create a new JVM argument</TD>
|
---|
225 | </TR>
|
---|
226 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
227 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
228 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
229 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#describeCommand()">describeCommand</A></B>()</CODE>
|
---|
230 |
|
---|
231 | <BR>
|
---|
232 | Returns a String that describes the command and arguments
|
---|
233 | suitable for verbose output before a call to
|
---|
234 | <code>Runtime.exec(String[])<code></TD>
|
---|
235 | </TR>
|
---|
236 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
237 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
238 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
239 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#describeJavaCommand()">describeJavaCommand</A></B>()</CODE>
|
---|
240 |
|
---|
241 | <BR>
|
---|
242 | Returns a String that describes the java command and arguments
|
---|
243 | for in VM executions.</TD>
|
---|
244 | </TR>
|
---|
245 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
247 | <CODE>protected <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A></CODE></FONT></TD>
|
---|
248 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getActualVMCommand()">getActualVMCommand</A></B>()</CODE>
|
---|
249 |
|
---|
250 | <BR>
|
---|
251 | Get the VM command parameters, including memory settings</TD>
|
---|
252 | </TR>
|
---|
253 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
255 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A></CODE></FONT></TD>
|
---|
256 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getAssertions()">getAssertions</A></B>()</CODE>
|
---|
257 |
|
---|
258 | <BR>
|
---|
259 | get the current assertions</TD>
|
---|
260 | </TR>
|
---|
261 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
263 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
264 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getBootclasspath()">getBootclasspath</A></B>()</CODE>
|
---|
265 |
|
---|
266 | <BR>
|
---|
267 | get the boot classpath</TD>
|
---|
268 | </TR>
|
---|
269 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
270 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
271 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
272 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getClassname()">getClassname</A></B>()</CODE>
|
---|
273 |
|
---|
274 | <BR>
|
---|
275 | </TD>
|
---|
276 | </TR>
|
---|
277 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
278 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
279 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
280 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getClasspath()">getClasspath</A></B>()</CODE>
|
---|
281 |
|
---|
282 | <BR>
|
---|
283 | get the classpath for the command</TD>
|
---|
284 | </TR>
|
---|
285 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
286 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
287 | <CODE> java.lang.String[]</CODE></FONT></TD>
|
---|
288 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getCommandline()">getCommandline</A></B>()</CODE>
|
---|
289 |
|
---|
290 | <BR>
|
---|
291 | get the command line to run a java vm.</TD>
|
---|
292 | </TR>
|
---|
293 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
294 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
295 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
296 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getJar()">getJar</A></B>()</CODE>
|
---|
297 |
|
---|
298 | <BR>
|
---|
299 | </TD>
|
---|
300 | </TR>
|
---|
301 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
302 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
303 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A></CODE></FONT></TD>
|
---|
304 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getJavaCommand()">getJavaCommand</A></B>()</CODE>
|
---|
305 |
|
---|
306 | <BR>
|
---|
307 | get the Java command to be used.</TD>
|
---|
308 | </TR>
|
---|
309 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
310 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
311 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A></CODE></FONT></TD>
|
---|
312 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getSystemProperties()">getSystemProperties</A></B>()</CODE>
|
---|
313 |
|
---|
314 | <BR>
|
---|
315 | get the system properties object</TD>
|
---|
316 | </TR>
|
---|
317 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
318 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
319 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A></CODE></FONT></TD>
|
---|
320 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getVmCommand()">getVmCommand</A></B>()</CODE>
|
---|
321 |
|
---|
322 | <BR>
|
---|
323 | Get the VM command, including memory.</TD>
|
---|
324 | </TR>
|
---|
325 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
326 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
327 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
328 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getVmversion()">getVmversion</A></B>()</CODE>
|
---|
329 |
|
---|
330 | <BR>
|
---|
331 | Get the vm version.</TD>
|
---|
332 | </TR>
|
---|
333 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
334 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
335 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
336 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#haveBootclasspath(boolean)">haveBootclasspath</A></B>(boolean log)</CODE>
|
---|
337 |
|
---|
338 | <BR>
|
---|
339 | Has the bootclasspath been specified and shall it really be
|
---|
340 | used (build.sysclasspath could be set or the VM may not support
|
---|
341 | it)?</TD>
|
---|
342 | </TR>
|
---|
343 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
344 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
345 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
346 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#haveClasspath()">haveClasspath</A></B>()</CODE>
|
---|
347 |
|
---|
348 | <BR>
|
---|
349 | Has the classpath been specified and shall it really be used or
|
---|
350 | will build.sysclasspath null it?</TD>
|
---|
351 | </TR>
|
---|
352 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
353 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
354 | <CODE> void</CODE></FONT></TD>
|
---|
355 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#restoreSystemProperties()">restoreSystemProperties</A></B>()</CODE>
|
---|
356 |
|
---|
357 | <BR>
|
---|
358 | </TD>
|
---|
359 | </TR>
|
---|
360 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
361 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
362 | <CODE> void</CODE></FONT></TD>
|
---|
363 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setAssertions(org.apache.tools.ant.types.Assertions)">setAssertions</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A> assertions)</CODE>
|
---|
364 |
|
---|
365 | <BR>
|
---|
366 | add an assertion set to the command</TD>
|
---|
367 | </TR>
|
---|
368 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
369 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
370 | <CODE> void</CODE></FONT></TD>
|
---|
371 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setClassname(java.lang.String)">setClassname</A></B>(java.lang.String classname)</CODE>
|
---|
372 |
|
---|
373 | <BR>
|
---|
374 | set the classname to execute</TD>
|
---|
375 | </TR>
|
---|
376 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
377 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
378 | <CODE> void</CODE></FONT></TD>
|
---|
379 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setJar(java.lang.String)">setJar</A></B>(java.lang.String jarpathname)</CODE>
|
---|
380 |
|
---|
381 | <BR>
|
---|
382 | set a jar file to execute via the -jar option.</TD>
|
---|
383 | </TR>
|
---|
384 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
385 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
386 | <CODE> void</CODE></FONT></TD>
|
---|
387 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setMaxmemory(java.lang.String)">setMaxmemory</A></B>(java.lang.String max)</CODE>
|
---|
388 |
|
---|
389 | <BR>
|
---|
390 | Specify max memory of the JVM
|
---|
391 | -mx or -Xmx depending on VM version</TD>
|
---|
392 | </TR>
|
---|
393 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
394 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
395 | <CODE> void</CODE></FONT></TD>
|
---|
396 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setSystemProperties()">setSystemProperties</A></B>()</CODE>
|
---|
397 |
|
---|
398 | <BR>
|
---|
399 | cache current system properties and set them to those in this
|
---|
400 | java command</TD>
|
---|
401 | </TR>
|
---|
402 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
404 | <CODE> void</CODE></FONT></TD>
|
---|
405 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setVm(java.lang.String)">setVm</A></B>(java.lang.String vm)</CODE>
|
---|
406 |
|
---|
407 | <BR>
|
---|
408 | Set the executable used to start the new JVM.</TD>
|
---|
409 | </TR>
|
---|
410 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
411 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
412 | <CODE> void</CODE></FONT></TD>
|
---|
413 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#setVmversion(java.lang.String)">setVmversion</A></B>(java.lang.String value)</CODE>
|
---|
414 |
|
---|
415 | <BR>
|
---|
416 | Set the JVM version required.</TD>
|
---|
417 | </TR>
|
---|
418 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
419 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
420 | <CODE> int</CODE></FONT></TD>
|
---|
421 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#size()">size</A></B>()</CODE>
|
---|
422 |
|
---|
423 | <BR>
|
---|
424 | <B>Deprecated.</B> <I>please dont use this -it effectively creates the entire command.</I></TD>
|
---|
425 | </TR>
|
---|
426 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
427 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
428 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
429 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#toString()">toString</A></B>()</CODE>
|
---|
430 |
|
---|
431 | <BR>
|
---|
432 | get a string description.</TD>
|
---|
433 | </TR>
|
---|
434 | </TABLE>
|
---|
435 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
436 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
437 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
438 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
439 | </TR>
|
---|
440 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
441 | <TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
---|
442 | </TR>
|
---|
443 | </TABLE>
|
---|
444 |
|
---|
445 | <P>
|
---|
446 |
|
---|
447 | <!-- ============ FIELD DETAIL =========== -->
|
---|
448 |
|
---|
449 |
|
---|
450 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
451 |
|
---|
452 | <A NAME="constructor_detail"><!-- --></A>
|
---|
453 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
454 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
455 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
456 | <B>Constructor Detail</B></FONT></TD>
|
---|
457 | </TR>
|
---|
458 | </TABLE>
|
---|
459 |
|
---|
460 | <A NAME="CommandlineJava()"><!-- --></A><H3>
|
---|
461 | CommandlineJava</H3>
|
---|
462 | <PRE>
|
---|
463 | public <B>CommandlineJava</B>()</PRE>
|
---|
464 | <DL>
|
---|
465 | <DD>constructor uses the VM we are running on now.
|
---|
466 | <P>
|
---|
467 | </DL>
|
---|
468 |
|
---|
469 | <!-- ============ METHOD DETAIL ========== -->
|
---|
470 |
|
---|
471 | <A NAME="method_detail"><!-- --></A>
|
---|
472 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
473 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
474 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
475 | <B>Method Detail</B></FONT></TD>
|
---|
476 | </TR>
|
---|
477 | </TABLE>
|
---|
478 |
|
---|
479 | <A NAME="createArgument()"><!-- --></A><H3>
|
---|
480 | createArgument</H3>
|
---|
481 | <PRE>
|
---|
482 | public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A> <B>createArgument</B>()</PRE>
|
---|
483 | <DL>
|
---|
484 | <DD>create a new argument to the java program
|
---|
485 | <P>
|
---|
486 | <DD><DL>
|
---|
487 | </DL>
|
---|
488 | </DD>
|
---|
489 | <DD><DL>
|
---|
490 |
|
---|
491 | <DT><B>Returns:</B><DD>an argument to be configured</DL>
|
---|
492 | </DD>
|
---|
493 | </DL>
|
---|
494 | <HR>
|
---|
495 |
|
---|
496 | <A NAME="createVmArgument()"><!-- --></A><H3>
|
---|
497 | createVmArgument</H3>
|
---|
498 | <PRE>
|
---|
499 | public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A> <B>createVmArgument</B>()</PRE>
|
---|
500 | <DL>
|
---|
501 | <DD>create a new JVM argument
|
---|
502 | <P>
|
---|
503 | <DD><DL>
|
---|
504 | </DL>
|
---|
505 | </DD>
|
---|
506 | <DD><DL>
|
---|
507 |
|
---|
508 | <DT><B>Returns:</B><DD>an argument to be configured</DL>
|
---|
509 | </DD>
|
---|
510 | </DL>
|
---|
511 | <HR>
|
---|
512 |
|
---|
513 | <A NAME="addSysproperty(org.apache.tools.ant.types.Environment.Variable)"><!-- --></A><H3>
|
---|
514 | addSysproperty</H3>
|
---|
515 | <PRE>
|
---|
516 | public void <B>addSysproperty</B>(<A HREF="../../../../../org/apache/tools/ant/types/Environment.Variable.html" title="class in org.apache.tools.ant.types">Environment.Variable</A> sysp)</PRE>
|
---|
517 | <DL>
|
---|
518 | <DD>add a system property
|
---|
519 | <P>
|
---|
520 | <DD><DL>
|
---|
521 | </DL>
|
---|
522 | </DD>
|
---|
523 | <DD><DL>
|
---|
524 | <DT><B>Parameters:</B><DD><CODE>sysp</CODE> - a property to be set in the JVM</DL>
|
---|
525 | </DD>
|
---|
526 | </DL>
|
---|
527 | <HR>
|
---|
528 |
|
---|
529 | <A NAME="addSyspropertyset(org.apache.tools.ant.types.PropertySet)"><!-- --></A><H3>
|
---|
530 | addSyspropertyset</H3>
|
---|
531 | <PRE>
|
---|
532 | public void <B>addSyspropertyset</B>(<A HREF="../../../../../org/apache/tools/ant/types/PropertySet.html" title="class in org.apache.tools.ant.types">PropertySet</A> sysp)</PRE>
|
---|
533 | <DL>
|
---|
534 | <DD>add a set of system properties
|
---|
535 | <P>
|
---|
536 | <DD><DL>
|
---|
537 | </DL>
|
---|
538 | </DD>
|
---|
539 | <DD><DL>
|
---|
540 | <DT><B>Parameters:</B><DD><CODE>sysp</CODE> - a set of properties</DL>
|
---|
541 | </DD>
|
---|
542 | </DL>
|
---|
543 | <HR>
|
---|
544 |
|
---|
545 | <A NAME="addSysproperties(org.apache.tools.ant.types.CommandlineJava.SysProperties)"><!-- --></A><H3>
|
---|
546 | addSysproperties</H3>
|
---|
547 | <PRE>
|
---|
548 | public void <B>addSysproperties</B>(<A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A> sysp)</PRE>
|
---|
549 | <DL>
|
---|
550 | <DD>add a set of system properties
|
---|
551 | <P>
|
---|
552 | <DD><DL>
|
---|
553 | </DL>
|
---|
554 | </DD>
|
---|
555 | <DD><DL>
|
---|
556 | <DT><B>Parameters:</B><DD><CODE>sysp</CODE> - a set of properties<DT><B>Since:</B></DT>
|
---|
557 | <DD>Ant 1.6.3</DD>
|
---|
558 | </DL>
|
---|
559 | </DD>
|
---|
560 | </DL>
|
---|
561 | <HR>
|
---|
562 |
|
---|
563 | <A NAME="setVm(java.lang.String)"><!-- --></A><H3>
|
---|
564 | setVm</H3>
|
---|
565 | <PRE>
|
---|
566 | public void <B>setVm</B>(java.lang.String vm)</PRE>
|
---|
567 | <DL>
|
---|
568 | <DD>Set the executable used to start the new JVM.
|
---|
569 | <P>
|
---|
570 | <DD><DL>
|
---|
571 | </DL>
|
---|
572 | </DD>
|
---|
573 | <DD><DL>
|
---|
574 | <DT><B>Parameters:</B><DD><CODE>vm</CODE> - the executable to use</DL>
|
---|
575 | </DD>
|
---|
576 | </DL>
|
---|
577 | <HR>
|
---|
578 |
|
---|
579 | <A NAME="setVmversion(java.lang.String)"><!-- --></A><H3>
|
---|
580 | setVmversion</H3>
|
---|
581 | <PRE>
|
---|
582 | public void <B>setVmversion</B>(java.lang.String value)</PRE>
|
---|
583 | <DL>
|
---|
584 | <DD>Set the JVM version required.
|
---|
585 | <P>
|
---|
586 | <DD><DL>
|
---|
587 | </DL>
|
---|
588 | </DD>
|
---|
589 | <DD><DL>
|
---|
590 | <DT><B>Parameters:</B><DD><CODE>value</CODE> - the version required</DL>
|
---|
591 | </DD>
|
---|
592 | </DL>
|
---|
593 | <HR>
|
---|
594 |
|
---|
595 | <A NAME="getAssertions()"><!-- --></A><H3>
|
---|
596 | getAssertions</H3>
|
---|
597 | <PRE>
|
---|
598 | public <A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A> <B>getAssertions</B>()</PRE>
|
---|
599 | <DL>
|
---|
600 | <DD>get the current assertions
|
---|
601 | <P>
|
---|
602 | <DD><DL>
|
---|
603 | </DL>
|
---|
604 | </DD>
|
---|
605 | <DD><DL>
|
---|
606 |
|
---|
607 | <DT><B>Returns:</B><DD>assertions or null</DL>
|
---|
608 | </DD>
|
---|
609 | </DL>
|
---|
610 | <HR>
|
---|
611 |
|
---|
612 | <A NAME="setAssertions(org.apache.tools.ant.types.Assertions)"><!-- --></A><H3>
|
---|
613 | setAssertions</H3>
|
---|
614 | <PRE>
|
---|
615 | public void <B>setAssertions</B>(<A HREF="../../../../../org/apache/tools/ant/types/Assertions.html" title="class in org.apache.tools.ant.types">Assertions</A> assertions)</PRE>
|
---|
616 | <DL>
|
---|
617 | <DD>add an assertion set to the command
|
---|
618 | <P>
|
---|
619 | <DD><DL>
|
---|
620 | </DL>
|
---|
621 | </DD>
|
---|
622 | <DD><DL>
|
---|
623 | <DT><B>Parameters:</B><DD><CODE>assertions</CODE> - assertions to make</DL>
|
---|
624 | </DD>
|
---|
625 | </DL>
|
---|
626 | <HR>
|
---|
627 |
|
---|
628 | <A NAME="setJar(java.lang.String)"><!-- --></A><H3>
|
---|
629 | setJar</H3>
|
---|
630 | <PRE>
|
---|
631 | public void <B>setJar</B>(java.lang.String jarpathname)</PRE>
|
---|
632 | <DL>
|
---|
633 | <DD>set a jar file to execute via the -jar option.
|
---|
634 | <P>
|
---|
635 | <DD><DL>
|
---|
636 | </DL>
|
---|
637 | </DD>
|
---|
638 | <DD><DL>
|
---|
639 | <DT><B>Parameters:</B><DD><CODE>jarpathname</CODE> - the pathname of the jar to execute</DL>
|
---|
640 | </DD>
|
---|
641 | </DL>
|
---|
642 | <HR>
|
---|
643 |
|
---|
644 | <A NAME="getJar()"><!-- --></A><H3>
|
---|
645 | getJar</H3>
|
---|
646 | <PRE>
|
---|
647 | public java.lang.String <B>getJar</B>()</PRE>
|
---|
648 | <DL>
|
---|
649 | <DD><DL>
|
---|
650 | </DL>
|
---|
651 | </DD>
|
---|
652 | <DD><DL>
|
---|
653 |
|
---|
654 | <DT><B>Returns:</B><DD>the pathname of the jar file to run via -jar option
|
---|
655 | or <tt>null</tt> if there is no jar to run.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getClassname()"><CODE>getClassname()</CODE></A></DL>
|
---|
656 | </DD>
|
---|
657 | </DL>
|
---|
658 | <HR>
|
---|
659 |
|
---|
660 | <A NAME="setClassname(java.lang.String)"><!-- --></A><H3>
|
---|
661 | setClassname</H3>
|
---|
662 | <PRE>
|
---|
663 | public void <B>setClassname</B>(java.lang.String classname)</PRE>
|
---|
664 | <DL>
|
---|
665 | <DD>set the classname to execute
|
---|
666 | <P>
|
---|
667 | <DD><DL>
|
---|
668 | </DL>
|
---|
669 | </DD>
|
---|
670 | <DD><DL>
|
---|
671 | <DT><B>Parameters:</B><DD><CODE>classname</CODE> - the fully qualified classname.</DL>
|
---|
672 | </DD>
|
---|
673 | </DL>
|
---|
674 | <HR>
|
---|
675 |
|
---|
676 | <A NAME="getClassname()"><!-- --></A><H3>
|
---|
677 | getClassname</H3>
|
---|
678 | <PRE>
|
---|
679 | public java.lang.String <B>getClassname</B>()</PRE>
|
---|
680 | <DL>
|
---|
681 | <DD><DL>
|
---|
682 | </DL>
|
---|
683 | </DD>
|
---|
684 | <DD><DL>
|
---|
685 |
|
---|
686 | <DT><B>Returns:</B><DD>the name of the class to run or <tt>null</tt> if there is no class.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getJar()"><CODE>getJar()</CODE></A></DL>
|
---|
687 | </DD>
|
---|
688 | </DL>
|
---|
689 | <HR>
|
---|
690 |
|
---|
691 | <A NAME="createClasspath(org.apache.tools.ant.Project)"><!-- --></A><H3>
|
---|
692 | createClasspath</H3>
|
---|
693 | <PRE>
|
---|
694 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>(<A HREF="../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> p)</PRE>
|
---|
695 | <DL>
|
---|
696 | <DD>Create a classpath.
|
---|
697 | <P>
|
---|
698 | <DD><DL>
|
---|
699 | </DL>
|
---|
700 | </DD>
|
---|
701 | <DD><DL>
|
---|
702 | <DT><B>Parameters:</B><DD><CODE>p</CODE> - the project to use to create the path in
|
---|
703 | <DT><B>Returns:</B><DD>a path to be configured</DL>
|
---|
704 | </DD>
|
---|
705 | </DL>
|
---|
706 | <HR>
|
---|
707 |
|
---|
708 | <A NAME="createBootclasspath(org.apache.tools.ant.Project)"><!-- --></A><H3>
|
---|
709 | createBootclasspath</H3>
|
---|
710 | <PRE>
|
---|
711 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createBootclasspath</B>(<A HREF="../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> p)</PRE>
|
---|
712 | <DL>
|
---|
713 | <DD>Create a boot classpath.
|
---|
714 | <P>
|
---|
715 | <DD><DL>
|
---|
716 | </DL>
|
---|
717 | </DD>
|
---|
718 | <DD><DL>
|
---|
719 | <DT><B>Parameters:</B><DD><CODE>p</CODE> - the project to use to create the path in
|
---|
720 | <DT><B>Returns:</B><DD>a path to be configured<DT><B>Since:</B></DT>
|
---|
721 | <DD>Ant 1.6</DD>
|
---|
722 | </DL>
|
---|
723 | </DD>
|
---|
724 | </DL>
|
---|
725 | <HR>
|
---|
726 |
|
---|
727 | <A NAME="getVmversion()"><!-- --></A><H3>
|
---|
728 | getVmversion</H3>
|
---|
729 | <PRE>
|
---|
730 | public java.lang.String <B>getVmversion</B>()</PRE>
|
---|
731 | <DL>
|
---|
732 | <DD>Get the vm version.
|
---|
733 | <P>
|
---|
734 | <DD><DL>
|
---|
735 | </DL>
|
---|
736 | </DD>
|
---|
737 | <DD><DL>
|
---|
738 |
|
---|
739 | <DT><B>Returns:</B><DD>the vm version</DL>
|
---|
740 | </DD>
|
---|
741 | </DL>
|
---|
742 | <HR>
|
---|
743 |
|
---|
744 | <A NAME="getCommandline()"><!-- --></A><H3>
|
---|
745 | getCommandline</H3>
|
---|
746 | <PRE>
|
---|
747 | public java.lang.String[] <B>getCommandline</B>()</PRE>
|
---|
748 | <DL>
|
---|
749 | <DD>get the command line to run a java vm.
|
---|
750 | <P>
|
---|
751 | <DD><DL>
|
---|
752 | </DL>
|
---|
753 | </DD>
|
---|
754 | <DD><DL>
|
---|
755 |
|
---|
756 | <DT><B>Returns:</B><DD>the list of all arguments necessary to run the vm.</DL>
|
---|
757 | </DD>
|
---|
758 | </DL>
|
---|
759 | <HR>
|
---|
760 |
|
---|
761 | <A NAME="setMaxmemory(java.lang.String)"><!-- --></A><H3>
|
---|
762 | setMaxmemory</H3>
|
---|
763 | <PRE>
|
---|
764 | public void <B>setMaxmemory</B>(java.lang.String max)</PRE>
|
---|
765 | <DL>
|
---|
766 | <DD>Specify max memory of the JVM
|
---|
767 | -mx or -Xmx depending on VM version
|
---|
768 | <P>
|
---|
769 | <DD><DL>
|
---|
770 | </DL>
|
---|
771 | </DD>
|
---|
772 | <DD><DL>
|
---|
773 | <DT><B>Parameters:</B><DD><CODE>max</CODE> - the string to pass to the jvm to specifiy the max memory</DL>
|
---|
774 | </DD>
|
---|
775 | </DL>
|
---|
776 | <HR>
|
---|
777 |
|
---|
778 | <A NAME="toString()"><!-- --></A><H3>
|
---|
779 | toString</H3>
|
---|
780 | <PRE>
|
---|
781 | public java.lang.String <B>toString</B>()</PRE>
|
---|
782 | <DL>
|
---|
783 | <DD>get a string description.
|
---|
784 | <P>
|
---|
785 | <DD><DL>
|
---|
786 | </DL>
|
---|
787 | </DD>
|
---|
788 | <DD><DL>
|
---|
789 |
|
---|
790 | <DT><B>Returns:</B><DD>the command line as a string</DL>
|
---|
791 | </DD>
|
---|
792 | </DL>
|
---|
793 | <HR>
|
---|
794 |
|
---|
795 | <A NAME="describeCommand()"><!-- --></A><H3>
|
---|
796 | describeCommand</H3>
|
---|
797 | <PRE>
|
---|
798 | public java.lang.String <B>describeCommand</B>()</PRE>
|
---|
799 | <DL>
|
---|
800 | <DD>Returns a String that describes the command and arguments
|
---|
801 | suitable for verbose output before a call to
|
---|
802 | <code>Runtime.exec(String[])<code>
|
---|
803 | <P>
|
---|
804 | <DD><DL>
|
---|
805 | </DL>
|
---|
806 | </DD>
|
---|
807 | <DD><DL>
|
---|
808 |
|
---|
809 | <DT><B>Returns:</B><DD>the description string<DT><B>Since:</B></DT>
|
---|
810 | <DD>Ant 1.5</DD>
|
---|
811 | </DL>
|
---|
812 | </DD>
|
---|
813 | </DL>
|
---|
814 | <HR>
|
---|
815 |
|
---|
816 | <A NAME="describeJavaCommand()"><!-- --></A><H3>
|
---|
817 | describeJavaCommand</H3>
|
---|
818 | <PRE>
|
---|
819 | public java.lang.String <B>describeJavaCommand</B>()</PRE>
|
---|
820 | <DL>
|
---|
821 | <DD>Returns a String that describes the java command and arguments
|
---|
822 | for in VM executions.
|
---|
823 |
|
---|
824 | <p>The class name is the executable in this context.</p>
|
---|
825 | <P>
|
---|
826 | <DD><DL>
|
---|
827 | </DL>
|
---|
828 | </DD>
|
---|
829 | <DD><DL>
|
---|
830 |
|
---|
831 | <DT><B>Returns:</B><DD>the description string<DT><B>Since:</B></DT>
|
---|
832 | <DD>Ant 1.5</DD>
|
---|
833 | </DL>
|
---|
834 | </DD>
|
---|
835 | </DL>
|
---|
836 | <HR>
|
---|
837 |
|
---|
838 | <A NAME="getActualVMCommand()"><!-- --></A><H3>
|
---|
839 | getActualVMCommand</H3>
|
---|
840 | <PRE>
|
---|
841 | protected <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A> <B>getActualVMCommand</B>()</PRE>
|
---|
842 | <DL>
|
---|
843 | <DD>Get the VM command parameters, including memory settings
|
---|
844 | <P>
|
---|
845 | <DD><DL>
|
---|
846 | </DL>
|
---|
847 | </DD>
|
---|
848 | <DD><DL>
|
---|
849 |
|
---|
850 | <DT><B>Returns:</B><DD>the VM command parameters</DL>
|
---|
851 | </DD>
|
---|
852 | </DL>
|
---|
853 | <HR>
|
---|
854 |
|
---|
855 | <A NAME="size()"><!-- --></A><H3>
|
---|
856 | size</H3>
|
---|
857 | <PRE>
|
---|
858 | public int <B>size</B>()</PRE>
|
---|
859 | <DL>
|
---|
860 | <DD><B>Deprecated.</B> <I>please dont use this -it effectively creates the entire command.</I>
|
---|
861 | <P>
|
---|
862 | <DD>The size of the java command line. This is a fairly intensive
|
---|
863 | operation, as it has to evaluate the size of many components.
|
---|
864 | <P>
|
---|
865 | <DD><DL>
|
---|
866 | </DL>
|
---|
867 | </DD>
|
---|
868 | <DD><DL>
|
---|
869 |
|
---|
870 | <DT><B>Returns:</B><DD>the total number of arguments in the java command line.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.html#getCommandline()"><CODE>getCommandline()</CODE></A></DL>
|
---|
871 | </DD>
|
---|
872 | </DL>
|
---|
873 | <HR>
|
---|
874 |
|
---|
875 | <A NAME="getJavaCommand()"><!-- --></A><H3>
|
---|
876 | getJavaCommand</H3>
|
---|
877 | <PRE>
|
---|
878 | public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A> <B>getJavaCommand</B>()</PRE>
|
---|
879 | <DL>
|
---|
880 | <DD>get the Java command to be used.
|
---|
881 | <P>
|
---|
882 | <DD><DL>
|
---|
883 | </DL>
|
---|
884 | </DD>
|
---|
885 | <DD><DL>
|
---|
886 |
|
---|
887 | <DT><B>Returns:</B><DD>the java command -not a clone.</DL>
|
---|
888 | </DD>
|
---|
889 | </DL>
|
---|
890 | <HR>
|
---|
891 |
|
---|
892 | <A NAME="getVmCommand()"><!-- --></A><H3>
|
---|
893 | getVmCommand</H3>
|
---|
894 | <PRE>
|
---|
895 | public <A HREF="../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A> <B>getVmCommand</B>()</PRE>
|
---|
896 | <DL>
|
---|
897 | <DD>Get the VM command, including memory.
|
---|
898 | <P>
|
---|
899 | <DD><DL>
|
---|
900 | </DL>
|
---|
901 | </DD>
|
---|
902 | <DD><DL>
|
---|
903 |
|
---|
904 | <DT><B>Returns:</B><DD>A deep clone of the instance's VM command, with memory settings added</DL>
|
---|
905 | </DD>
|
---|
906 | </DL>
|
---|
907 | <HR>
|
---|
908 |
|
---|
909 | <A NAME="getClasspath()"><!-- --></A><H3>
|
---|
910 | getClasspath</H3>
|
---|
911 | <PRE>
|
---|
912 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>getClasspath</B>()</PRE>
|
---|
913 | <DL>
|
---|
914 | <DD>get the classpath for the command
|
---|
915 | <P>
|
---|
916 | <DD><DL>
|
---|
917 | </DL>
|
---|
918 | </DD>
|
---|
919 | <DD><DL>
|
---|
920 |
|
---|
921 | <DT><B>Returns:</B><DD>the classpath or null</DL>
|
---|
922 | </DD>
|
---|
923 | </DL>
|
---|
924 | <HR>
|
---|
925 |
|
---|
926 | <A NAME="getBootclasspath()"><!-- --></A><H3>
|
---|
927 | getBootclasspath</H3>
|
---|
928 | <PRE>
|
---|
929 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>getBootclasspath</B>()</PRE>
|
---|
930 | <DL>
|
---|
931 | <DD>get the boot classpath
|
---|
932 | <P>
|
---|
933 | <DD><DL>
|
---|
934 | </DL>
|
---|
935 | </DD>
|
---|
936 | <DD><DL>
|
---|
937 |
|
---|
938 | <DT><B>Returns:</B><DD>boot classpath or null</DL>
|
---|
939 | </DD>
|
---|
940 | </DL>
|
---|
941 | <HR>
|
---|
942 |
|
---|
943 | <A NAME="setSystemProperties()"><!-- --></A><H3>
|
---|
944 | setSystemProperties</H3>
|
---|
945 | <PRE>
|
---|
946 | public void <B>setSystemProperties</B>()
|
---|
947 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
948 | <DL>
|
---|
949 | <DD>cache current system properties and set them to those in this
|
---|
950 | java command
|
---|
951 | <P>
|
---|
952 | <DD><DL>
|
---|
953 | </DL>
|
---|
954 | </DD>
|
---|
955 | <DD><DL>
|
---|
956 |
|
---|
957 | <DT><B>Throws:</B>
|
---|
958 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if Security prevented this operation</DL>
|
---|
959 | </DD>
|
---|
960 | </DL>
|
---|
961 | <HR>
|
---|
962 |
|
---|
963 | <A NAME="restoreSystemProperties()"><!-- --></A><H3>
|
---|
964 | restoreSystemProperties</H3>
|
---|
965 | <PRE>
|
---|
966 | public void <B>restoreSystemProperties</B>()
|
---|
967 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
968 | <DL>
|
---|
969 | <DD><DL>
|
---|
970 | </DL>
|
---|
971 | </DD>
|
---|
972 | <DD><DL>
|
---|
973 |
|
---|
974 | <DT><B>Throws:</B>
|
---|
975 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if Security prevented this operation, or
|
---|
976 | there was no system properties to restore</DL>
|
---|
977 | </DD>
|
---|
978 | </DL>
|
---|
979 | <HR>
|
---|
980 |
|
---|
981 | <A NAME="getSystemProperties()"><!-- --></A><H3>
|
---|
982 | getSystemProperties</H3>
|
---|
983 | <PRE>
|
---|
984 | public <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types">CommandlineJava.SysProperties</A> <B>getSystemProperties</B>()</PRE>
|
---|
985 | <DL>
|
---|
986 | <DD>get the system properties object
|
---|
987 | <P>
|
---|
988 | <DD><DL>
|
---|
989 | </DL>
|
---|
990 | </DD>
|
---|
991 | <DD><DL>
|
---|
992 |
|
---|
993 | <DT><B>Returns:</B><DD>The system properties object</DL>
|
---|
994 | </DD>
|
---|
995 | </DL>
|
---|
996 | <HR>
|
---|
997 |
|
---|
998 | <A NAME="clone()"><!-- --></A><H3>
|
---|
999 | clone</H3>
|
---|
1000 | <PRE>
|
---|
1001 | public java.lang.Object <B>clone</B>()
|
---|
1002 | throws java.lang.CloneNotSupportedException</PRE>
|
---|
1003 | <DL>
|
---|
1004 | <DD>clone the object; clone of all fields in the class
|
---|
1005 | <P>
|
---|
1006 | <DD><DL>
|
---|
1007 | </DL>
|
---|
1008 | </DD>
|
---|
1009 | <DD><DL>
|
---|
1010 |
|
---|
1011 | <DT><B>Returns:</B><DD>a CommandlineJava object
|
---|
1012 | <DT><B>Throws:</B>
|
---|
1013 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if anything went wrong.
|
---|
1014 | <DD><CODE>java.lang.CloneNotSupportedException</CODE> - never</DL>
|
---|
1015 | </DD>
|
---|
1016 | </DL>
|
---|
1017 | <HR>
|
---|
1018 |
|
---|
1019 | <A NAME="clearJavaArgs()"><!-- --></A><H3>
|
---|
1020 | clearJavaArgs</H3>
|
---|
1021 | <PRE>
|
---|
1022 | public void <B>clearJavaArgs</B>()</PRE>
|
---|
1023 | <DL>
|
---|
1024 | <DD>Clear out the java arguments.
|
---|
1025 | <P>
|
---|
1026 | <DD><DL>
|
---|
1027 | </DL>
|
---|
1028 | </DD>
|
---|
1029 | <DD><DL>
|
---|
1030 | </DL>
|
---|
1031 | </DD>
|
---|
1032 | </DL>
|
---|
1033 | <HR>
|
---|
1034 |
|
---|
1035 | <A NAME="haveClasspath()"><!-- --></A><H3>
|
---|
1036 | haveClasspath</H3>
|
---|
1037 | <PRE>
|
---|
1038 | protected boolean <B>haveClasspath</B>()</PRE>
|
---|
1039 | <DL>
|
---|
1040 | <DD>Has the classpath been specified and shall it really be used or
|
---|
1041 | will build.sysclasspath null it?
|
---|
1042 | <P>
|
---|
1043 | <DD><DL>
|
---|
1044 | </DL>
|
---|
1045 | </DD>
|
---|
1046 | <DD><DL>
|
---|
1047 |
|
---|
1048 | <DT><B>Returns:</B><DD>true if the classpath is to be used<DT><B>Since:</B></DT>
|
---|
1049 | <DD>Ant 1.6</DD>
|
---|
1050 | </DL>
|
---|
1051 | </DD>
|
---|
1052 | </DL>
|
---|
1053 | <HR>
|
---|
1054 |
|
---|
1055 | <A NAME="haveBootclasspath(boolean)"><!-- --></A><H3>
|
---|
1056 | haveBootclasspath</H3>
|
---|
1057 | <PRE>
|
---|
1058 | protected boolean <B>haveBootclasspath</B>(boolean log)</PRE>
|
---|
1059 | <DL>
|
---|
1060 | <DD>Has the bootclasspath been specified and shall it really be
|
---|
1061 | used (build.sysclasspath could be set or the VM may not support
|
---|
1062 | it)?
|
---|
1063 | <P>
|
---|
1064 | <DD><DL>
|
---|
1065 | </DL>
|
---|
1066 | </DD>
|
---|
1067 | <DD><DL>
|
---|
1068 | <DT><B>Parameters:</B><DD><CODE>log</CODE> - whether to log a warning if a bootclasspath has been
|
---|
1069 | specified but will be ignored.
|
---|
1070 | <DT><B>Returns:</B><DD>true if the bootclasspath is to be used<DT><B>Since:</B></DT>
|
---|
1071 | <DD>Ant 1.6</DD>
|
---|
1072 | </DL>
|
---|
1073 | </DD>
|
---|
1074 | </DL>
|
---|
1075 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
1076 | <HR>
|
---|
1077 |
|
---|
1078 |
|
---|
1079 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
1080 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
1081 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
1082 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
1083 | <TR>
|
---|
1084 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
1085 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
1086 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
1087 | <TR ALIGN="center" VALIGN="top">
|
---|
1088 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
1089 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
1090 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
1091 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
1092 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
1093 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
1094 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
1095 | </TR>
|
---|
1096 | </TABLE>
|
---|
1097 | </TD>
|
---|
1098 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
1099 | </EM>
|
---|
1100 | </TD>
|
---|
1101 | </TR>
|
---|
1102 |
|
---|
1103 | <TR>
|
---|
1104 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1105 | <A HREF="../../../../../org/apache/tools/ant/types/Commandline.Marker.html" title="class in org.apache.tools.ant.types"><B>PREV CLASS</B></A>
|
---|
1106 | <A HREF="../../../../../org/apache/tools/ant/types/CommandlineJava.SysProperties.html" title="class in org.apache.tools.ant.types"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
1107 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
1108 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
1109 | <A HREF="CommandlineJava.html" target="_top"><B>NO FRAMES</B></A>
|
---|
1110 | <SCRIPT type="text/javascript">
|
---|
1111 | <!--
|
---|
1112 | if(window==top) {
|
---|
1113 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
1114 | }
|
---|
1115 | //-->
|
---|
1116 | </SCRIPT>
|
---|
1117 | <NOSCRIPT>
|
---|
1118 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
1119 | </NOSCRIPT>
|
---|
1120 |
|
---|
1121 | </FONT></TD>
|
---|
1122 | </TR>
|
---|
1123 | <TR>
|
---|
1124 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1125 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
1126 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
1127 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
1128 | </TR>
|
---|
1129 | </TABLE>
|
---|
1130 | <A NAME="skip-navbar_bottom"></A>
|
---|
1131 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
1132 |
|
---|
1133 | <HR>
|
---|
1134 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
1135 | </BODY>
|
---|
1136 | </HTML>
|
---|