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.

jsharp.html 19 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Jsharp
  5. Task</title>
  6. </head>
  7. <body bgcolor="#ffffff" text="#000000" link="#525D76"
  8. alink="#525D76" vlink="#525D76">
  9. <table border="0" width="100%" cellspacing="4">
  10. <!-- PAGE HEADER -->
  11. <tr>
  12. <td>
  13. <table border="0" width="100%"><tr>
  14. <td valign="bottom">
  15. <font size="+3" face="arial,helvetica,sanserif"><strong>Jsharp
  16. Task</strong></font>
  17. <br><font face="arial,helvetica,sanserif">Compile J# source down to a managed .NET application.</font>
  18. </td>
  19. <td>
  20. <!-- PROJECT LOGO -->
  21. <a href="http://ant.apache.org/">
  22. <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/>
  23. </a>
  24. </td>
  25. </tr></table>
  26. </td>
  27. </tr>
  28. <!-- START RIGHT SIDE MAIN BODY -->
  29. <tr>
  30. <td valign="top" align="left">
  31. <!-- Applying task/long-description -->
  32. <!-- Start Description -->
  33. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  34. <tr><td>&nbsp;</td></tr>
  35. <tr><td bgcolor="#525D76">
  36. <font color="#ffffff" face="arial,helvetica.sanserif">
  37. <a name="description">
  38. <strong>Description</strong></a></font>
  39. </td></tr>
  40. <tr><td><blockquote>
  41. Compile J# source down to a managed .NET application. <p> J# is not Java. But it is the language closest to Java in the .NET framework. This task compiles jsharp source (.java files), and generates a .NET managed exe or dll. <p>
  42. </blockquote></td></tr>
  43. </table>
  44. <!-- End Description -->
  45. <!-- Start Attributes -->
  46. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  47. <tr><td>&nbsp;</td></tr>
  48. <tr><td bgcolor="#525D76">
  49. <font color="#ffffff" face="arial,helvetica.sanserif">
  50. <a name="attributes">
  51. <strong>Parameters</strong></a></font>
  52. </td></tr>
  53. <tr><td><blockquote>
  54. <table>
  55. <tr>
  56. <td bgcolor="#cccccc" valign="top" align="left">
  57. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  58. </td>
  59. <td bgcolor="#cccccc" valign="top" align="left">
  60. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  61. </td>
  62. <td bgcolor="#cccccc" valign="top" align="left">
  63. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  64. </td>
  65. <td bgcolor="#cccccc" valign="top" align="left">
  66. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  67. </td>
  68. </tr>
  69. <!-- Attribute Group -->
  70. <!-- Attribute Group -->
  71. <!-- Attribute -->
  72. <tr>
  73. <td bgcolor="#eeeeee" valign="top" align="left">
  74. <font color="#000000" size="-1" face="arial,helvetica,sanserif">additionalmodules</font>
  75. </td>
  76. <td bgcolor="#eeeeee" valign="top" align="left">
  77. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Semicolon separated list of modules to refer to.</font>
  78. </td>
  79. <td bgcolor="#eeeeee" valign="top" align="left">
  80. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  81. </td>
  82. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="21">
  83. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  84. </td>
  85. </tr>
  86. <!-- Attribute -->
  87. <tr>
  88. <td bgcolor="#eeeeee" valign="top" align="left">
  89. <font color="#000000" size="-1" face="arial,helvetica,sanserif">baseaddress</font>
  90. </td>
  91. <td bgcolor="#eeeeee" valign="top" align="left">
  92. <font color="#000000" size="-1" face="arial,helvetica,sanserif"></font>
  93. </td>
  94. <td bgcolor="#eeeeee" valign="top" align="left">
  95. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  96. </td>
  97. </tr>
  98. <!-- Attribute -->
  99. <tr>
  100. <td bgcolor="#eeeeee" valign="top" align="left">
  101. <font color="#000000" size="-1" face="arial,helvetica,sanserif">debug</font>
  102. </td>
  103. <td bgcolor="#eeeeee" valign="top" align="left">
  104. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the debug flag on or off.</font>
  105. </td>
  106. <td bgcolor="#eeeeee" valign="top" align="left">
  107. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  108. </td>
  109. </tr>
  110. <!-- Attribute -->
  111. <tr>
  112. <td bgcolor="#eeeeee" valign="top" align="left">
  113. <font color="#000000" size="-1" face="arial,helvetica,sanserif">destdir</font>
  114. </td>
  115. <td bgcolor="#eeeeee" valign="top" align="left">
  116. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the destination directory of files to be compiled.</font>
  117. </td>
  118. <td bgcolor="#eeeeee" valign="top" align="left">
  119. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  120. </td>
  121. </tr>
  122. <!-- Attribute -->
  123. <tr>
  124. <td bgcolor="#eeeeee" valign="top" align="left">
  125. <font color="#000000" size="-1" face="arial,helvetica,sanserif">destfile</font>
  126. </td>
  127. <td bgcolor="#eeeeee" valign="top" align="left">
  128. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the name of exe/library to create.</font>
  129. </td>
  130. <td bgcolor="#eeeeee" valign="top" align="left">
  131. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  132. </td>
  133. </tr>
  134. <!-- Attribute -->
  135. <tr>
  136. <td bgcolor="#eeeeee" valign="top" align="left">
  137. <font color="#000000" size="-1" face="arial,helvetica,sanserif">executable</font>
  138. </td>
  139. <td bgcolor="#eeeeee" valign="top" align="left">
  140. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the name of the program, overriding the defaults. Can be used to set the full path to a program, or to switch to an alternate implementation of the command, such as the Mono or Rotor versions -provided they use the same command line arguments as the .NET framework edition</font>
  141. </td>
  142. <td bgcolor="#eeeeee" valign="top" align="left">
  143. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  144. </td>
  145. </tr>
  146. <!-- Attribute -->
  147. <tr>
  148. <td bgcolor="#eeeeee" valign="top" align="left">
  149. <font color="#000000" size="-1" face="arial,helvetica,sanserif">extraoptions</font>
  150. </td>
  151. <td bgcolor="#eeeeee" valign="top" align="left">
  152. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Any extra options which are not explicitly supported by this task.</font>
  153. </td>
  154. <td bgcolor="#eeeeee" valign="top" align="left">
  155. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  156. </td>
  157. </tr>
  158. <!-- Attribute -->
  159. <tr>
  160. <td bgcolor="#eeeeee" valign="top" align="left">
  161. <font color="#000000" size="-1" face="arial,helvetica,sanserif">failonerror</font>
  162. </td>
  163. <td bgcolor="#eeeeee" valign="top" align="left">
  164. <font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, fail on compilation errors.</font>
  165. </td>
  166. <td bgcolor="#eeeeee" valign="top" align="left">
  167. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  168. </td>
  169. </tr>
  170. <!-- Attribute -->
  171. <tr>
  172. <td bgcolor="#eeeeee" valign="top" align="left">
  173. <font color="#000000" size="-1" face="arial,helvetica,sanserif">includedefaultreferences</font>
  174. </td>
  175. <td bgcolor="#eeeeee" valign="top" align="left">
  176. <font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, automatically includes the common assemblies in dotnet, and tells the compiler to link in mscore.dll. set the automatic reference inclusion flag on or off this flag controls the /nostdlib option in CSC</font>
  177. </td>
  178. <td bgcolor="#eeeeee" valign="top" align="left">
  179. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  180. </td>
  181. </tr>
  182. <!-- Attribute -->
  183. <tr>
  184. <td bgcolor="#eeeeee" valign="top" align="left">
  185. <font color="#000000" size="-1" face="arial,helvetica,sanserif">mainclass</font>
  186. </td>
  187. <td bgcolor="#eeeeee" valign="top" align="left">
  188. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the name of main class for executables.</font>
  189. </td>
  190. <td bgcolor="#eeeeee" valign="top" align="left">
  191. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  192. </td>
  193. </tr>
  194. <!-- Attribute -->
  195. <tr>
  196. <td bgcolor="#eeeeee" valign="top" align="left">
  197. <font color="#000000" size="-1" face="arial,helvetica,sanserif">optimize</font>
  198. </td>
  199. <td bgcolor="#eeeeee" valign="top" align="left">
  200. <font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, enables optimization flag.</font>
  201. </td>
  202. <td bgcolor="#eeeeee" valign="top" align="left">
  203. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  204. </td>
  205. </tr>
  206. <!-- Attribute -->
  207. <tr>
  208. <td bgcolor="#eeeeee" valign="top" align="left">
  209. <font color="#000000" size="-1" face="arial,helvetica,sanserif">purejava</font>
  210. </td>
  211. <td bgcolor="#eeeeee" valign="top" align="left">
  212. <font color="#000000" size="-1" face="arial,helvetica,sanserif">do we want pure java (default, true) or corrupted J#?</font>
  213. </td>
  214. <td bgcolor="#eeeeee" valign="top" align="left">
  215. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  216. </td>
  217. </tr>
  218. <!-- Attribute -->
  219. <tr>
  220. <td bgcolor="#eeeeee" valign="top" align="left">
  221. <font color="#000000" size="-1" face="arial,helvetica,sanserif">referencefiles</font>
  222. </td>
  223. <td bgcolor="#eeeeee" valign="top" align="left">
  224. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path of references to include. Wildcards should work.</font>
  225. </td>
  226. <td bgcolor="#eeeeee" valign="top" align="left">
  227. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
  228. </td>
  229. </tr>
  230. <!-- Attribute -->
  231. <tr>
  232. <td bgcolor="#eeeeee" valign="top" align="left">
  233. <font color="#000000" size="-1" face="arial,helvetica,sanserif">references</font>
  234. </td>
  235. <td bgcolor="#eeeeee" valign="top" align="left">
  236. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Semicolon separated list of DLLs to refer to.</font>
  237. </td>
  238. <td bgcolor="#eeeeee" valign="top" align="left">
  239. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  240. </td>
  241. </tr>
  242. <!-- Attribute -->
  243. <tr>
  244. <td bgcolor="#eeeeee" valign="top" align="left">
  245. <font color="#000000" size="-1" face="arial,helvetica,sanserif">securescoping</font>
  246. </td>
  247. <td bgcolor="#eeeeee" valign="top" align="left">
  248. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Make package scoped code visible to the current assembly only (default: false) .NET does not have package scoping. Instead it has assembly, private and public. By default, package content is public to all.</font>
  249. </td>
  250. <td bgcolor="#eeeeee" valign="top" align="left">
  251. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  252. </td>
  253. </tr>
  254. <!-- Attribute -->
  255. <tr>
  256. <td bgcolor="#eeeeee" valign="top" align="left">
  257. <font color="#000000" size="-1" face="arial,helvetica,sanserif">srcdir</font>
  258. </td>
  259. <td bgcolor="#eeeeee" valign="top" align="left">
  260. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the source directory of the files to be compiled.</font>
  261. </td>
  262. <td bgcolor="#eeeeee" valign="top" align="left">
  263. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  264. </td>
  265. </tr>
  266. <!-- Attribute -->
  267. <tr>
  268. <td bgcolor="#eeeeee" valign="top" align="left">
  269. <font color="#000000" size="-1" face="arial,helvetica,sanserif">targettype</font>
  270. </td>
  271. <td bgcolor="#eeeeee" valign="top" align="left">
  272. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the target type to one of exe|library|module|winexe</font>
  273. </td>
  274. <td bgcolor="#eeeeee" valign="top" align="left">
  275. <font color="#000000" size="-1" face="arial,helvetica,sanserif">"exe", "library", "module", "winexe"</font>
  276. </td>
  277. </tr>
  278. <!-- Attribute -->
  279. <tr>
  280. <td bgcolor="#eeeeee" valign="top" align="left">
  281. <font color="#000000" size="-1" face="arial,helvetica,sanserif">utf8output</font>
  282. </td>
  283. <td bgcolor="#eeeeee" valign="top" align="left">
  284. <font color="#000000" size="-1" face="arial,helvetica,sanserif">If true, require all compiler output to be in UTF8 format.</font>
  285. </td>
  286. <td bgcolor="#eeeeee" valign="top" align="left">
  287. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  288. </td>
  289. </tr>
  290. <!-- Attribute -->
  291. <tr>
  292. <td bgcolor="#eeeeee" valign="top" align="left">
  293. <font color="#000000" size="-1" face="arial,helvetica,sanserif">warnlevel</font>
  294. </td>
  295. <td bgcolor="#eeeeee" valign="top" align="left">
  296. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Level of warning currently between 1 and 4 with 4 being the strictest.</font>
  297. </td>
  298. <td bgcolor="#eeeeee" valign="top" align="left">
  299. <font color="#000000" size="-1" face="arial,helvetica,sanserif">int</font>
  300. </td>
  301. </tr>
  302. <!-- Attribute -->
  303. <tr>
  304. <td bgcolor="#eeeeee" valign="top" align="left">
  305. <font color="#000000" size="-1" face="arial,helvetica,sanserif">win32icon</font>
  306. </td>
  307. <td bgcolor="#eeeeee" valign="top" align="left">
  308. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the filename of icon to include.</font>
  309. </td>
  310. <td bgcolor="#eeeeee" valign="top" align="left">
  311. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  312. </td>
  313. </tr>
  314. <!-- Attribute -->
  315. <tr>
  316. <td bgcolor="#eeeeee" valign="top" align="left">
  317. <font color="#000000" size="-1" face="arial,helvetica,sanserif">win32res</font>
  318. </td>
  319. <td bgcolor="#eeeeee" valign="top" align="left">
  320. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Sets the filename of a win32 resource (.RES) file to include. This is not a .NET resource, but what Windows is used to.</font>
  321. </td>
  322. <td bgcolor="#eeeeee" valign="top" align="left">
  323. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  324. </td>
  325. </tr>
  326. </table>
  327. </blockquote></td></tr>
  328. </table>
  329. <!-- End Attributes -->
  330. <!-- Start Elements -->
  331. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  332. <tr><td>&nbsp;</td></tr>
  333. <tr><td bgcolor="#525D76">
  334. <font color="#ffffff" face="arial,helvetica.sanserif">
  335. <a name="elements">
  336. <strong>Parameters as nested elements</strong></a></font>
  337. </td></tr>
  338. <tr><td><blockquote>
  339. <!-- Start Element -->
  340. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  341. <tr><td>&nbsp;</td></tr>
  342. <tr><td bgcolor="#828DA6">
  343. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  344. <strong>define</strong> (org.apache.tools.ant.taskdefs.optional.dotnet.DotnetDefine)</font>
  345. </td></tr>
  346. <tr><td><blockquote>
  347. add a define to the list of definitions
  348. <short-description><![CDATA[Add a define to the list of definitions.]]></short-description>
  349. <description>
  350. <![CDATA[add a define to the list of definitions]]>
  351. </description>
  352. </blockquote></td></tr>
  353. </table>
  354. <!-- End Element -->
  355. <!-- Start Element -->
  356. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  357. <tr><td>&nbsp;</td></tr>
  358. <tr><td bgcolor="#828DA6">
  359. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  360. <strong>reference</strong> (org.apache.tools.ant.types.FileSet)</font>
  361. </td></tr>
  362. <tr><td><blockquote>
  363. add a new reference fileset to the compilation
  364. <short-description><![CDATA[Add a new reference fileset to the compilation.]]></short-description>
  365. <description>
  366. <![CDATA[add a new reference fileset to the compilation]]>
  367. </description>
  368. </blockquote></td></tr>
  369. </table>
  370. <!-- End Element -->
  371. <!-- Start Element -->
  372. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  373. <tr><td>&nbsp;</td></tr>
  374. <tr><td bgcolor="#828DA6">
  375. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  376. <strong>resource</strong> (org.apache.tools.ant.taskdefs.optional.dotnet.DotnetResource)</font>
  377. </td></tr>
  378. <tr><td><blockquote>
  379. link or embed a resource
  380. <short-description><![CDATA[Link or embed a resource.]]></short-description>
  381. <description>
  382. <![CDATA[link or embed a resource]]>
  383. </description>
  384. </blockquote></td></tr>
  385. </table>
  386. <!-- End Element -->
  387. <!-- Start Element -->
  388. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  389. <tr><td>&nbsp;</td></tr>
  390. <tr><td bgcolor="#828DA6">
  391. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  392. <strong>src</strong> (org.apache.tools.ant.types.FileSet)</font>
  393. </td></tr>
  394. <tr><td><blockquote>
  395. add a new source directory to the compile
  396. <short-description><![CDATA[Add a new source directory to the compile.]]></short-description>
  397. <description>
  398. <![CDATA[add a new source directory to the compile]]>
  399. </description>
  400. </blockquote></td></tr>
  401. </table>
  402. <!-- End Element -->
  403. </blockquote></td></tr>
  404. </table>
  405. <!-- End Elements -->
  406. </td>
  407. </tr>
  408. <!-- END RIGHT SIDE MAIN BODY -->
  409. <!-- FOOTER SEPARATOR -->
  410. <tr>
  411. <td>
  412. <hr noshade="" size="1"/>
  413. </td>
  414. </tr>
  415. <!-- PAGE FOOTER -->
  416. <tr>
  417. <td>
  418. <div align="center"><font color="#525D76" size="-1"><em>
  419. Copyright &#169; 2000-2003, Apache Software Foundation
  420. </em></font></div>
  421. </td>
  422. </tr>
  423. </table>
  424. </body>
  425. </html>