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 7.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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>Ant VisualAge for Java Tool Integration</title>
  7. </head>
  8. <body>
  9. <h1>Ant PlugIn for VisualAge for Java</h1>
  10. <a name="authors"></a>by
  11. <ul>
  12. <li>Wolf Siberski (<a href="mailto:wolf.siberski@tui.de">
  13. wolf.siberski@tui.de</a>)</li>
  14. <li>Christoph Wilhelms (<a href="mailto:christoph.wilhelms@tui.de">
  15. christoph.wilhelms@tui.de</a>)</li>
  16. </ul>
  17. Version 1.0 - 2000/11/09<br>
  18. <hr>
  19. <h2>Table of Contents</h2>
  20. <ul>
  21. <li><a href="#introduction">Introduction</a></li>
  22. <li><a href="#installation">Installation</a></li>
  23. <li><a href="#usage">Usage</a></li>
  24. <li><a href="#faq">Frequently Asked Questions</a></li>
  25. <li><a href="#va_versions">Visual Age Versions</a></li>
  26. </ul>
  27. <hr>
  28. <h2><a name="introduction"></a>Introduction</h2>
  29. Visual Age for Java is a great Java IDE, but it lacks decent build support
  30. for creating deliveries. On the other hand, Ant supports the build process
  31. very good, but is (at least at the moment) command line based. So we decided
  32. to write a small visual Ant frontend to make running Ant from VAJ possible.
  33. We use the Tool API to integrate Ant in VisualAge for Java. In combination
  34. with the VAJ targets (vajload, vajexport, vajimport) you can load defined
  35. defined versions of projects into your workspace, export the source code,
  36. compile it with an external compiler and build a jar without leaving the
  37. IDE. Of course compile messages are viewed in a logging window. Concluding:
  38. This tool provides a comfortable deployment VAJ has not (out of the box)!<br>
  39. <hr>
  40. <h2><a name="installation"></a>Installation</h2>
  41. At the moment the installation has it's rough edges. If something described
  42. below doesn't work for You, it's probably not Your fault but incomplete/wrong
  43. instructions. In this case, please contact one of the <a href="#authors">
  44. authors</a>.<br>
  45. We assume <font face="Courier">C:\IBMVJava</font> as VAJ install directory.
  46. If You have installed it elsewhere, adapt the pathes below. Execute following
  47. steps to get the PlugIn up and running:
  48. <ul>
  49. <li>import the Ant sources into VAJ.</li>
  50. <li>import an appropriate XML parser to VAJ (we use Xerces 1.2.0 and are
  51. happy with it). Unfortunately the XML parser delivered with VAJ (in the
  52. project 'IBM XML Parser for Java') doesn't work with Ant. You have to
  53. remove that project (temporarily) from the workspace before importing
  54. another XML implementation.</li>
  55. <li>Create the directory <font face="Courier">
  56. C:\IBMVJava\ide\tools\org-apache-tools-ant</font>.</li>
  57. <li>export the Ant and XML parser class files into this directory. Be sure
  58. to select class files and resources. Sources don't have to be exported.
  59. Some optional tasks have errors and can't be exported when You don't have
  60. the necessary packages in Your workspace (e.g. junit task, ejbc task).
  61. If You need this tasks either import these packages into VAJ, too,
  62. or copy the .class files directly from the binary distribution</li>
  63. <li>copy <font face="Courier">default.ini</font> (in
  64. <font face="Courier">jakarta-ant\src\...\taskdefs\optional\ide</font>)
  65. to <font face="Courier">
  66. C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini</font>.</li>
  67. <li>if&nbsp; you want to access this help from the Workbench, create the
  68. directory <font face="Courier">
  69. C:\IBMVJava\ide\tools\org-apache-tools-ant\doc</font> and copy the files
  70. <font face="Courier">VAJAntTool.html</font>,
  71. <font face="Courier">toolmenu.gif</font> and
  72. <font face="Courier">anttool1.gif</font> to it.</li>
  73. <li>VAJ has to be restarted to recognize the new tool.</li>
  74. <li>Now if You open the context menu of a project, You should see the entry
  75. 'Ant Build' in the Tools submenu (see <a href="#usage">Usage</a>).</li>
  76. <li>Make sure the tool works as expected. Now You can remove Ant and the
  77. imported XML parser from Your workspace (and optionally add the IBM parser
  78. again).</li>
  79. </ul>
  80. <hr>
  81. <h2><a name="usage"></a>Usage</h2>
  82. Beeing sure the tool is installed correctly and your Ant build file is
  83. configured, it is really easy to use.<br>
  84. Go to your Workbench, select the project you want to deploy and open
  85. its context menu. In the submenu <i>Tools</i> you should find the new
  86. entry <i>Ant Build</i>. Klick it to start the tool!
  87. <p><center><img src="toolmenu.gif" border="0" height="246" width="393">
  88. </center></p>
  89. After a short time this frame should pop up:
  90. <p><center><img src="anttool1.gif" border="0" height="222" width="389">
  91. </center></p>
  92. This frame contains the following:
  93. <ul>
  94. <li>A menubar with some options described later</li>
  95. <li>The name of your selected VAJ project</li>
  96. <li>An entry field for the Ant XML buildfile with a browse [...] button. The
  97. full qualified filename, including the directory is needed here.</li>
  98. <li>A list with tasks specified in the buildfile. Until your first save of
  99. the build info (described later), this list will be empty. When loading a
  100. build file by the <i>Reload Project</i> button, this list is filled with
  101. all tasks which have a description attribute. The task you select in this
  102. list will be executed when pressing the <i>Execute Task</i> button.</li>
  103. <li>A pulldown box for specifying the log level.</li>
  104. <li>Three buttons. Two of them I have already described and the third one
  105. is just the <i>Close </i>button to exit our small tool!</li>
  106. </ul>
  107. After you have set up your buildprocess you might find it useful to save
  108. the data you've just entered, so we implemented an option to save it to
  109. the repository into your selected project. Make sure that you have an open
  110. edition of your project before selecting <i>Save BuildInfo To Repository</i>
  111. from the <i>File</i> menu. Now your information is saved to this edition
  112. of your project and will be loaded automatically the next time you start
  113. <i>Ant Build</i>.<br>
  114. If you have closed the log window accidentally, it can be reopened with
  115. the <i>Log</i> item in the <i>File</i> menu, and if you want to know who
  116. developed this, just select <i>About</i> in the <i>Help</i> menu.
  117. <br>
  118. <hr>
  119. <h2><a name="faq"></a>Frequently Asked Questions</h2>
  120. <p>F: I want to load, export and build more then one Visual Age project to
  121. one jar! How to?<br>
  122. A: The VA tasks are able to load and export several Projects all at
  123. once. You can choose whatever project you like for storing the tool
  124. information, it doesn't really matter.</p>
  125. <hr>
  126. <h2><a name="va_versions"></a>VisualAge for Java Versions</h2>
  127. This tool integration has been tested with versions 3.02 and 3.5 of VisualAge
  128. for Java. It should run with the 2.x Versions, too, but we didn't try.
  129. The graphical user interface is build with AWT so it is JDK independent
  130. by now!<br>
  131. <hr>
  132. <p><center>Copyright &copy; 2000 Apache Software Foundation.
  133. All rights Reserved.</center></p>
  134. </body>
  135. </html>