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 kB

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