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.

icontract.html 3.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="icontract">icontract</a></h2>
  8. <h3>Description</h3>
  9. <p>Instruments Java classes with <a href="http://www.reliable-systems.com/tools/">iContract</a>
  10. DBC preprocessor.
  11. <h3>Parameters</h3>
  12. <table border="1" cellpadding="2" cellspacing="0">
  13. <tr>
  14. <td valign="top"><b>Attribute</b></td>
  15. <td valign="top"><b>Description</b></td>
  16. <td align="center" valign="top"><b>Required</b></td>
  17. </tr>
  18. <tr>
  19. <td valign="top">srcdir</td>
  20. <td valign="top">Location of the java files</td>
  21. <td valign="top" align="center">Yes</td>
  22. </tr>
  23. <tr>
  24. <td valign="top">instrumentdir</td>
  25. <td valign="top">Indicates where the instrumented java and class files
  26. should go</td>
  27. <td valign="top" align="center">Yes</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">repositorydir</td>
  31. <td valign="top">Indicates where the repository java and class files should
  32. go</td>
  33. <td valign="top" align="center">Yes</td>
  34. </tr>
  35. <tr>
  36. <td valign="top">pre</td>
  37. <td valign="top">Indicates whether or not to instrument for preconditions.
  38. Defaults to <code>true</code></td>
  39. <td valign="top" align="center">No</td>
  40. </tr>
  41. <tr>
  42. <td valign="top">post</td>
  43. <td valign="top">Indicates whether or not to instrument for postconditions.
  44. Defaults to <code>true</code></td>
  45. <td valign="top" align="center">No</td>
  46. </tr>
  47. <tr>
  48. <td valign="top">invariant</td>
  49. <td valign="top">Indicates whether or not to instrument for invariants.
  50. Defaults to <code>true</code></td>
  51. <td valign="top" align="center">No</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">failthrowable</td>
  55. <td valign="top">The full name of the Throwable (Exception) that should be
  56. thrown when an assertion is violated. Defaults to <code>java.lang.Error</code></td>
  57. <td valign="top" align="center">No</td>
  58. </tr>
  59. <tr>
  60. <td valign="top">controlfile</td>
  61. <td valign="top">The name of the control file to pass to iContract. Default
  62. is to not pass a file</td>
  63. <td valign="top" align="center">No</td>
  64. </tr>
  65. <tr>
  66. <td valign="top">verbosity</td>
  67. <td valign="top">Indicates the verbosity level of iContract. Any combination
  68. of error*,warning*,note*,info*,progress*,debug* (comma separated) can be
  69. used. Defaults to <code>error*,warning*</code></td>
  70. <td valign="top" align="center">No</td>
  71. </tr>
  72. </table>
  73. <p/>
  74. <b>Note:</b> iContract will use the java compiler indicated by the project's
  75. <code>build.compiler</code> property. See documentation for the Javac task for
  76. more information.
  77. <p><b>Example:</b></p>
  78. <pre>
  79. &lt;!-- =================================================================== -->
  80. &lt;!-- Instruments source codes with iContract -->
  81. &lt;!-- =================================================================== -->
  82. &lt;target name="instrument" depends="compile">
  83. &lt;icontract
  84. srcdir="${build.src}"
  85. instrumentdir="${instrumented.dir}"
  86. repositorydir="${repository.dir}"
  87. >
  88. &lt;classpath>
  89. &lt;fileset dir="./lib">
  90. &lt;include name="*.jar"/>
  91. &lt;/fileset>
  92. &lt;/classpath>
  93. &lt;/icontract>
  94. &lt;/target>
  95. </pre>
  96. <hr>
  97. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  98. Reserved.</p>
  99. </body>
  100. </html>