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

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