You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rpm.html 3.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  18. <title>Rpm Task</title>
  19. </head>
  20. <body>
  21. <h2><a name="rpm">Rpm</a></h2>
  22. <h3>Description</h3>
  23. <p>
  24. A basic task for invoking the rpm executable to build a Linux installation
  25. file. The task currently only works on Linux or other Unix platforms
  26. with rpm support.
  27. </p>
  28. <h3>Parameters</h3>
  29. <table border="1" cellpadding="2" cellspacing="0">
  30. <tr>
  31. <td valign="top"><b>Attribute</b></td>
  32. <td valign="top"><b>Description</b></td>
  33. <td align="center" valign="top"><b>Required</b></td>
  34. </tr>
  35. <tr>
  36. <td valign="top">specFile</td>
  37. <td valign="top">The name of the spec file to be used.</td>
  38. <td valign="top" align="center">Yes</td>
  39. </tr>
  40. <tr>
  41. <td valign="top">topDir</td>
  42. <td valign="top">
  43. This is the directory which will have the expected
  44. subdirectories, SPECS, SOURCES, BUILD, SRPMS. If this isn't specified,
  45. the baseDir value is used
  46. </td>
  47. <td valign="top" align="center">No</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">cleanBuildDir</td>
  51. <td valign="top">This will remove the generated files in the BUILD
  52. directory.</td>
  53. <td align="center" valign="top">No</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">removeSpec</td>
  57. <td valign="top">This will remove the spec file from SPECS</td>
  58. <td align="center" valign="top">No</td>
  59. </tr>
  60. <tr>
  61. <td valign="top">removeSource</td>
  62. <td valign="top">Flag (optional, default=false)
  63. to remove the sources after the build.
  64. See the the <tt>--rmsource</tt> option of rpmbuild.</td>
  65. <td align="center" valign="top">No</td>
  66. </tr>
  67. <tr>
  68. <td valign="top">rpmBuildCommand</td>
  69. <td valign="top">The executable to use for building the RPM.
  70. Defaults to <code>rpmbuild</code> if it can be found or
  71. <code>rpm</code> otherwise. Set this if you don't have either on
  72. your PATH or want to use a different executable. <em>Since Ant
  73. 1.6</em>.</td>
  74. <td valign="top" align="center">No</td>
  75. </tr>
  76. <tr>
  77. <td valign="top">command</td>
  78. <td valign="top">Very similar idea to the cvs task. the default is "-bb"</td>
  79. <td align="center" valign="top">No</td>
  80. </tr>
  81. <tr>
  82. <td valign="top">quiet</td>
  83. <td valign="top">Suppress output. Defaults to false.</td>
  84. <td align="center" valign="top">No</td>
  85. </tr>
  86. <tr>
  87. <td valign="top">output/error</td>
  88. <td valign="top">Where standard output and error go</td>
  89. <td align="center" valign="top">No</td>
  90. </tr>
  91. <tr>
  92. <td valign="top">failOnError</td>
  93. <td valign="top">Stop the buildprocess if the RPM build command exits with
  94. a non-zero retuncode. Defaults to false</td>
  95. <td align="center" valign="top">No</td>
  96. </tr>
  97. </table>
  98. </body>
  99. </html>