source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/build/javadocs/org/apache/tools/ant/taskdefs/optional/Rpm.html@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 26.9 KB
Line 
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:24 NZST 2007 -->
6<TITLE>
7Rpm (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.Rpm class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="Rpm (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>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Script.html" title="class in org.apache.tools.ant.taskdefs.optional"><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> &nbsp;
56&nbsp;<A HREF="Rpm.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
84org.apache.tools.ant.taskdefs.optional</FONT>
85<BR>
86Class Rpm</H2>
87<PRE>
88java.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.Rpm</B>
92</PRE>
93<HR>
94<DL>
95<DT>public class <B>Rpm</B><DT>extends <A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
96
97<P>
98Invokes the rpm tool to build a Linux installation file.
99<P>
100
101<P>
102<HR>
103
104<P>
105<!-- ======== NESTED CLASS SUMMARY ======== -->
106
107
108<!-- =========== FIELD SUMMARY =========== -->
109
110<A NAME="field_summary"><!-- --></A>
111<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113<TD COLSPAN=2><FONT SIZE="+2">
114<B>Field Summary</B></FONT></TD>
115</TR>
116</TABLE>
117&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
120<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>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<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>
124</TR>
125</TABLE>
126&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
129<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>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD><CODE><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
133</TR>
134</TABLE>
135&nbsp;
136<!-- ======== CONSTRUCTOR SUMMARY ======== -->
137
138<A NAME="constructor_summary"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141<TD COLSPAN=2><FONT SIZE="+2">
142<B>Constructor Summary</B></FONT></TD>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#Rpm()">Rpm</A></B>()</CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149</TR>
150</TABLE>
151&nbsp;
152<!-- ========== METHOD SUMMARY =========== -->
153
154<A NAME="method_summary"><!-- --></A>
155<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157<TD COLSPAN=2><FONT SIZE="+2">
158<B>Method Summary</B></FONT></TD>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>&nbsp;void</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#execute()">execute</A></B>()</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute the task</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>protected &nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs">Execute</A></CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#getExecute(org.apache.tools.ant.types.Commandline, org.apache.tools.ant.taskdefs.ExecuteStreamHandler)">getExecute</A></B>(<A HREF="../../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A>&nbsp;toExecute,
172 <A HREF="../../../../../../org/apache/tools/ant/taskdefs/ExecuteStreamHandler.html" title="interface in org.apache.tools.ant.taskdefs">ExecuteStreamHandler</A>&nbsp;streamhandler)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
180<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#guessRpmBuildCommand()">guessRpmBuildCommand</A></B>()</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether <code>rpmbuild</code> is on the PATH and returns
184 the absolute path to it - falls back to <code>rpm</code>
185 otherwise.</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;void</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setCleanBuildDir(boolean)">setCleanBuildDir</A></B>(boolean&nbsp;cbd)</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag (optional, default=false) to remove
194 the generated files in the BUILD directory</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>&nbsp;void</CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setCommand(java.lang.String)">setCommand</A></B>(java.lang.String&nbsp;c)</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;What command to issue to the rpm build tool; optional.</TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>&nbsp;void</CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setError(java.io.File)">setError</A></B>(java.io.File&nbsp;error)</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optional file to save stderr to</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;void</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setFailOnError(boolean)">setFailOnError</A></B>(boolean&nbsp;value)</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <code>true</code>, stop the build process when the rpmbuild command
219 exits with an error status.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>&nbsp;void</CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setOutput(java.io.File)">setOutput</A></B>(java.io.File&nbsp;output)</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optional file to save stdout to.</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;void</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setQuiet(boolean)">setQuiet</A></B>(boolean&nbsp;value)</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, output from the RPM build command will only be logged to DEBUG.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;void</CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setRemoveSource(boolean)">setRemoveSource</A></B>(boolean&nbsp;rs)</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag (optional, default=false)
244 to remove the sources after the build.</TD>
245</TR>
246<TR BGCOLOR="white" CLASS="TableRowColor">
247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248<CODE>&nbsp;void</CODE></FONT></TD>
249<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setRemoveSpec(boolean)">setRemoveSpec</A></B>(boolean&nbsp;rs)</CODE>
250
251<BR>
252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag (optional, default=false) to remove the spec file from SPECS</TD>
253</TR>
254<TR BGCOLOR="white" CLASS="TableRowColor">
255<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256<CODE>&nbsp;void</CODE></FONT></TD>
257<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setRpmBuildCommand(java.lang.String)">setRpmBuildCommand</A></B>(java.lang.String&nbsp;c)</CODE>
258
259<BR>
260&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The executable to run when building; optional.</TD>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264<CODE>&nbsp;void</CODE></FONT></TD>
265<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setSpecFile(java.lang.String)">setSpecFile</A></B>(java.lang.String&nbsp;sf)</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of the spec File to use; required.</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>&nbsp;void</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Rpm.html#setTopDir(java.io.File)">setTopDir</A></B>(java.io.File&nbsp;td)</CODE>
274
275<BR>
276&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The directory which will have the expected
277 subdirectories, SPECS, SOURCES, BUILD, SRPMS ; optional.</TD>
278</TR>
279</TABLE>
280&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
281<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
282<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
283<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>
284</TR>
285<TR BGCOLOR="white" CLASS="TableRowColor">
286<TD><CODE><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#init()">init</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>
287</TR>
288</TABLE>
289&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
290<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
291<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
292<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>
293</TR>
294<TR BGCOLOR="white" CLASS="TableRowColor">
295<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>
296</TR>
297</TABLE>
298&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
299<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
300<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
301<TD><B>Methods inherited from class java.lang.Object</B></TD>
302</TR>
303<TR BGCOLOR="white" CLASS="TableRowColor">
304<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
305</TR>
306</TABLE>
307&nbsp;
308<P>
309
310<!-- ============ FIELD DETAIL =========== -->
311
312
313<!-- ========= CONSTRUCTOR DETAIL ======== -->
314
315<A NAME="constructor_detail"><!-- --></A>
316<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
317<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
318<TD COLSPAN=1><FONT SIZE="+2">
319<B>Constructor Detail</B></FONT></TD>
320</TR>
321</TABLE>
322
323<A NAME="Rpm()"><!-- --></A><H3>
324Rpm</H3>
325<PRE>
326public <B>Rpm</B>()</PRE>
327<DL>
328</DL>
329
330<!-- ============ METHOD DETAIL ========== -->
331
332<A NAME="method_detail"><!-- --></A>
333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
334<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
335<TD COLSPAN=1><FONT SIZE="+2">
336<B>Method Detail</B></FONT></TD>
337</TR>
338</TABLE>
339
340<A NAME="execute()"><!-- --></A><H3>
341execute</H3>
342<PRE>
343public void <B>execute</B>()
344 throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
345<DL>
346<DD>Execute the task
347<P>
348<DD><DL>
349<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
350</DD>
351<DD><DL>
352
353<DT><B>Throws:</B>
354<DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - is there is a problem in the task execution.</DL>
355</DD>
356</DL>
357<HR>
358
359<A NAME="setTopDir(java.io.File)"><!-- --></A><H3>
360setTopDir</H3>
361<PRE>
362public void <B>setTopDir</B>(java.io.File&nbsp;td)</PRE>
363<DL>
364<DD>The directory which will have the expected
365 subdirectories, SPECS, SOURCES, BUILD, SRPMS ; optional.
366 If this isn't specified,
367 the <tt>baseDir</tt> value is used
368<P>
369<DD><DL>
370<DT><B>Parameters:</B><DD><CODE>td</CODE> - the directory containing the normal RPM directories.</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="setCommand(java.lang.String)"><!-- --></A><H3>
376setCommand</H3>
377<PRE>
378public void <B>setCommand</B>(java.lang.String&nbsp;c)</PRE>
379<DL>
380<DD>What command to issue to the rpm build tool; optional.
381 The default is "-bb"
382<P>
383<DD><DL>
384</DL>
385</DD>
386</DL>
387<HR>
388
389<A NAME="setSpecFile(java.lang.String)"><!-- --></A><H3>
390setSpecFile</H3>
391<PRE>
392public void <B>setSpecFile</B>(java.lang.String&nbsp;sf)</PRE>
393<DL>
394<DD>The name of the spec File to use; required.
395<P>
396<DD><DL>
397</DL>
398</DD>
399</DL>
400<HR>
401
402<A NAME="setCleanBuildDir(boolean)"><!-- --></A><H3>
403setCleanBuildDir</H3>
404<PRE>
405public void <B>setCleanBuildDir</B>(boolean&nbsp;cbd)</PRE>
406<DL>
407<DD>Flag (optional, default=false) to remove
408 the generated files in the BUILD directory
409<P>
410<DD><DL>
411</DL>
412</DD>
413</DL>
414<HR>
415
416<A NAME="setRemoveSpec(boolean)"><!-- --></A><H3>
417setRemoveSpec</H3>
418<PRE>
419public void <B>setRemoveSpec</B>(boolean&nbsp;rs)</PRE>
420<DL>
421<DD>Flag (optional, default=false) to remove the spec file from SPECS
422<P>
423<DD><DL>
424</DL>
425</DD>
426</DL>
427<HR>
428
429<A NAME="setRemoveSource(boolean)"><!-- --></A><H3>
430setRemoveSource</H3>
431<PRE>
432public void <B>setRemoveSource</B>(boolean&nbsp;rs)</PRE>
433<DL>
434<DD>Flag (optional, default=false)
435 to remove the sources after the build.
436 See the <tt>--rmsource</tt> option of rpmbuild.
437<P>
438<DD><DL>
439</DL>
440</DD>
441</DL>
442<HR>
443
444<A NAME="setOutput(java.io.File)"><!-- --></A><H3>
445setOutput</H3>
446<PRE>
447public void <B>setOutput</B>(java.io.File&nbsp;output)</PRE>
448<DL>
449<DD>Optional file to save stdout to.
450<P>
451<DD><DL>
452</DL>
453</DD>
454</DL>
455<HR>
456
457<A NAME="setError(java.io.File)"><!-- --></A><H3>
458setError</H3>
459<PRE>
460public void <B>setError</B>(java.io.File&nbsp;error)</PRE>
461<DL>
462<DD>Optional file to save stderr to
463<P>
464<DD><DL>
465</DL>
466</DD>
467</DL>
468<HR>
469
470<A NAME="setRpmBuildCommand(java.lang.String)"><!-- --></A><H3>
471setRpmBuildCommand</H3>
472<PRE>
473public void <B>setRpmBuildCommand</B>(java.lang.String&nbsp;c)</PRE>
474<DL>
475<DD>The executable to run when building; optional.
476 The default is <code>rpmbuild</code>.
477<P>
478<DD><DL>
479<DT><B>Parameters:</B><DD><CODE>c</CODE> - the rpm build executable<DT><B>Since:</B></DT>
480 <DD>Ant 1.6</DD>
481</DL>
482</DD>
483</DL>
484<HR>
485
486<A NAME="setFailOnError(boolean)"><!-- --></A><H3>
487setFailOnError</H3>
488<PRE>
489public void <B>setFailOnError</B>(boolean&nbsp;value)</PRE>
490<DL>
491<DD>If <code>true</code>, stop the build process when the rpmbuild command
492 exits with an error status.
493<P>
494<DD><DL>
495<DT><B>Parameters:</B><DD><CODE>value</CODE> - <code>true</code> if it should halt, otherwise
496 <code>false</code>. The default is <code>false</code>.<DT><B>Since:</B></DT>
497 <DD>Ant 1.6.3</DD>
498</DL>
499</DD>
500</DL>
501<HR>
502
503<A NAME="setQuiet(boolean)"><!-- --></A><H3>
504setQuiet</H3>
505<PRE>
506public void <B>setQuiet</B>(boolean&nbsp;value)</PRE>
507<DL>
508<DD>If true, output from the RPM build command will only be logged to DEBUG.
509<P>
510<DD><DL>
511<DT><B>Parameters:</B><DD><CODE>value</CODE> - <code>false</code> if output should be logged, otherwise
512 <code>true</code>. The default is <code>false</code>.<DT><B>Since:</B></DT>
513 <DD>Ant 1.6.3</DD>
514</DL>
515</DD>
516</DL>
517<HR>
518
519<A NAME="guessRpmBuildCommand()"><!-- --></A><H3>
520guessRpmBuildCommand</H3>
521<PRE>
522protected java.lang.String <B>guessRpmBuildCommand</B>()</PRE>
523<DL>
524<DD>Checks whether <code>rpmbuild</code> is on the PATH and returns
525 the absolute path to it - falls back to <code>rpm</code>
526 otherwise.
527<P>
528<DD><DL>
529<DT><B>Since:</B></DT>
530 <DD>1.6</DD>
531</DL>
532</DD>
533</DL>
534<HR>
535
536<A NAME="getExecute(org.apache.tools.ant.types.Commandline, org.apache.tools.ant.taskdefs.ExecuteStreamHandler)"><!-- --></A><H3>
537getExecute</H3>
538<PRE>
539protected <A HREF="../../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs">Execute</A> <B>getExecute</B>(<A HREF="../../../../../../org/apache/tools/ant/types/Commandline.html" title="class in org.apache.tools.ant.types">Commandline</A>&nbsp;toExecute,
540 <A HREF="../../../../../../org/apache/tools/ant/taskdefs/ExecuteStreamHandler.html" title="interface in org.apache.tools.ant.taskdefs">ExecuteStreamHandler</A>&nbsp;streamhandler)</PRE>
541<DL>
542<DD><DL>
543<DT><B>Since:</B></DT>
544 <DD>Ant 1.6.3</DD>
545</DL>
546</DD>
547</DL>
548<!-- ========= END OF CLASS DATA ========= -->
549<HR>
550
551
552<!-- ======= START OF BOTTOM NAVBAR ====== -->
553<A NAME="navbar_bottom"><!-- --></A>
554<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
555<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
556<TR>
557<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
558<A NAME="navbar_bottom_firstrow"><!-- --></A>
559<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
560 <TR ALIGN="center" VALIGN="top">
561 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
562 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
563 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
564 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
565 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
566 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
567 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
568 </TR>
569</TABLE>
570</TD>
571<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
572</EM>
573</TD>
574</TR>
575
576<TR>
577<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
578&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>PREV CLASS</B></A>&nbsp;
579&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Script.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>NEXT CLASS</B></A></FONT></TD>
580<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
581 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
582&nbsp;<A HREF="Rpm.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
583&nbsp;<SCRIPT type="text/javascript">
584 <!--
585 if(window==top) {
586 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
587 }
588 //-->
589</SCRIPT>
590<NOSCRIPT>
591 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
592</NOSCRIPT>
593
594</FONT></TD>
595</TR>
596<TR>
597<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
598 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
599<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
600DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
601</TR>
602</TABLE>
603<A NAME="skip-navbar_bottom"></A>
604<!-- ======== END OF BOTTOM NAVBAR ======= -->
605
606<HR>
607Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
608</BODY>
609</HTML>
Note: See TracBrowser for help on using the repository browser.