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:29 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | P4Base (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.perforce.P4Base 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="P4Base (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/optional/perforce/P4Add.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Change.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><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="P4Base.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 | <A HREF="#field_summary">FIELD</A> | <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: <A HREF="#field_detail">FIELD</A> | <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.optional.perforce</FONT>
|
---|
85 | <BR>
|
---|
86 | Class P4Base</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
91 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.perforce.P4Base</B>
|
---|
92 | </PRE>
|
---|
93 | <DL>
|
---|
94 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Add.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Add</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Change.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Change</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Counter.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Counter</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Delete.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Delete</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Edit.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Edit</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Fstat.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Fstat</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Have.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Have</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Integrate.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Integrate</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Label.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Label</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Labelsync.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Labelsync</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Reopen.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Reopen</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Resolve.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Resolve</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Revert.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Revert</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Submit.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Submit</A>, <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Sync.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce">P4Sync</A></DD>
|
---|
95 | </DL>
|
---|
96 | <HR>
|
---|
97 | <DL>
|
---|
98 | <DT>public abstract class <B>P4Base</B><DT>extends <A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
|
---|
99 |
|
---|
100 | <P>
|
---|
101 | Base class for Perforce (P4) ANT tasks. See individual task for example usage.
|
---|
102 | <P>
|
---|
103 |
|
---|
104 | <P>
|
---|
105 | <DL>
|
---|
106 | <DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Sync.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Sync</CODE></A>,
|
---|
107 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Have.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Have</CODE></A>,
|
---|
108 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Change.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Change</CODE></A>,
|
---|
109 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Edit.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Edit</CODE></A>,
|
---|
110 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Submit.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Submit</CODE></A>,
|
---|
111 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Label.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><CODE>P4Label</CODE></A>,
|
---|
112 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs"><CODE>Execute</CODE></A></DL>
|
---|
113 | <HR>
|
---|
114 |
|
---|
115 | <P>
|
---|
116 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
117 |
|
---|
118 |
|
---|
119 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
120 |
|
---|
121 | <A NAME="field_summary"><!-- --></A>
|
---|
122 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
123 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
124 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
125 | <B>Field Summary</B></FONT></TD>
|
---|
126 | </TR>
|
---|
127 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
128 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
129 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
130 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#failOnError">failOnError</A></B></CODE>
|
---|
131 |
|
---|
132 | <BR>
|
---|
133 | Keep going or fail on error - defaults to fail.</TD>
|
---|
134 | </TR>
|
---|
135 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
136 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
137 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
138 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4Client">P4Client</A></B></CODE>
|
---|
139 |
|
---|
140 | <BR>
|
---|
141 | Perforce Client (eg myclientspec)</TD>
|
---|
142 | </TR>
|
---|
143 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
144 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
145 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
146 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4CmdOpts">P4CmdOpts</A></B></CODE>
|
---|
147 |
|
---|
148 | <BR>
|
---|
149 | Perforce command opts.</TD>
|
---|
150 | </TR>
|
---|
151 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
152 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
153 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
154 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4Opts">P4Opts</A></B></CODE>
|
---|
155 |
|
---|
156 | <BR>
|
---|
157 | Perforce 'global' opts.</TD>
|
---|
158 | </TR>
|
---|
159 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
160 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
161 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
162 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4Port">P4Port</A></B></CODE>
|
---|
163 |
|
---|
164 | <BR>
|
---|
165 | Perforce Server Port (eg KM01:1666)</TD>
|
---|
166 | </TR>
|
---|
167 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
168 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
169 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
170 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4User">P4User</A></B></CODE>
|
---|
171 |
|
---|
172 | <BR>
|
---|
173 | Perforce User (eg fbloggs)</TD>
|
---|
174 | </TR>
|
---|
175 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
177 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
178 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4View">P4View</A></B></CODE>
|
---|
179 |
|
---|
180 | <BR>
|
---|
181 | Perforce view for commands.</TD>
|
---|
182 | </TR>
|
---|
183 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
185 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
186 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#shell">shell</A></B></CODE>
|
---|
187 |
|
---|
188 | <BR>
|
---|
189 | The OS shell to use (cmd.exe or /bin/sh)</TD>
|
---|
190 | </TR>
|
---|
191 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
193 | <CODE>protected Perl5Util</CODE></FONT></TD>
|
---|
194 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#util">util</A></B></CODE>
|
---|
195 |
|
---|
196 | <BR>
|
---|
197 | Perl5 regexp in Java - cool eh?</TD>
|
---|
198 | </TR>
|
---|
199 | </TABLE>
|
---|
200 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
201 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
202 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
203 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
204 | </TR>
|
---|
205 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
206 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
|
---|
207 | </TR>
|
---|
208 | </TABLE>
|
---|
209 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
210 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
211 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
212 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
213 | </TR>
|
---|
214 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
215 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
216 | </TR>
|
---|
217 | </TABLE>
|
---|
218 |
|
---|
219 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
220 |
|
---|
221 | <A NAME="constructor_summary"><!-- --></A>
|
---|
222 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
223 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
224 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
225 | <B>Constructor Summary</B></FONT></TD>
|
---|
226 | </TR>
|
---|
227 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
228 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#P4Base()">P4Base</A></B>()</CODE>
|
---|
229 |
|
---|
230 | <BR>
|
---|
231 | </TD>
|
---|
232 | </TR>
|
---|
233 | </TABLE>
|
---|
234 |
|
---|
235 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
236 |
|
---|
237 | <A NAME="method_summary"><!-- --></A>
|
---|
238 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
239 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
240 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
241 | <B>Method Summary</B></FONT></TD>
|
---|
242 | </TR>
|
---|
243 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
244 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
245 | <CODE>protected void</CODE></FONT></TD>
|
---|
246 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#execP4Command(java.lang.String)">execP4Command</A></B>(java.lang.String command)</CODE>
|
---|
247 |
|
---|
248 | <BR>
|
---|
249 | no usages found for this method
|
---|
250 | runs a Perforce command without a handler</TD>
|
---|
251 | </TR>
|
---|
252 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
253 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
254 | <CODE>protected void</CODE></FONT></TD>
|
---|
255 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#execP4Command(java.lang.String, org.apache.tools.ant.taskdefs.optional.perforce.P4Handler)">execP4Command</A></B>(java.lang.String command,
|
---|
256 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Handler.html" title="interface in org.apache.tools.ant.taskdefs.optional.perforce">P4Handler</A> handler)</CODE>
|
---|
257 |
|
---|
258 | <BR>
|
---|
259 | Execute P4 command assembled by subclasses.</TD>
|
---|
260 | </TR>
|
---|
261 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
263 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
264 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#getErrorMessage()">getErrorMessage</A></B>()</CODE>
|
---|
265 |
|
---|
266 | <BR>
|
---|
267 | gets the error message recorded by the Perforce handler</TD>
|
---|
268 | </TR>
|
---|
269 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
270 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
271 | <CODE> boolean</CODE></FONT></TD>
|
---|
272 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#getInError()">getInError</A></B>()</CODE>
|
---|
273 |
|
---|
274 | <BR>
|
---|
275 | gets whether or not the task has encountered an error</TD>
|
---|
276 | </TR>
|
---|
277 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
278 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
279 | <CODE> void</CODE></FONT></TD>
|
---|
280 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#init()">init</A></B>()</CODE>
|
---|
281 |
|
---|
282 | <BR>
|
---|
283 | sets attributes Port, Client, User from properties
|
---|
284 | if these properties are defined.</TD>
|
---|
285 | </TR>
|
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
288 | <CODE> void</CODE></FONT></TD>
|
---|
289 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setClient(java.lang.String)">setClient</A></B>(java.lang.String P4Client)</CODE>
|
---|
290 |
|
---|
291 | <BR>
|
---|
292 | The p4 client spec to use;
|
---|
293 | optional, defaults to the current user</TD>
|
---|
294 | </TR>
|
---|
295 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
296 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
297 | <CODE> void</CODE></FONT></TD>
|
---|
298 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setCmdopts(java.lang.String)">setCmdopts</A></B>(java.lang.String P4CmdOpts)</CODE>
|
---|
299 |
|
---|
300 | <BR>
|
---|
301 | Set extra command options; only used on some
|
---|
302 | of the Perforce tasks.</TD>
|
---|
303 | </TR>
|
---|
304 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
305 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
306 | <CODE> void</CODE></FONT></TD>
|
---|
307 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setErrorMessage(java.lang.String)">setErrorMessage</A></B>(java.lang.String errorMessage)</CODE>
|
---|
308 |
|
---|
309 | <BR>
|
---|
310 | sets the error message</TD>
|
---|
311 | </TR>
|
---|
312 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
313 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
314 | <CODE> void</CODE></FONT></TD>
|
---|
315 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setFailonerror(boolean)">setFailonerror</A></B>(boolean fail)</CODE>
|
---|
316 |
|
---|
317 | <BR>
|
---|
318 | whether to stop the build (true, default)
|
---|
319 | or keep going if an error is returned from the p4 command</TD>
|
---|
320 | </TR>
|
---|
321 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
323 | <CODE> void</CODE></FONT></TD>
|
---|
324 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setGlobalopts(java.lang.String)">setGlobalopts</A></B>(java.lang.String P4Opts)</CODE>
|
---|
325 |
|
---|
326 | <BR>
|
---|
327 | Set global P4 options; Used on all
|
---|
328 | of the Perforce tasks.</TD>
|
---|
329 | </TR>
|
---|
330 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
331 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
332 | <CODE> void</CODE></FONT></TD>
|
---|
333 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setInError(boolean)">setInError</A></B>(boolean inError)</CODE>
|
---|
334 |
|
---|
335 | <BR>
|
---|
336 | sets the error flag on the task</TD>
|
---|
337 | </TR>
|
---|
338 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
340 | <CODE> void</CODE></FONT></TD>
|
---|
341 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setPort(java.lang.String)">setPort</A></B>(java.lang.String P4Port)</CODE>
|
---|
342 |
|
---|
343 | <BR>
|
---|
344 | The p4d server and port to connect to;
|
---|
345 | optional, default "perforce:1666"</TD>
|
---|
346 | </TR>
|
---|
347 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
348 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
349 | <CODE> void</CODE></FONT></TD>
|
---|
350 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setUser(java.lang.String)">setUser</A></B>(java.lang.String P4User)</CODE>
|
---|
351 |
|
---|
352 | <BR>
|
---|
353 | The p4 username;
|
---|
354 | optional, defaults to the current user</TD>
|
---|
355 | </TR>
|
---|
356 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
357 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
358 | <CODE> void</CODE></FONT></TD>
|
---|
359 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Base.html#setView(java.lang.String)">setView</A></B>(java.lang.String P4View)</CODE>
|
---|
360 |
|
---|
361 | <BR>
|
---|
362 | The client, branch or label view to operate upon;
|
---|
363 | optional default "//...".</TD>
|
---|
364 | </TR>
|
---|
365 | </TABLE>
|
---|
366 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
367 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
368 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
369 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
370 | </TR>
|
---|
371 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
372 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#execute()">execute</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
|
---|
373 | </TR>
|
---|
374 | </TABLE>
|
---|
375 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
376 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
377 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
378 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
379 | </TR>
|
---|
380 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
381 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
382 | </TR>
|
---|
383 | </TABLE>
|
---|
384 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
385 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
386 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
387 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
388 | </TR>
|
---|
389 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
390 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
391 | </TR>
|
---|
392 | </TABLE>
|
---|
393 |
|
---|
394 | <P>
|
---|
395 |
|
---|
396 | <!-- ============ FIELD DETAIL =========== -->
|
---|
397 |
|
---|
398 | <A NAME="field_detail"><!-- --></A>
|
---|
399 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
400 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
401 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
402 | <B>Field Detail</B></FONT></TD>
|
---|
403 | </TR>
|
---|
404 | </TABLE>
|
---|
405 |
|
---|
406 | <A NAME="util"><!-- --></A><H3>
|
---|
407 | util</H3>
|
---|
408 | <PRE>
|
---|
409 | protected Perl5Util <B>util</B></PRE>
|
---|
410 | <DL>
|
---|
411 | <DD>Perl5 regexp in Java - cool eh?
|
---|
412 | <P>
|
---|
413 | <DL>
|
---|
414 | </DL>
|
---|
415 | </DL>
|
---|
416 | <HR>
|
---|
417 |
|
---|
418 | <A NAME="shell"><!-- --></A><H3>
|
---|
419 | shell</H3>
|
---|
420 | <PRE>
|
---|
421 | protected java.lang.String <B>shell</B></PRE>
|
---|
422 | <DL>
|
---|
423 | <DD>The OS shell to use (cmd.exe or /bin/sh)
|
---|
424 | <P>
|
---|
425 | <DL>
|
---|
426 | </DL>
|
---|
427 | </DL>
|
---|
428 | <HR>
|
---|
429 |
|
---|
430 | <A NAME="P4Port"><!-- --></A><H3>
|
---|
431 | P4Port</H3>
|
---|
432 | <PRE>
|
---|
433 | protected java.lang.String <B>P4Port</B></PRE>
|
---|
434 | <DL>
|
---|
435 | <DD>Perforce Server Port (eg KM01:1666)
|
---|
436 | <P>
|
---|
437 | <DL>
|
---|
438 | </DL>
|
---|
439 | </DL>
|
---|
440 | <HR>
|
---|
441 |
|
---|
442 | <A NAME="P4Client"><!-- --></A><H3>
|
---|
443 | P4Client</H3>
|
---|
444 | <PRE>
|
---|
445 | protected java.lang.String <B>P4Client</B></PRE>
|
---|
446 | <DL>
|
---|
447 | <DD>Perforce Client (eg myclientspec)
|
---|
448 | <P>
|
---|
449 | <DL>
|
---|
450 | </DL>
|
---|
451 | </DL>
|
---|
452 | <HR>
|
---|
453 |
|
---|
454 | <A NAME="P4User"><!-- --></A><H3>
|
---|
455 | P4User</H3>
|
---|
456 | <PRE>
|
---|
457 | protected java.lang.String <B>P4User</B></PRE>
|
---|
458 | <DL>
|
---|
459 | <DD>Perforce User (eg fbloggs)
|
---|
460 | <P>
|
---|
461 | <DL>
|
---|
462 | </DL>
|
---|
463 | </DL>
|
---|
464 | <HR>
|
---|
465 |
|
---|
466 | <A NAME="P4View"><!-- --></A><H3>
|
---|
467 | P4View</H3>
|
---|
468 | <PRE>
|
---|
469 | protected java.lang.String <B>P4View</B></PRE>
|
---|
470 | <DL>
|
---|
471 | <DD>Perforce view for commands. (eg //projects/foobar/main/source/... )
|
---|
472 | <P>
|
---|
473 | <DL>
|
---|
474 | </DL>
|
---|
475 | </DL>
|
---|
476 | <HR>
|
---|
477 |
|
---|
478 | <A NAME="failOnError"><!-- --></A><H3>
|
---|
479 | failOnError</H3>
|
---|
480 | <PRE>
|
---|
481 | protected boolean <B>failOnError</B></PRE>
|
---|
482 | <DL>
|
---|
483 | <DD>Keep going or fail on error - defaults to fail.
|
---|
484 | <P>
|
---|
485 | <DL>
|
---|
486 | </DL>
|
---|
487 | </DL>
|
---|
488 | <HR>
|
---|
489 |
|
---|
490 | <A NAME="P4Opts"><!-- --></A><H3>
|
---|
491 | P4Opts</H3>
|
---|
492 | <PRE>
|
---|
493 | protected java.lang.String <B>P4Opts</B></PRE>
|
---|
494 | <DL>
|
---|
495 | <DD>Perforce 'global' opts.
|
---|
496 | Forms half of low level API
|
---|
497 | <P>
|
---|
498 | <DL>
|
---|
499 | </DL>
|
---|
500 | </DL>
|
---|
501 | <HR>
|
---|
502 |
|
---|
503 | <A NAME="P4CmdOpts"><!-- --></A><H3>
|
---|
504 | P4CmdOpts</H3>
|
---|
505 | <PRE>
|
---|
506 | protected java.lang.String <B>P4CmdOpts</B></PRE>
|
---|
507 | <DL>
|
---|
508 | <DD>Perforce command opts.
|
---|
509 | Forms half of low level API
|
---|
510 | <P>
|
---|
511 | <DL>
|
---|
512 | </DL>
|
---|
513 | </DL>
|
---|
514 |
|
---|
515 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
516 |
|
---|
517 | <A NAME="constructor_detail"><!-- --></A>
|
---|
518 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
519 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
520 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
521 | <B>Constructor Detail</B></FONT></TD>
|
---|
522 | </TR>
|
---|
523 | </TABLE>
|
---|
524 |
|
---|
525 | <A NAME="P4Base()"><!-- --></A><H3>
|
---|
526 | P4Base</H3>
|
---|
527 | <PRE>
|
---|
528 | public <B>P4Base</B>()</PRE>
|
---|
529 | <DL>
|
---|
530 | </DL>
|
---|
531 |
|
---|
532 | <!-- ============ METHOD DETAIL ========== -->
|
---|
533 |
|
---|
534 | <A NAME="method_detail"><!-- --></A>
|
---|
535 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
536 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
537 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
538 | <B>Method Detail</B></FONT></TD>
|
---|
539 | </TR>
|
---|
540 | </TABLE>
|
---|
541 |
|
---|
542 | <A NAME="getInError()"><!-- --></A><H3>
|
---|
543 | getInError</H3>
|
---|
544 | <PRE>
|
---|
545 | public boolean <B>getInError</B>()</PRE>
|
---|
546 | <DL>
|
---|
547 | <DD>gets whether or not the task has encountered an error
|
---|
548 | <P>
|
---|
549 | <DD><DL>
|
---|
550 |
|
---|
551 | <DT><B>Returns:</B><DD>error flag<DT><B>Since:</B></DT>
|
---|
552 | <DD>ant 1.6</DD>
|
---|
553 | </DL>
|
---|
554 | </DD>
|
---|
555 | </DL>
|
---|
556 | <HR>
|
---|
557 |
|
---|
558 | <A NAME="setInError(boolean)"><!-- --></A><H3>
|
---|
559 | setInError</H3>
|
---|
560 | <PRE>
|
---|
561 | public void <B>setInError</B>(boolean inError)</PRE>
|
---|
562 | <DL>
|
---|
563 | <DD>sets the error flag on the task
|
---|
564 | <P>
|
---|
565 | <DD><DL>
|
---|
566 | <DT><B>Parameters:</B><DD><CODE>inError</CODE> - if true an error has been encountered by the handler<DT><B>Since:</B></DT>
|
---|
567 | <DD>ant 1.6</DD>
|
---|
568 | </DL>
|
---|
569 | </DD>
|
---|
570 | </DL>
|
---|
571 | <HR>
|
---|
572 |
|
---|
573 | <A NAME="getErrorMessage()"><!-- --></A><H3>
|
---|
574 | getErrorMessage</H3>
|
---|
575 | <PRE>
|
---|
576 | public java.lang.String <B>getErrorMessage</B>()</PRE>
|
---|
577 | <DL>
|
---|
578 | <DD>gets the error message recorded by the Perforce handler
|
---|
579 | <P>
|
---|
580 | <DD><DL>
|
---|
581 |
|
---|
582 | <DT><B>Returns:</B><DD>error message</DL>
|
---|
583 | </DD>
|
---|
584 | </DL>
|
---|
585 | <HR>
|
---|
586 |
|
---|
587 | <A NAME="setErrorMessage(java.lang.String)"><!-- --></A><H3>
|
---|
588 | setErrorMessage</H3>
|
---|
589 | <PRE>
|
---|
590 | public void <B>setErrorMessage</B>(java.lang.String errorMessage)</PRE>
|
---|
591 | <DL>
|
---|
592 | <DD>sets the error message
|
---|
593 | <P>
|
---|
594 | <DD><DL>
|
---|
595 | <DT><B>Parameters:</B><DD><CODE>errorMessage</CODE> - line of error output</DL>
|
---|
596 | </DD>
|
---|
597 | </DL>
|
---|
598 | <HR>
|
---|
599 |
|
---|
600 | <A NAME="setPort(java.lang.String)"><!-- --></A><H3>
|
---|
601 | setPort</H3>
|
---|
602 | <PRE>
|
---|
603 | public void <B>setPort</B>(java.lang.String P4Port)</PRE>
|
---|
604 | <DL>
|
---|
605 | <DD>The p4d server and port to connect to;
|
---|
606 | optional, default "perforce:1666"
|
---|
607 | <P>
|
---|
608 | <DD><DL>
|
---|
609 | <DT><B>Parameters:</B><DD><CODE>P4Port</CODE> - the port one wants to set such as localhost:1666</DL>
|
---|
610 | </DD>
|
---|
611 | </DL>
|
---|
612 | <HR>
|
---|
613 |
|
---|
614 | <A NAME="setClient(java.lang.String)"><!-- --></A><H3>
|
---|
615 | setClient</H3>
|
---|
616 | <PRE>
|
---|
617 | public void <B>setClient</B>(java.lang.String P4Client)</PRE>
|
---|
618 | <DL>
|
---|
619 | <DD>The p4 client spec to use;
|
---|
620 | optional, defaults to the current user
|
---|
621 | <P>
|
---|
622 | <DD><DL>
|
---|
623 | <DT><B>Parameters:</B><DD><CODE>P4Client</CODE> - the name of the Perforce client spec</DL>
|
---|
624 | </DD>
|
---|
625 | </DL>
|
---|
626 | <HR>
|
---|
627 |
|
---|
628 | <A NAME="setUser(java.lang.String)"><!-- --></A><H3>
|
---|
629 | setUser</H3>
|
---|
630 | <PRE>
|
---|
631 | public void <B>setUser</B>(java.lang.String P4User)</PRE>
|
---|
632 | <DL>
|
---|
633 | <DD>The p4 username;
|
---|
634 | optional, defaults to the current user
|
---|
635 | <P>
|
---|
636 | <DD><DL>
|
---|
637 | <DT><B>Parameters:</B><DD><CODE>P4User</CODE> - the user name</DL>
|
---|
638 | </DD>
|
---|
639 | </DL>
|
---|
640 | <HR>
|
---|
641 |
|
---|
642 | <A NAME="setGlobalopts(java.lang.String)"><!-- --></A><H3>
|
---|
643 | setGlobalopts</H3>
|
---|
644 | <PRE>
|
---|
645 | public void <B>setGlobalopts</B>(java.lang.String P4Opts)</PRE>
|
---|
646 | <DL>
|
---|
647 | <DD>Set global P4 options; Used on all
|
---|
648 | of the Perforce tasks.
|
---|
649 | <P>
|
---|
650 | <DD><DL>
|
---|
651 | <DT><B>Parameters:</B><DD><CODE>P4Opts</CODE> - global options, to use a specific P4Config file for instance</DL>
|
---|
652 | </DD>
|
---|
653 | </DL>
|
---|
654 | <HR>
|
---|
655 |
|
---|
656 | <A NAME="setView(java.lang.String)"><!-- --></A><H3>
|
---|
657 | setView</H3>
|
---|
658 | <PRE>
|
---|
659 | public void <B>setView</B>(java.lang.String P4View)</PRE>
|
---|
660 | <DL>
|
---|
661 | <DD>The client, branch or label view to operate upon;
|
---|
662 | optional default "//...".
|
---|
663 |
|
---|
664 | the view is required for the following tasks :
|
---|
665 | <ul>
|
---|
666 | <li>p4delete</li>
|
---|
667 | <li>p4edit</li>
|
---|
668 | <li>p4reopen</li>
|
---|
669 | <li>p4resolve</li>
|
---|
670 | </ul>
|
---|
671 | <P>
|
---|
672 | <DD><DL>
|
---|
673 | <DT><B>Parameters:</B><DD><CODE>P4View</CODE> - the view one wants to use</DL>
|
---|
674 | </DD>
|
---|
675 | </DL>
|
---|
676 | <HR>
|
---|
677 |
|
---|
678 | <A NAME="setCmdopts(java.lang.String)"><!-- --></A><H3>
|
---|
679 | setCmdopts</H3>
|
---|
680 | <PRE>
|
---|
681 | public void <B>setCmdopts</B>(java.lang.String P4CmdOpts)</PRE>
|
---|
682 | <DL>
|
---|
683 | <DD>Set extra command options; only used on some
|
---|
684 | of the Perforce tasks.
|
---|
685 | <P>
|
---|
686 | <DD><DL>
|
---|
687 | <DT><B>Parameters:</B><DD><CODE>P4CmdOpts</CODE> - command line options going after the particular
|
---|
688 | Perforce command</DL>
|
---|
689 | </DD>
|
---|
690 | </DL>
|
---|
691 | <HR>
|
---|
692 |
|
---|
693 | <A NAME="setFailonerror(boolean)"><!-- --></A><H3>
|
---|
694 | setFailonerror</H3>
|
---|
695 | <PRE>
|
---|
696 | public void <B>setFailonerror</B>(boolean fail)</PRE>
|
---|
697 | <DL>
|
---|
698 | <DD>whether to stop the build (true, default)
|
---|
699 | or keep going if an error is returned from the p4 command
|
---|
700 | <P>
|
---|
701 | <DD><DL>
|
---|
702 | <DT><B>Parameters:</B><DD><CODE>fail</CODE> - indicates whether one wants to fail the build if an error comes from the
|
---|
703 | Perforce command</DL>
|
---|
704 | </DD>
|
---|
705 | </DL>
|
---|
706 | <HR>
|
---|
707 |
|
---|
708 | <A NAME="init()"><!-- --></A><H3>
|
---|
709 | init</H3>
|
---|
710 | <PRE>
|
---|
711 | public void <B>init</B>()</PRE>
|
---|
712 | <DL>
|
---|
713 | <DD>sets attributes Port, Client, User from properties
|
---|
714 | if these properties are defined.
|
---|
715 | Called automatically by UnknownElement
|
---|
716 | <P>
|
---|
717 | <DD><DL>
|
---|
718 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
719 | </DD>
|
---|
720 | <DD><DL>
|
---|
721 | <DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tools/ant/UnknownElement.html" title="class in org.apache.tools.ant"><CODE><table>
|
---|
722 | <tr><th>Property</th><th>Attribute</th></tr>
|
---|
723 | <tr><td>p4.port</td><td>Port</td></tr>
|
---|
724 | <tr><td>p4.client</td><td>Client</td></tr>
|
---|
725 | <tr><td>p4.user</td><td>User</td></tr>
|
---|
726 | </table></CODE></A></DL>
|
---|
727 | </DD>
|
---|
728 | </DL>
|
---|
729 | <HR>
|
---|
730 |
|
---|
731 | <A NAME="execP4Command(java.lang.String)"><!-- --></A><H3>
|
---|
732 | execP4Command</H3>
|
---|
733 | <PRE>
|
---|
734 | protected void <B>execP4Command</B>(java.lang.String command)
|
---|
735 | throws <A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
736 | <DL>
|
---|
737 | <DD>no usages found for this method
|
---|
738 | runs a Perforce command without a handler
|
---|
739 | <P>
|
---|
740 | <DD><DL>
|
---|
741 | <DT><B>Parameters:</B><DD><CODE>command</CODE> - the command that one wants to execute
|
---|
742 | <DT><B>Throws:</B>
|
---|
743 | <DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if failonerror is set and the command fails</DL>
|
---|
744 | </DD>
|
---|
745 | </DL>
|
---|
746 | <HR>
|
---|
747 |
|
---|
748 | <A NAME="execP4Command(java.lang.String, org.apache.tools.ant.taskdefs.optional.perforce.P4Handler)"><!-- --></A><H3>
|
---|
749 | execP4Command</H3>
|
---|
750 | <PRE>
|
---|
751 | protected void <B>execP4Command</B>(java.lang.String command,
|
---|
752 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Handler.html" title="interface in org.apache.tools.ant.taskdefs.optional.perforce">P4Handler</A> handler)
|
---|
753 | throws <A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
754 | <DL>
|
---|
755 | <DD>Execute P4 command assembled by subclasses.
|
---|
756 | <P>
|
---|
757 | <DD><DL>
|
---|
758 | <DT><B>Parameters:</B><DD><CODE>command</CODE> - The command to run<DD><CODE>handler</CODE> - A P4Handler to process any input and output
|
---|
759 | <DT><B>Throws:</B>
|
---|
760 | <DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if failonerror has been set to true</DL>
|
---|
761 | </DD>
|
---|
762 | </DL>
|
---|
763 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
764 | <HR>
|
---|
765 |
|
---|
766 |
|
---|
767 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
768 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
769 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
770 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
771 | <TR>
|
---|
772 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
773 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
774 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
775 | <TR ALIGN="center" VALIGN="top">
|
---|
776 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
777 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
778 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
779 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
780 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
781 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
782 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
783 | </TR>
|
---|
784 | </TABLE>
|
---|
785 | </TD>
|
---|
786 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
787 | </EM>
|
---|
788 | </TD>
|
---|
789 | </TR>
|
---|
790 |
|
---|
791 | <TR>
|
---|
792 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
793 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Add.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><B>PREV CLASS</B></A>
|
---|
794 | <A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/perforce/P4Change.html" title="class in org.apache.tools.ant.taskdefs.optional.perforce"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
795 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
796 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
797 | <A HREF="P4Base.html" target="_top"><B>NO FRAMES</B></A>
|
---|
798 | <SCRIPT type="text/javascript">
|
---|
799 | <!--
|
---|
800 | if(window==top) {
|
---|
801 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
802 | }
|
---|
803 | //-->
|
---|
804 | </SCRIPT>
|
---|
805 | <NOSCRIPT>
|
---|
806 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
807 | </NOSCRIPT>
|
---|
808 |
|
---|
809 | </FONT></TD>
|
---|
810 | </TR>
|
---|
811 | <TR>
|
---|
812 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
813 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
814 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
815 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
816 | </TR>
|
---|
817 | </TABLE>
|
---|
818 | <A NAME="skip-navbar_bottom"></A>
|
---|
819 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
820 |
|
---|
821 | <HR>
|
---|
822 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
823 | </BODY>
|
---|
824 | </HTML>
|
---|