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 23 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  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<UL>
  11. <LI>Wolf Siberski
  12. (siberski at kbs.uni-hannover.de)
  13. <LI>Christoph Wilhelms
  14. (christoph.wilhelms at tui.de)</LI>
  15. <LI>Martin Landers
  16. (martin.landers at bea.de)</LI>
  17. <LI>Fran�ois Rey
  18. (francois dot rey at capco dot com)</LI></UL>
  19. Version 1.2.1 - 2003/01/16<br>
  20. <hr>
  21. <h2>Table of Contents</H2>
  22. <ul>
  23. <li><A href="#introduction">Introduction</A>
  24. <li><A href="#tasks">The Tasks</A><A href="#introduction"></A>
  25. <ul>
  26. <li><A href="#vajload">VAJLoad</A>
  27. <li><A href="#vajexport">VAJExport</A>
  28. <li><A href="#vajimport">VAJImport</A></LI></UL>
  29. <li><A href="#sample_buildfile">A sample build file</A><br>
  30. <li><A href="#plugin">The Plugin</A>
  31. <ul>
  32. <li><A href="#installation">Installation</A>
  33. <li><A href="#usage">Usage</A> </LI></UL>
  34. <li><A href="#faq">Frequently Asked Questions</A>
  35. <li><A href="#va_versions">Visual Age Versions</A>
  36. <li><A href="#history">History</A><A href="#history"></A> </LI></UL>
  37. <hr>
  38. <h2><a name="introduction"></A>Introduction</H2>
  39. <P>Visual Age for Java is a great Java IDE, but it lacks
  40. decent build support; for creating deliveries. On the other hand, Ant supports
  41. the build process very good, but is (at least at the moment) command line based.
  42. So we decided to write some tasks to access the VAJ repository and a small
  43. visual Ant frontend to make running Ant from VAJ possible. We use the Tool API
  44. to integrate Ant in VisualAge for Java. In combination with the VAJ tasks
  45. (vajload, vajexport, vajimport) you can load defined&nbsp;versions of projects
  46. into your workspace, export the source code, compile it with an external
  47. compiler and build a jar without leaving the IDE. Of course compile messages are
  48. viewed in a logging window. Concluding: This tool provides decent deployment
  49. support VAJ has not (out of the box).</P>
  50. <H3>What's new</H3>
  51. <table cellpadding="2" cellspacing="2" border="0" width="500">
  52. <tr valign="top">
  53. <td valign="top">2003/01/16</TD>
  54. <td valign="top">
  55. <UL>
  56. <LI>Now works outside of VAJ.
  57. <LI>Added attribute haltonerror, "*" and "**" version qualifiers.
  58. <LI>Amended documentation (this file) accordingly.
  59. </LI></UL></TD></TR>
  60. <tr valign="top">
  61. <td valign="top">2001/06/14</TD>
  62. <td valign="top">
  63. <UL>
  64. <LI>Now all tasks can access VAJ via 'Remote Access
  65. To Tool API'. Therefore builds containing VAJ tasks can also be executed
  66. from the command line (Kudos to Glenn McAllister for describing the
  67. concept and providing source code at
  68. <A href="http://www7.software.ibm.com/vad.nsf/Data/Document4366">
  69. http://www7.software.ibm.com/vad.nsf/Data/Document4366</A>.&nbsp;
  70. <LI>It is possible to cancel a running&nbsp;build
  71. executed from the plugin
  72. <LI>Improved error handling in the plugin. Now all
  73. errors should show up either in the log window or in the
  74. console.</LI></UL></TD></TR></TABLE>
  75. <h2><a name="tasks"></A>The Tasks</H2>
  76. At the moment there are three tasks which help integrating the VAJ repository
  77. contents into an external build process:
  78. <table cellpadding="2" cellspacing="2" border="0" width="500">
  79. <tr valign="top">
  80. <td valign="top"><A href="#vajload">VAJLoad</A><br></TD>
  81. <td valign="top"> loads specified versions into the workspace<br></TD></TR>
  82. <tr valign="top">
  83. <td valign="top"><A href="#vajexport">VAJExport</A><br></TD>
  84. <td valign="top"> exports specified packages into the file system<br></TD></TR>
  85. <tr valign="top">
  86. <td valign="top"><A href="#vajimport">VAJImport</A><br></TD>
  87. <td valign="top"> imports specified files into the workspace<br></TD></TR></TABLE>
  88. <P>These tasks are described in detail below.</P>
  89. <hr>
  90. <P></P>
  91. <h2><a name="vajload"></A>VAJLoad</H2>
  92. <h3>Description:</H3>
  93. <p>Loads a specified VAJ project version into the
  94. workspace.</P>
  95. <h3>Parameters</H3>
  96. <table border="1" cellpadding="2" cellspacing="0">
  97. <tr>
  98. <td valign="top"><b>Attribute</B></TD>
  99. <td valign="top"><b>Description</B></TD>
  100. <td align="middle" valign="top"><b>Required</B></TD></TR>
  101. <tr>
  102. <td valign="top">remote</TD>
  103. <td valign="top">
  104. <P>name and port of a remote tool server. (format:
  105. <code>&lt;servername&gt;</code>:<code>&lt;port no&gt;</code>).<BR>If this
  106. attribute is set, the tasks will&nbsp;be executed on the specified tool
  107. server.&nbsp;</P></TD>
  108. <td valign="top" align="middle">no</TD></TR>
  109. <tr>
  110. <td valign="top">haltonerror</B></TD>
  111. <td valign="top">
  112. <P>Stop the build process if an error occurs,
  113. (default: "yes")</P></TD>
  114. <td align="middle" valign="top">no</TD></TR></TABLE>
  115. <h3>Parameters specified as nested elements</H3>
  116. <h4>vajproject</H4>
  117. <table border="1" cellpadding="2" cellspacing="0">
  118. <tr>
  119. <td valign="top"><b>Attribute</B></TD>
  120. <td valign="top"><b>Description</B></TD>
  121. <td align="middle" valign="top"><b>Required</B></TD></TR>
  122. <tr>
  123. <td valign="top">name</TD>
  124. <td valign="top">name of the VAJ project to load into
  125. the workspace</TD>
  126. <td valign="top" align="middle">yes</TD></TR>
  127. <tr>
  128. <td valign="top">version</TD>
  129. <td valign="top"><P>name of the requested version,
  130. or one of the special qualifiers "*" or "**"<BR>
  131. "*" loads the latest <b>versioned</b> edition of the project<BR>
  132. "**" will load the latest version (including open editions)</P></TD>
  133. <td valign="top" align="middle">yes</TD></TR>
  134. </TABLE>
  135. <h3>Example</H3>
  136. <pre>&lt;vajload remote="localhost:32767"&gt;
  137. &lt;vajproject name="My App" version="*"/&gt;
  138. &lt;vajproject name="My Testcases" version="**"/&gt;
  139. &lt;vajproject name="JUnit" version="3.2"/&gt;
  140. &lt;/vajload&gt;
  141. </PRE>
  142. <hr>
  143. <h2><a name="vajexport"></A>VAJExport</H2>
  144. <h3>Description:</H3>
  145. <p>Exports Java source files, class files and/or resources from the workspace
  146. to the file system. Exports can be specified by giving the VAJ project
  147. name and package name(s). This works very similar to
  148. <A href="../CoreTypes/fileset.html">FileSets</A>. </P>
  149. <h3>Parameters</H3>
  150. <table border="1" cellpadding="2" cellspacing="0">
  151. <tr>
  152. <td valign="top"><b>Attribute</B></TD>
  153. <td valign="top"><b>Description</B></TD>
  154. <td align="middle" valign="top"><b>Required</B></TD></TR>
  155. <tr>
  156. <td valign="top">destdir</TD>
  157. <td valign="top">location to store the exported
  158. files</TD>
  159. <td valign="top" align="middle">yes</TD></TR>
  160. <tr>
  161. <td valign="top">exportSources</TD>
  162. <td valign="top">export source files (default:
  163. "yes")</TD>
  164. <td valign="top" align="middle">no</TD></TR>
  165. <tr valign="top">
  166. <td valign="top">exportResources</TD>
  167. <td valign="top">export resource files (default:
  168. "yes")</TD>
  169. <td valign="top" align="middle">no</TD></TR>
  170. <tr valign="top">
  171. <td valign="top">exportClasses</TD>
  172. <td valign="top">export class files (default: "no")</TD>
  173. <td valign="top" align="middle">no</TD></TR>
  174. <tr valign="top">
  175. <td valign="top">exportDebugInfo</TD>
  176. <td valign="top">include debug info in exported class
  177. files (default: "no")</TD>
  178. <td valign="top" align="middle">no</TD></TR>
  179. <TR>
  180. <TD vAlign=top>defaultexcludes</TD>
  181. <TD vAlign=top>
  182. <P>use default excludes when exporting (default: "yes").<BR>Default excludes are:&nbsp;IBM*/**, Java
  183. class libraries/**, Sun class libraries*/**, JSP Page Compile Generated
  184. Code/**, VisualAge*/**&nbsp;</P></TD>
  185. <TD vAlign=top align="middle">no</TD></TR>
  186. <tr valign="top">
  187. <td valign="top">overwrite</TD>
  188. <td valign="top"> overwrite existing files (default:
  189. "yes")</TD>
  190. <td valign="top" align="middle">no</TD></TR>
  191. <tr>
  192. <td valign="top">remote</TD>
  193. <td valign="top">
  194. <P>name and port of a remote tool server. (format:
  195. <code>&lt;servername&gt;</code>:<code>&lt;port no&gt;</code>).<BR>If this
  196. attribute is set, the tasks will&nbsp;be executed on the specified tool
  197. server.&nbsp;</P></TD>
  198. <td valign="top" align="middle">no</TD></TR>
  199. <tr>
  200. <td valign="top">haltonerror</B></TD>
  201. <td valign="top">
  202. <P>Stop the build process if an error occurs,
  203. (default: "yes")</P></TD>
  204. <td align="middle" valign="top">no</TD></TR></TABLE>
  205. <h3>Parameters specified as nested elements</H3>
  206. <h4>include</H4>
  207. specifies the packages to include into the export
  208. <table border="1" cellpadding="2" cellspacing="0">
  209. <tr>
  210. <td valign="top"><b>Attribute</B></TD>
  211. <td valign="top"><b>Description</B></TD>
  212. <td align="middle" valign="top"><b>Required</B></TD></TR>
  213. <tr>
  214. <td valign="top">name</TD>
  215. <td valign="top">name of the VAJ project and package to export.<br>
  216. The first element of the name must be the project name, <br>
  217. then the package name elements
  218. separated by '/'.</TD>
  219. <td valign="top">yes</TD></TR></TABLE>
  220. <h4>exclude</H4>
  221. specifies the packages to exclude from the export<br>
  222. <table border="1" cellpadding="2" cellspacing="0">
  223. <tr>
  224. <td valign="top"><b>Attribute</B></TD>
  225. <td valign="top"><b>Description</B></TD>
  226. <td align="middle" valign="top"><b>Required</B></TD></TR>
  227. <tr>
  228. <td valign="top">name</TD>
  229. <td valign="top">name of the VAJ project/package not to
  230. export</TD>
  231. <td valign="top" align="middle">yes</TD></TR></TABLE>
  232. <h3>Example</H3>
  233. <pre>&lt;vajexport destdir="${src.dir}" exportResources="no"&gt;
  234. &lt;include name="MyProject/**"/&gt;
  235. &lt;exclude name="MyProject/test/**"/&gt;
  236. &lt;/vajexport&gt;
  237. </PRE>
  238. This example exports all packages in the VAJ project 'MyProject', except
  239. packages starting with 'test'.
  240. <h3>Default Excludes</H3>
  241. The default excludes are:<br>
  242. <pre> IBM*/**
  243. Java class libraries/**
  244. Sun class libraries*/**
  245. JSP Page Compile Generated Code/**
  246. VisualAge*/**
  247. </PRE>
  248. <hr>
  249. <h2><a name="vajimport"></A>VAJImport</H2>
  250. <h3>Description:</H3>
  251. <p>Imports Java source files, class files and/or resources
  252. from the file system into VAJ. These imports can be specified with a fileset.
  253. </P>
  254. <h3>Parameters</H3>
  255. <table border="1" cellpadding="2" cellspacing="0">
  256. <tr>
  257. <td valign="top"><b>Attribute</B></TD>
  258. <td valign="top"><b>Description</B></TD>
  259. <td align="middle" valign="top"><b>Required</B></TD></TR>
  260. <tr>
  261. <td valign="top">project</TD>
  262. <td valign="top">imported files are added to this VAJ
  263. project</TD>
  264. <td valign="top" align="middle">yes</TD></TR>
  265. <tr>
  266. <td valign="top">importSources</TD>
  267. <td valign="top">import source files (default:
  268. "yes")</TD>
  269. <td valign="top" align="middle">no</TD></TR>
  270. <tr valign="top">
  271. <td valign="top">importResources</TD>
  272. <td valign="top">import resource files (default:
  273. "yes")</TD>
  274. <td valign="top" align="middle">no</TD></TR>
  275. <tr valign="top">
  276. <td valign="top">importClasses</TD>
  277. <td valign="top">import class files (default: "no")</TD>
  278. <td valign="top" align="middle">no</TD></TR>
  279. <tr>
  280. <td valign="top">remote</TD>
  281. <td valign="top">
  282. <P>name and port of a remote tool server. (format:
  283. <code>&lt;servername&gt;</code>:<code>&lt;port no&gt;</code>).<BR>If this
  284. attribute is set, the tasks will&nbsp;be executed on the specified tool
  285. server.&nbsp;</P></TD>
  286. <td valign="top" align="middle">no</TD></TR>
  287. <tr>
  288. <td valign="top">haltonerror</B></TD>
  289. <td valign="top">
  290. <P>Stop the build process if an error occurs,
  291. (default: "yes")</P></TD>
  292. <td align="middle" valign="top">no</TD></TR></TABLE>
  293. <h3>Parameters specified as nested elements</H3>
  294. <h4>fileset</H4>
  295. A <A href="../CoreTypes/fileset.html">FileSet</A> specifies the files to import.
  296. <h3>Example</H3>
  297. <pre>&lt;vajimport project="Test" importClasses="true"&gt;
  298. &lt;fileset dir="${import.dir}"&gt;
  299. &lt;include name="com/sample/**/*.class"/&gt;
  300. &lt;exclude name="com/sample/test/**"/&gt;
  301. &lt;/fileset&gt;
  302. &lt;/vajimport&gt;
  303. </PRE>
  304. This example imports all class files in the directory ${import.dir}/com/sample
  305. excluding those in the subdirectory test<br>
  306. <hr>
  307. <h2><a name="sample_buildfile"></A>The
  308. Plugin</H2>
  309. The tasks are usable within VAJ by running the
  310. org.apache.tools.ant.Main class, but this is
  311. quite inconvenient. Therefore a small GUI is
  312. provided which allows selecting a build file
  313. and executing its targets. This Plugin is accessible
  314. from the VAJ Tools menu (see <A href="#usage">Usage</A>).
  315. <hr>
  316. <h2><a name="installation"></A>Installation</H2>
  317. <p>We assume <CODE>C:\IBMVJava</CODE> as VAJ
  318. install directory. If You have installed it elsewhere, adapt the pathes below.
  319. <h3>Plugin</H3>
  320. <ul>
  321. <li>Create the directory <CODE>
  322. C:\IBMVJava\ide\tools\org-apache-tools-ant</CODE>.
  323. <li>Expand in that directory all the jars contained in the <code>lib</CODE>
  324. directory of your Ant installation.
  325. <li>copy <CODE>default.ini</CODE> (in <CODE>
  326. org\apache\tools\ant\taskdefs\optional\ide</CODE>) to <CODE>
  327. C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini</CODE>.
  328. <li>if you want to access this help from the Workbench, create the
  329. directory <CODE> C:\IBMVJava\ide\tools\org-apache-tools-ant\doc</CODE>
  330. and copy the files <CODE>VAJAntTool.html</CODE>,
  331. <CODE>toolmenu.gif</CODE> and <CODE>
  332. anttool1.gif</CODE> to it.
  333. <li>VAJ has to be restarted to recognize the new tool.
  334. <li>Now if You open the context menu of a project, You should see the entry
  335. 'Ant Build' in the Tools submenu (see <A href="#usage">Usage</A>).
  336. <li>Make sure the tool works as expected. </LI></UL>
  337. <h3>Servlets for Remote Tool Access</H3>
  338. <UL>
  339. <LI>
  340. For
  341. a good introduction into the VAJ Remote Tool Access see the
  342. great introduction from Glenn McAllister at
  343. <A href="http://www7.software.ibm.com/vad.nsf/Data/Document4366">
  344. http://www7.software.ibm.com/vad.nsf/Data/Document4366</A>.&nbsp;It
  345. is highly recommended to read this article before doing the installation (to
  346. understand what you do :-) ).
  347. <LI>insert the following lines into
  348. <code>C:\IBMVJava\ide\tools\com-ibm-ivj-toolserver\servlets\servlet.properties</CODE>.
  349. Typically this file is empty. If not, be careful not to delete the other lines.
  350. <table cellpadding="0" cellspacing="0" border="0" width="500">
  351. <tr valign="top">
  352. <td valign="top">
  353. <PRE>servlet.vajload.code=org.apache.tools.ant.taskdefs.optional.ide.VAJLoadServlet
  354. servlet.vajexport.code=org.apache.tools.ant.taskdefs.optional.ide.VAJExportServlet
  355. servlet.vajimport.code=org.apache.tools.ant.taskdefs.optional.ide.VAJImportServletName<PRE>
  356. </TD></TR></TABLE>
  357. <LI>Expand the Ant libraries (<code>ant.jar</CODE> and <code>optional.jar</CODE>
  358. contained in the <code>lib</CODE> directory of your Ant installation) to the directory
  359. <code>C:\IBMVJava\ide\tools\com-ibm-ivj-toolserver\servlets\</CODE>.
  360. <LI>configure the Remote Access (via
  361. Window-&gt;Options..., then choose 'Remote Access To Tool API') as shown in
  362. the following picture:</LI></UL>
  363. <P align=center><IMG height=645 alt="" src="remacc.gif"
  364. width=587 border=0 ></P>
  365. <P>Now you should be able to execute VAJ Tasks from the
  366. command line.</P>
  367. <hr>
  368. <h2><a name="usage"></A>Usage</H2>
  369. <H3>Plugin</H3>
  370. <P>
  371. When the tool is installed correctly and your Ant build
  372. file is configured, it is really easy to use.<br>
  373. Go to your Workbench, select the project you want to deploy and
  374. open its context menu. In the submenu <i>Tools</I> you should find
  375. the new entry <i>Ant Build</I>. Klick it to start the tool! </P>
  376. <center><IMG height=246 src="toolmenu.gif" width=393 border=0></CENTER>
  377. After a short time this frame should pop up:
  378. <center><IMG height=241 alt=""
  379. src="anttool1.gif"
  380. width=389 border=0></CENTER>
  381. This frame contains the following elements:
  382. <ul>
  383. <li>A menubar with some options described later
  384. <li>The name of your selected VAJ project
  385. <li>An entry field for the Ant XML buildfile with a browse
  386. [...] button. The full qualified filename, including the directory is needed
  387. here.
  388. <li>A list with tasks specified in the buildfile. Until your first save of
  389. the build info (described later), this list will be empty. When loading
  390. a build file by the ( <EM>Re)Load&nbsp;</EM> button, this list
  391. is filled with all tasks which have a description attribute. The
  392. task you select in this list will be executed when pressing the
  393. <EM>Execute&nbsp;</EM> button.
  394. <li>A pulldown box for specifying the log level.
  395. <li>Four buttons. Two of them I have already
  396. described. The other are the <EM>Stop</EM> button to cancel a running build
  397. and the third one is just the <EM>Close</EM> button to exit our small tool!
  398. <li>Note that the build is canceled on the next console
  399. output after pressing the <EM>Stop</EM> button, not
  400. directly after pressing it.</LI></UL>
  401. <P>
  402. After you have set up your buildprocess you might find it useful
  403. to save the data you've just entered, so we implemented an option to
  404. save it to the repository into your selected project. Make sure that you
  405. have an open edition of your project before selecting
  406. <i>Save
  407. BuildInfo To Repository</I> from the <i>File</I> menu.
  408. Now your information is saved to this edition of your project and will
  409. be loaded automatically the next time you start <i>Ant Build</I>.<br>
  410. If you have closed the log window accidentally, it can be reopened
  411. with the <i>Log</I> item in the <i>File</I> menu, and if you want to
  412. know who developed this, just select <i>About</I> in the <i>Help</I> menu. </P>
  413. <H3>Servlets for Remote Tool Access</H3>
  414. <P>With the servlets installed and the remote access
  415. running you can use Ant from the command line without any restrictions. Just
  416. make sure the remote attribute in your build file is set correctly.</P>
  417. <hr>
  418. <h2><a name="faq"></A>Frequently Asked
  419. Questions</H2>
  420. <P><STRONG>Q: If I try to load a build
  421. file, I get the error "Can't load default task list". Why?</STRONG><br>
  422. A: Ant not only contains class files, but also resource
  423. files. This messsage appears if the file
  424. <BR>.../org/apache/tools/ant/taskdefs/defaults.properties is
  425. missing. Make sure that you import/export not only java/class files, but also
  426. all resource files when importing/exporting Ant.</P>
  427. <P><STRONG>Q: If I try to re-load a build
  428. file, I get the error "XML parser factory has not been configured correctly". Why?</STRONG><br>
  429. A: Make sure the META-INF/services directory of the <code>xercesImpl.jar</CODE> has also been expanded
  430. into the <CODE>C:\IBMVJava\ide\tools\org-apache-tools-ant</CODE> directory.</P>
  431. <P><STRONG>Q: I want to load, export
  432. and build more then one Visual Age project to one jar! How to?</STRONG><br>
  433. A: The VA tasks are able to load and export several
  434. Projects all at once. You can choose whatever project you like for storing the
  435. tool information, it doesn't really matter </P>
  436. <p><STRONG>Q: When I load my build
  437. file, the list of targets is empty. Why?</STRONG><br>
  438. A: You
  439. need to add the optional "description" parameter to the targets you want to come
  440. up in the list. Then reload the build file in the "ant build" tool. We chose to
  441. display only targets with description to allow the build file developer to
  442. distinguish between targets for end users and helper targets. </P>
  443. <p><STRONG>Q: Is there a sample build
  444. file available? </STRONG><br>
  445. A: Now you can find an <A href="#sample_buildfile">example</A> in this manual </P>
  446. <p><STRONG>Q: Why does it export my
  447. entire workspace when I've already implicitly selected a project when starting
  448. the Tool?</STRONG><br>
  449. A: This selection does not carry into
  450. the buildfile you are using. Set the Project name at the beginning of the
  451. "includes" parameter. </P>
  452. <p><STRONG>Q: When I import Ant into
  453. my Workspace, I get Problems reported. Can I ignore them?</STRONG><br>
  454. A: It depends on the problems reported, and what you want to do with Ant.
  455. Problems you can't ignore:
  456. <ul>
  457. <li>Classes from javax.xml.parser missing - install a compatible parser
  458. (see <A href="#installation">installation</A>)
  459. <li>Classes from com.ibm.ivj.util missing - install the Visual Age IDE
  460. Utility feature (see <A href="#installation">installation</A>).
  461. <li>Errors in optional tasks you use within your build
  462. file</LI></UL>
  463. <br>
  464. <p><STRONG>Q: I want to use the same
  465. buildfile both within Visual Age and from the command line using my regular Ant
  466. environment. What do I need to be aware of?</STRONG><br>
  467. A:
  468. You have to specifie a remote server via the 'remote' attribute. Otherwise the
  469. three Visual Age tasks won't work when executing Ant from the command line. </P>
  470. <p><STRONG>Q: I can export packages
  471. from project 'ABC', but not from project 'XYZ'! Why?</STRONG><br>
  472. A: Common reasons are:</P>
  473. <UL>
  474. <li>The project is excluded by the default excludes (see
  475. attribute 'defaultexcludes' of VAJExport)
  476. <li>When looking at the project in the workspace, it is
  477. often difficult to distinguish between project name and version name (e.g. as
  478. in 'My GUI Components Java 2 3.5'). Check if you have the right project name
  479. by switching off the version name display temporarilly.</LI></UL>
  480. <p><STRONG>Q: How do I control the
  481. import/export of sourcefiles, compiled files and project resources
  482. explicity?</STRONG><br>
  483. A: Via the Boolean values
  484. exportClasses (default false) exportSources (default true) and exportResources
  485. (default true). In some situations, Resources are not exported correctly without
  486. this being explicity set. VAJ doesn't export resources correctly if a package
  487. contains only resources (see below).</P>
  488. <hr>
  489. <h2><a name="known_problems"></A>Known
  490. Problems</H2>
  491. <ul>
  492. <li>Exporting a package containing just resources doesn't
  493. work. This is a VAJ Tool API bug. Workaround: create a dummy class and set
  494. 'exportSources' to false. </LI></UL>
  495. <hr>
  496. <h2><a name="va_versions"></A>VisualAge
  497. for Java Versions</H2>
  498. This tool integration has been tested with versions 3.02 and 3.5
  499. of VisualAge for Java. It should run with the 2.x Versions, too, but
  500. we didn't try. The graphical user interface is built with AWT so it is
  501. JDK independent by now.
  502. <hr>
  503. <h2><a name="history"></A>History</H2>
  504. <table cellpadding="2" cellspacing="2" border="1" width="400">
  505. <tr valign="top">
  506. <td valign="top">1.0</TD>
  507. <td valign="top">2000/09/11</TD>
  508. <td valign="top">Initial Version</TD></TR>
  509. <TR>
  510. <TD vAlign=top>1.1</TD>
  511. <TD vAlign=top>2001/02/14</TD>
  512. <TD vAlign=top>Added Task documentation and more FAQs
  513. (thanks to Richard Bourke for the FAQ additions) </TD></TR>
  514. <tr valign="top">
  515. <td valign="top">1.2</TD>
  516. <td valign="top">2001/07/02</TD>
  517. <td valign="top">
  518. <P>Added documentation of new remote feature.<BR>Minor corrections.</P></TD></TR>
  519. <tr valign="top">
  520. <td valign="top">1.2.1</TD>
  521. <td valign="top">2003/01/16</TD>
  522. <td valign="top">
  523. <P>Added documentation for haltonerror, "*" and "**" version qualifiers.</P></TD></TR></TABLE>
  524. <hr>
  525. <center>Copyright &copy; 2001-2004 The Apache Software
  526. Foundation. All rights Reserved.</CENTER>
  527. </body>
  528. </html>