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.

VAJAntTool.html 24 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="Content-Language" content="en-us">
  6. <title>Visual Age for Java Tasks and Plugin User Manual</title>
  7. </head>
  8. <body>
  9. <h1>Visual Age for Java Tasks and Plugin User Manual</h1>
  10. <a name="authors"></a>by
  11. <ul>
  12. <li>Wolf Siberski
  13. (<a href="mailto:wolf.siberski@tui.de"> wolf.siberski@tui.de</a> )</li>
  14. <li>Christoph Wilhelms
  15. (<a href="mailto:christoph.wilhelms@tui.de"> christoph.wilhelms@tui.de</a>)</li>
  16. </ul>
  17. Version 1.1 - 2001/02/14<br>
  18. <hr>
  19. <h2>Table of Contents</h2>
  20. <ul>
  21. <li><a href="#introduction">Introduction</a></li>
  22. <li><a href="#tasks">The Tasks</a><a href="#introduction"></a></li>
  23. <ul>
  24. <li><a href="#vajload">VAJLoad</a></li>
  25. <li><a href="#vajexport">VAJExport</a></li>
  26. <li><a href="#vajimport">VAJImport</a></li>
  27. </ul>
  28. <li><a href="#sample_buildfile">A sample build file</a><br></li>
  29. <li><a href="#plugin">The Plugin</a></li>
  30. <ul>
  31. <li><a href="#installation">Installation</a></li>
  32. <li><a href="#usage">Usage</a></li>
  33. </ul>
  34. <li><a href="#faq">Frequently Asked Questions</a></li>
  35. <li><a href="#va_versions">Visual Age Versions</a></li>
  36. <li><a href="#history">History</a><a href="#history"></a></li>
  37. </ul>
  38. <hr>
  39. <h2><a name="introduction"></a>Introduction</h2>
  40. Visual Age for Java is a great Java IDE, but it lacks decent
  41. build support; for creating deliveries. On the other hand,
  42. Ant supports the build process very good, but is
  43. (at least at the moment) command line based. So we decided
  44. to write some tasks to access the VAJ repository and
  45. a small visual Ant frontend to make running Ant from VAJ possible.
  46. We use the Tool API to integrate Ant in VisualAge for Java.
  47. In combination with the VAJ tasks (vajload, vajexport, vajimport)
  48. you can load defined defined versions of projects into your workspace,
  49. export the source code, compile it with an external compiler
  50. and build a jar without leaving the IDE. Of course compile
  51. messages are viewed in a logging window. Concluding: This
  52. tool provides decent deployment support VAJ has not (out of the box).<br>
  53. <h2><a name="tasks"></a>The Tasks</h2>
  54. At the moment there are three tasks which help integrating the VAJ repository
  55. contents into an external build process:
  56. <table cellpadding="2" cellspacing="2" border="0" width="500">
  57. <tbody>
  58. <tr valign="Top">
  59. <td valign="Top"><a href="#vajload">VAJLoad</a><br>
  60. </td>
  61. <td valign="Top"> loads specified versions into the workspace<br>
  62. </td>
  63. </tr>
  64. <tr valign="Top">
  65. <td valign="Top"><a href="#vajexport">VAJExport</a><br>
  66. </td>
  67. <td valign="Top"> exports specified packages into the file system<br>
  68. </td>
  69. </tr>
  70. <tr valign="Top">
  71. <td valign="Top"><a href="#vajimport">VAJImport</a><br>
  72. </td>
  73. <td valign="Top"> imports specified files into the workspace<br>
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. These tasks are described in detail below.
  79. <hr>
  80. <h2><a name="vajload"></a>VAJLoad</h2>
  81. <h3>Description:</h3>
  82. <p>Loads a specified VAJ project version into the workspace.</p>
  83. <h3>Parameters</h3>
  84. <p>none</p>
  85. <h3>Parameters specified as nested elements</h3>
  86. <h4>vajproject</h4>
  87. <table border="1" cellpadding="2" cellspacing="0">
  88. <tbody>
  89. <tr>
  90. <td valign="Top"><b>Attribute</b></td>
  91. <td valign="Top"><b>Description</b></td>
  92. <td align="Center" valign="Top"><b>Required</b></td>
  93. </tr>
  94. <tr>
  95. <td valign="Top">name</td>
  96. <td valign="Top">name of the VAJ project to load into the workspace</td>
  97. <td valign="Top" align="Center">yes</td>
  98. </tr>
  99. <tr>
  100. <td valign="Top">version</td>
  101. <td valign="Top">name of the requested version</td>
  102. <td valign="Top" align="Center">yes</td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <h3>Example</h3>
  107. <pre>
  108. &lt;vajload&gt;
  109. &lt;vajproject name="My Testcases" version="1.7beta" /&gt;
  110. &lt;vajproject name="JUnit" version="3.2" /&gt;
  111. &lt;/vajload&gt;
  112. </pre>
  113. <hr>
  114. <h2><a name="vajexport"></a>VAJExport</h2>
  115. <h3>Description:</h3>
  116. <p>Exports Java source files, class files and/or resources from the workspace
  117. to the file system. Exports can be specified by giving the VAJ project
  118. name and package name(s). This works very similar to <a href="index.html#fileset">
  119. FileSets</a>. </p>
  120. <h3>Parameters</h3>
  121. <table border="1" cellpadding="2" cellspacing="0">
  122. <tbody>
  123. <tr>
  124. <td valign="Top"><b>Attribute</b></td>
  125. <td valign="Top"><b>Description</b></td>
  126. <td align="Center" valign="Top"><b>Required</b></td>
  127. </tr>
  128. <tr>
  129. <td valign="Top">destdir</td>
  130. <td valign="Top">location to store the exported files</td>
  131. <td valign="Top" align="Center">yes</td>
  132. </tr>
  133. <tr>
  134. <td valign="Top">exportSources</td>
  135. <td valign="Top">export source files (default: "yes")</td>
  136. <td valign="Top" align="Center">no</td>
  137. </tr>
  138. <tr valign="Top">
  139. <td valign="Top">exportResources</td>
  140. <td valign="Top">export resource files (default: "yes")</td>
  141. <td valign="Top" align="Center">no</td>
  142. </tr>
  143. <tr valign="Top">
  144. <td valign="Top">exportClasses</td>
  145. <td valign="Top">export class files (default: "no")</td>
  146. <td valign="Top" align="Center">no</td>
  147. </tr>
  148. <tr valign="Top">
  149. <td valign="Top">exportDebugInfo</td>
  150. <td valign="Top">include debug info in exported
  151. class files (default: "no")</td>
  152. <td valign="Top" align="Center">no</td>
  153. </tr>
  154. <tr valign="Top">
  155. <td valign="Top">defaultexcludes </td>
  156. <td valign="Top">use default excludes when exporting (default: "yes")
  157. <td valign="Top" align="Center">no</td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. <h3>Parameters specified as nested elements</h3>
  162. <h4>include</h4>
  163. specifies the packages to include into the export
  164. <table border="1" cellpadding="2" cellspacing="0">
  165. <tbody>
  166. <tr>
  167. <td valign="Top"><b>Attribute</b></td>
  168. <td valign="Top"><b>Description</b></td>
  169. <td align="Center" valign="Top"><b>Required</b></td>
  170. </tr>
  171. <tr>
  172. <td valign="Top">name</td>
  173. <td valign="Top">name of the VAJ project and package to export.<br>
  174. The first element of the name must be the project name, <br>
  175. then the package name elements separated by '/'.</td>
  176. <td valign="Top">yes</td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. <h4>exclude</h4>
  181. specifies the packages to exclude from the export<br>
  182. <table border="1" cellpadding="2" cellspacing="0">
  183. <tbody>
  184. <tr>
  185. <td valign="Top"><b>Attribute</b></td>
  186. <td valign="Top"><b>Description</b></td>
  187. <td align="Center" valign="Top"><b>Required</b></td>
  188. </tr>
  189. <tr>
  190. <td valign="Top">name</td>
  191. <td valign="Top">name of the VAJ project/package not to export</td>
  192. <td valign="Top" align="Center">yes</td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <h3>Example</h3>
  197. <pre>
  198. &lt;vajexport destdir="${src.dir}" exportResources="no"&gt;
  199. &lt;include name="MyProject/**"/&gt;
  200. &lt;exclude name="MyProject/test/**"/&gt;
  201. &lt;/vajexport&gt;
  202. </pre>
  203. This example exports all packages in the VAJ project 'MyProject', except
  204. packages starting with 'test'.
  205. <hr>
  206. <h2><a name="vajimport"></a>VAJImport</h2>
  207. <h3>Description:</h3>
  208. <p>Imports Java source files, class files and/or resources from the file
  209. system into VAJ. These imports can be specified with a fileset. </p>
  210. <h3>Parameters</h3>
  211. <table border="1" cellpadding="2" cellspacing="0">
  212. <tbody>
  213. <tr>
  214. <td valign="Top"><b>Attribute</b></td>
  215. <td valign="Top"><b>Description</b></td>
  216. <td align="Center" valign="Top"><b>Required</b></td>
  217. </tr>
  218. <tr>
  219. <td valign="Top">vajProject</td>
  220. <td valign="Top">imported files are added to this VAJ project</td>
  221. <td valign="Top" align="Center">yes</td>
  222. </tr>
  223. <tr>
  224. <td valign="Top">importSources</td>
  225. <td valign="Top">export source files (default: "yes")</td>
  226. <td valign="Top" align="Center">no</td>
  227. </tr>
  228. <tr valign="Top">
  229. <td valign="Top">importResources</td>
  230. <td valign="Top">export resource files (default: "yes")</td>
  231. <td valign="Top" align="Center">no</td>
  232. </tr>
  233. <tr valign="Top">
  234. <td valign="Top">importClasses</td>
  235. <td valign="Top">export class files (default: "no")</td>
  236. <td valign="Top" align="Center">no</td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. <h3>Parameters specified as nested elements</h3>
  241. <h4>fileset</h4>
  242. A <a href="index.html#fileset">FileSet</a> specifies the files to import.
  243. <h3>Example</h3>
  244. <pre>
  245. &lt;vajimport project="Test" importClasses="true"&gt;
  246. &lt;fileset dir="${import.dir}"&gt;
  247. &lt;include name="com/sample/**/*.class"/&gt;
  248. &lt;exclude name="com/sample/test/**"/&gt
  249. &lt;/fileset&gt;
  250. &lt;/vajimport&gt;
  251. </pre>
  252. This example imports all class files in the directory ${import.dir}/com/sample
  253. excluding those in the subdirectory test<br>
  254. <hr>
  255. <h2><a name="sample_buildfile"></a>A sample build file</h2>
  256. This is a sample build file which builds a zip file useful for distribution
  257. of the VAJ plugin. The build file exports a specific version of Ant, compiles
  258. it, extracts necessary helper classes and zips everything together. This
  259. is useful as complete example as well as to deploy Ant in a team where all
  260. developers use VAJ. The resulting zip file must be unzipped in
  261. <tt>&lt;VAJInstallDir&gt;\ide\tools\org-apache-tools-ant</tt>.
  262. For more information see the <a href="#installation">installation</a> section.<br>
  263. <br>
  264. <pre>
  265. &lt;?xml version="1.0"?&gt;
  266. &lt;!-- ======================================================================= --&gt;
  267. &lt;!-- Builds a binary distribution of the VAJ Ant Plugin --&gt;
  268. &lt;!-- ======================================================================= --&gt;
  269. &lt;project name="anttool" default="buildall" basedir="c:\temp\anttool"&gt;
  270. &lt;property name="src.dir" value="${basedir}/src"/&gt;
  271. &lt;property name="zip.dir" value="${basedir}/dist"/&gt;
  272. &lt;property name="build.classes" value="${basedir}/classes"/&gt;
  273. &lt;!-- location of the unzipped Ant source distribution --&gt;
  274. &lt;property name="antdistribution.dir" value="u:\ant-1.3beta1"/&gt;
  275. &lt;!-- VAJ install dir --&gt;
  276. &lt;property name="vaj.dir" value="C:\IBMVJava2"/&gt;
  277. &lt;path id="classpath"&gt;
  278. &lt;pathelement location="${src.dir}"/&gt;
  279. &lt;pathelement location="${vaj.dir}\IDE\project_resources\IBM IDE Utility class libraries" /&gt;
  280. &lt;pathelement location="${build.classes}"/&gt;
  281. &lt;/path&gt;
  282. &lt;!-- =================================================================== --&gt;
  283. &lt;!-- Load Projects into Workspace --&gt;
  284. &lt;!-- =================================================================== --&gt;
  285. &lt;target name="load" description="load projects"&gt;
  286. &lt;vajload&gt;
  287. &lt;project name="Ant" version="1.3"/&gt;
  288. &lt;project name="Apache Oro RegExp" version="2.0.1"/&gt;
  289. &lt;/vajload&gt;
  290. &lt;/target&gt;
  291. &lt;!-- =================================================================== --&gt;
  292. &lt;!-- Creates the build dirs --&gt;
  293. &lt;!-- =================================================================== --&gt;
  294. &lt;target name="preparedirs"&gt;
  295. &lt;mkdir dir="${basedir}"/&gt;
  296. &lt;mkdir dir="${src.dir}"/&gt;
  297. &lt;mkdir dir="${zip.dir}"/&gt;
  298. &lt;mkdir dir="${build.classes}"/&gt;
  299. &lt;/target&gt;
  300. &lt;!-- =================================================================== --&gt;
  301. &lt;!-- Export from VA --&gt;
  302. &lt;!-- =================================================================== --&gt;
  303. &lt;target name="export" depends="preparedirs" description="export projects"&gt;
  304. &lt;mkdir dir="${src.dir}"/&gt;
  305. &lt;!-- Export all Ant sources except optional tasks and the Oro sources --&gt;
  306. &lt;vajexport destdir="${src.dir}"&gt;
  307. &lt;include name="Ant/**"/&gt;
  308. &lt;exclude name="Ant/**/optional/**"/&gt;
  309. &lt;exclude name="Ant/org/apache/tools/ant/gui/**"/&gt;
  310. &lt;include name="Apache Oro*/**"/&gt;
  311. &lt;/vajexport&gt;
  312. &lt;!-- Export selected optional tasks --&gt;
  313. &lt;vajexport destdir="${src.dir}"&gt;
  314. &lt;include name="Ant/org/apache/tools/ant/taskdefs/optional/ide/**"/&gt;
  315. &lt;/vajexport&gt;
  316. &lt;/target&gt;
  317. &lt;!-- =================================================================== --&gt;
  318. &lt;!-- Unzip necessary libraries --&gt;
  319. &lt;!-- =================================================================== --&gt;
  320. &lt;target name="expand"&gt;
  321. &lt;mkdir dir="${build.classes}"/&gt;
  322. &lt;unzip src="${antdistribution.dir}\lib\parser.jar"
  323. dest="${build.classes}"
  324. /&gt;
  325. &lt;unzip src="${antdistribution.dir}\lib\jaxp.jar"
  326. dest="${build.classes}"
  327. /&gt;
  328. &lt;delete dir="${build.classes}\META-INF" /&gt;
  329. &lt;/target&gt;
  330. &lt;!-- =================================================================== --&gt;
  331. &lt;!-- Compile the source code --&gt;
  332. &lt;!-- =================================================================== --&gt;
  333. &lt;target name="compile" depends="expand" description="compile java sources"&gt;
  334. &lt;mkdir dir="${build.classes}"/&gt;
  335. &lt;javac srcdir="${src.dir}"
  336. destdir="${build.classes}"
  337. debug="on"
  338. deprecation="off"
  339. optimize="on" &gt;
  340. &lt;classpath refid="classpath" /&gt;
  341. &lt;include name="org/apache/**"/&gt;
  342. &lt;exclude name="**/JakartaRegexpMatcher.java"/&gt;
  343. &lt;/javac&gt;
  344. &lt;/target&gt;
  345. &lt;!-- =================================================================== --&gt;
  346. &lt;!-- Copy resources and zip everything together --&gt;
  347. &lt;!-- =================================================================== --&gt;
  348. &lt;target name="zip" depends="compile" description="creates zip distribution"&gt;
  349. &lt;copy todir="${build.classes}"&gt;
  350. &lt;fileset dir="${src.dir}"&gt;
  351. &lt;include name="org/apache/**"/&gt;
  352. &lt;exclude name="**/*.java"/&gt;
  353. &lt;/fileset&gt;
  354. &lt;/copy&gt;
  355. &lt;mkdir dir="${build.classes}/doc"/&gt;
  356. &lt;copy todir="${build.classes}/doc" overwrite="yes"&gt;
  357. &lt;fileset dir="${antdistribution.dir}/docs"&gt;
  358. &lt;include name="VAJAnttool.html, toolmenu.gif, anttool1.gif"/&gt;
  359. &lt;/fileset&gt;
  360. &lt;/copy&gt;
  361. &lt;copy file="${antdistribution.dir}/src/main/org/apache/tools/ant/taskdefs/optional/ide/default.ini" todir="${build.classes}" overwrite="yes"/&gt;
  362. &lt;mkdir dir="${zip.dir}"/&gt;
  363. &lt;zip basedir="${build.classes}" zipfile="${zip.dir}/anttool.zip" /&gt;
  364. &lt;/target&gt;
  365. &lt;!-- =================================================================== --&gt;
  366. &lt;!-- Cleans source and class dirs --&gt;
  367. &lt;!-- =================================================================== --&gt;
  368. &lt;target name="clean" depends="preparedirs" description="removes all files from src and build tree"&gt;
  369. &lt;delete&gt;
  370. &lt;fileset dir="${src.dir}"/&gt;
  371. &lt;/delete&gt;
  372. &lt;delete&gt;
  373. &lt;fileset dir="${build.classes}"/&gt;
  374. &lt;/delete&gt;
  375. &lt;delete&gt;
  376. &lt;fileset dir="${zip.dir}"/&gt;
  377. &lt;/delete&gt;
  378. &lt;/target&gt;
  379. &lt;!-- =================================================================== --&gt;
  380. &lt;!-- Cleans the build dir, loads required project versions, exports, --&gt;
  381. &lt;!-- compiles and zips the Plugin --&gt;
  382. &lt;!-- =================================================================== --&gt;
  383. &lt;target name="buildall" depends="clean, load, export, zip" description="build all"&gt;
  384. &lt;/target&gt;
  385. &lt;/project&gt;
  386. </pre>
  387. <hr>
  388. <h2><a name="plugin"></a>The Plugin</h2>
  389. The tasks are usable within VAJ by running the
  390. org.apache.tools.ant.Main class, but this is
  391. quite inconvenient. Therefore a small GUI is
  392. provided which allows selecting a build file
  393. and executing its targets. This Plugin is accessible
  394. from the VAJ Tools menu (see <a href="#usage">Usage</a>).
  395. <hr>
  396. <h2><a name="installation"></a>Installation</h2>
  397. At the moment the installation has it's rough edges. If something
  398. described below doesn't work for You, it's probably not Your fault
  399. but incomplete/wrong instructions. In this case, please contact one
  400. of the <a href="#authors">authors</a>.
  401. We assume <font face="Courier">C:\IBMVJava</font> as VAJ install
  402. directory. If You have installed it elsewhere, adapt the pathes below.
  403. Execute following steps to get the PlugIn up and running:
  404. <ul>
  405. <li>install the Visual Age IDE Tools (via File-&gt;Quick Start-&gt;
  406. Add feature-&gt;'IBM IDE Utility class libraries'
  407. </li>
  408. <li>import an appropriate XML parser to VAJ (we use Xerces 1.2.0 and are
  409. happy with it). Unfortunately the XML parser delivered with VAJ (in
  410. the project 'IBM XML Parser for Java') doesn't work with Ant. You have to
  411. remove that project (temporarily) from the workspace before importing another
  412. XML implementation.
  413. </li>
  414. <li>import the Ant sources into VAJ.</li>
  415. <li>Create the directory <font face="Courier">
  416. C:\IBMVJava\ide\tools\org-apache-tools-ant</font>.
  417. </li>
  418. <li>export the Ant and XML parser class files into this directory. Be sure
  419. to select class files and resources. Sources don't have to be exported.
  420. Some optional tasks have errors and can't be exported when You
  421. don't have the necessary packages in Your workspace (e.g. junit
  422. task, ejbc task). If You need this tasks either import these packages
  423. into VAJ, too, or copy the .class files directly from the binary
  424. distribution.
  425. </li>
  426. <li>copy <font face="Courier">default.ini</font> (in <font face="Courier">
  427. jakarta-ant\src\...\taskdefs\optional\ide</font>) to <font face="Courier">
  428. C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini</font>.
  429. </li>
  430. <li>if you want to access this help from the Workbench, create the
  431. directory <font face="Courier"> C:\IBMVJava\ide\tools\org-apache-tools-ant\doc</font>
  432. and copy the files <font face="Courier">VAJAntTool.html</font>,
  433. <font face="Courier">toolmenu.gif</font> and <font face="Courier">
  434. anttool1.gif</font> to it.
  435. </li>
  436. <li>VAJ has to be restarted to recognize the new tool.</li>
  437. <li>Now if You open the context menu of a project, You should see the entry
  438. 'Ant Build' in the Tools submenu (see <a href="#usage">Usage</a>).
  439. </li>
  440. <li>Make sure the tool works as expected. Now You can remove Ant and the
  441. imported XML parser from Your workspace (and optionally add the
  442. IBM parser again).
  443. </li>
  444. </ul>
  445. <hr>
  446. <h2><a name="usage"></a>Usage</h2>
  447. Beeing sure the tool is installed correctly and your Ant build
  448. file is configured, it is really easy to use.<br>
  449. Go to your Workbench, select the project you want to deploy and
  450. open its context menu. In the submenu <i>Tools</i> you should find
  451. the new entry <i>Ant Build</i>. Klick it to start the tool!
  452. <center><img src="toolmenu.gif" border="0" height="246" width="393"></center>
  453. After a short time this frame should pop up:
  454. <center><img src="anttool1.gif" border="0" height="222" width="389"></center>
  455. This frame contains the following elements:
  456. <ul>
  457. <li>A menubar with some options described later</li>
  458. <li>The name of your selected VAJ project</li>
  459. <li>An entry field for the Ant XML buildfile with a browse [...] button.
  460. The full qualified filename, including the directory is needed here.
  461. </li>
  462. <li>A list with tasks specified in the buildfile. Until your first save
  463. of the build info (described later), this list will be empty. When
  464. loading a build file by the <i>Reload Project</i> button, this list
  465. is filled with all tasks which have a description attribute. The
  466. task you select in this list will be executed when pressing the
  467. <i> Execute Task</i> button.
  468. </li>
  469. <li>A pulldown box for specifying the log level.</li>
  470. <li>Three buttons. Two of them I have already described and the third one
  471. is just the <i>Close </i>button to exit our small tool!
  472. </li>
  473. </ul>
  474. After you have set up your buildprocess you might find it useful
  475. to save the data you've just entered, so we implemented an option to
  476. save it to the repository into your selected project. Make sure that you
  477. have an open edition of your project before selecting
  478. <i>Save BuildInfo To Repository</i> from the <i>File</i> menu.
  479. Now your information is saved to this edition of your project and will
  480. be loaded automatically the next time you start <i>Ant Build</i>.<br>
  481. If you have closed the log window accidentally, it can be reopened
  482. with the <i>Log</i> item in the <i>File</i> menu, and if you want to
  483. know who developed this, just select <i>About</i> in the <i>Help</i> menu.
  484. <hr>
  485. <h2><a name="faq"></a>Frequently Asked Questions</h2>
  486. <p><b>Q: I want to load, export and build more then one Visual Age project
  487. to one jar! How to?</b><br>
  488. A: The VA tasks are able to load and export several Projects all
  489. at once. You can choose whatever project you like for storing the tool
  490. information, it doesn't really matter
  491. </p>
  492. <p><b>Q: When I load my build file, the list of targets is empty. Why?</b><br>
  493. A: You need to add the optional "description" parameter to the targets You
  494. want to come up in the list. Then reload the build file in the "ant build"
  495. tool. We chose to display only targets with description to allow the build
  496. file developer to distinguish between targets for end users and helper targets.
  497. </p>
  498. <p><b>Q: Is there a sample build file available? </b><br>
  499. A: Now You can find an <a href="#sample_buildfile">example</a> in this manual
  500. </p>
  501. <p><b>Q: Why does it export my entire workspace when I've already implicitly
  502. selected a project when starting the Tool?</b><br>
  503. A: This selection does not carry into the buildfile you are using. Set the
  504. Project name at the beginning of the "includes" parameter.
  505. </p>
  506. <p><b>Q: When I import Ant into my Workspace, I get Problems reported. Can I
  507. ignore them?</b><br>
  508. A: It depends on the problems reported, and what you want to do with Ant.
  509. Problems you can't ignore:
  510. <ul>
  511. <li>Classes from javax.xml.parser missing - install a compatible parser
  512. (see <a href="#installation">installation</a>)
  513. </li>
  514. <li>Classes from com.ibm.ivj.util missing - install the Visual Age IDE
  515. Utility feature (see <a href="#installation">installation</a>).
  516. </li>
  517. </ul>
  518. </p>
  519. <p><b>Q: Why is the task name vajload when the class is called VAJLoadProjects?</b><br>
  520. A: At the moment this task can load only project versions. This is reflected
  521. by the class name. It may be extended to load package and class versions,
  522. too, and we didn't want to let these extensions affect the build files. Therefore
  523. we chose the more general name vajload as task name.
  524. </p>
  525. <p><b>Q: I want to use the same buildfile both within Visual Age and from the
  526. command line using my regular Ant environment. What do I need to be aware
  527. of?</b><br>
  528. A: The three Visual Age Tasks won't work when executing Ant from the command
  529. line.
  530. </p>
  531. <p><b>Q: How do I control the import/export of sourcefiles, compiled files and
  532. project resources explicity?</b><br>
  533. A: Via the Boolean values exportClasses (default false) exportSources (default
  534. true) and exportResources (default true). In some situations, Resources are
  535. not exported correctly without this being explicity set.
  536. </p>
  537. <hr>
  538. <h2><a name="known_problems"></a>Known Problems</h2>
  539. <ul>
  540. <li>Exporting a package containing just resources doesn't work. This is
  541. a VAJ Tool API bug. Workaround: create a dummy class and set 'exportSources'
  542. to false.
  543. </li>
  544. </ul>
  545. <hr>
  546. <h2><a name="va_versions"></a>VisualAge for Java Versions</h2>
  547. This tool integration has been tested with versions 3.02 and 3.5
  548. of VisualAge for Java. It should run with the 2.x Versions, too, but
  549. we didn't try. The graphical user interface is build with AWT so it is
  550. JDK independent by now.
  551. <hr>
  552. <h2><a name="history"></a>History</h2>
  553. <table cellpadding="2" cellspacing="2" border="1" width="400">
  554. <tbody>
  555. <tr valign="Top">
  556. <td valign="Top">1.0</td>
  557. <td valign="Top">2000/09/11</td>
  558. <td valign="Top">Initial Version</td>
  559. </tr>
  560. <tr valign="Top">
  561. <td valign="Top">1.1</td>
  562. <td valign="Top">2001/02/14</td>
  563. <td valign="Top">Added Task documentation and more FAQs (thanks to
  564. Richard Bourke for the FAQ additions)
  565. </td>
  566. </tr>
  567. </tbody>
  568. </table>
  569. <hr>
  570. <center>Copyright &copy; 2001 Apache Software Foundation. All rights Reserved.</center>
  571. </body>
  572. </html>