From f2d612279c15648fd06361849bec7e0c33046d74 Mon Sep 17 00:00:00 2001
From: Magesh Umasankar Visual Age for Java is a great Java IDE, but it lacks
-decent build support; for creating deliveries. On the other hand, Ant supports
-the build process very good, but is (at least at the moment) command line based.
-So we decided to write some tasks to access the VAJ repository and a small
-visual Ant frontend to make running Ant from VAJ possible. We use the Tool API
-to integrate Ant in VisualAge for Java. In combination with the VAJ tasks
-(vajload, vajexport, vajimport) you can load defined versions of projects
-into your workspace, export the source code, compile it with an external
-compiler and build a jar without leaving the IDE. Of course compile messages are
-viewed in a logging window. Concluding: This tool provides decent deployment
+ Visual Age for Java is a great Java IDE, but it lacks
+decent build support; for creating deliveries. On the other hand, Ant supports
+the build process very good, but is (at least at the moment) command line based.
+So we decided to write some tasks to access the VAJ repository and a small
+visual Ant frontend to make running Ant from VAJ possible. We use the Tool API
+to integrate Ant in VisualAge for Java. In combination with the VAJ tasks
+(vajload, vajexport, vajimport) you can load defined versions of projects
+into your workspace, export the source code, compile it with an external
+compiler and build a jar without leaving the IDE. Of course compile messages are
+viewed in a logging window. Concluding: This tool provides decent deployment
support VAJ has not (out of the box). Loads a specified VAJ project version into the
+ Loads a specified VAJ project version into the
workspace.Visual Age for Java Tasks and Plugin User Manual
by
Version 1.2 - 2001/06/14
@@ -22,30 +22,30 @@ Version 1.2 - 2001/06/14
-
-
Introduction
-What's new
@@ -58,12 +58,12 @@ support VAJ has not (out of the box).
from the command line (Kudos to Glenn McAllister for describing the
concept and providing source code at
- http://www7.software.ibm.com/vad.nsf/Data/Document4366.
+ http://www7.software.ibm.com/vad.nsf/Data/Document4366.
-
The Tasks
@@ -89,7 +89,7 @@ contents into an external build process:
VAJLoad
Description:
-Parameters
@@ -103,8 +103,8 @@ workspace.
name and port of a remote tool server. (format:
- <servername>:<port no>).
If this
- attribute is set, the tasks will be executed on the specified tool
+ <servername>:<port no>).
If this
+ attribute is set, the tasks will be executed on the specified tool
server.
name and port of a remote tool server. (format:
- <servername>:<port no>).
If this
- attribute is set, the tasks will be executed on the specified tool
+ <servername>:<port no>).
If this
+ attribute is set, the tasks will be executed on the specified tool
server.
use default excludes when exporting (default: "yes").
Default excludes are: IBM*/**, Java
- class libraries/**, Sun class libraries*/**, JSP Page Compile Generated
+
use default excludes when exporting (default: "yes").
Default excludes are: IBM*/**, Java
+ class libraries/**, Sun class libraries*/**, JSP Page Compile Generated
Code/**, VisualAge*/**
name and port of a remote tool server. (format:
- <servername>:<port no>).
If this
- attribute is set, the tasks will be executed on the specified tool
+ <servername>:<port no>).
If this
+ attribute is set, the tasks will be executed on the specified tool
server.
Imports Java source files, class files and/or resources -from the file system into VAJ. These imports can be specified with a fileset. +
Imports Java source files, class files and/or resources +from the file system into VAJ. These imports can be specified with a fileset.
Required | |||
vajProject | -imported files are added to this VAJ + | imported files are added to this VAJ project | yes |
importSources | -export source files (default: + | export source files (default: "yes") | no |
importResources | -export resource files (default: + | export resource files (default: "yes") | no |
remote |
name and port of a remote tool server. (format:
- <servername>:<port no>). |
no |
C:\IBMVJava\ide\tools\org-apache-tools-ant
.
- default.ini
(in
jakarta-ant\src\...\taskdefs\optional\ide
) to
- C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini
.
+ C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini.
C:\IBMVJava\ide\tools\org-apache-tools-ant\doc
and copy the files VAJAntTool.html
,
toolmenu.gif
and
- anttool1.gif
to it.
- C:\IBMVJava\ide\tools\com-ibm-ivj-toolserver\servlets\servlet.properties
.
@@ -400,12 +400,12 @@ servlet.vajimport.code=org.apache.tools.ant.taskdefs.optional.ide.VAJImportServl
VAJProjectDescriptionNow you should be able to execute VAJ Tasks from the +
Now you should be able to execute VAJ Tasks from the command line.
After you have set up your buildprocess you might find it useful
to save the data you've just entered, so we implemented an option to
save it to the repository into your selected project. Make sure that you
have an open edition of your project before selecting
-Save
+Save
BuildInfo To Repository from the File menu.
Now your information is saved to this edition of your project and will
be loaded automatically the next time you start Ant Build.
@@ -456,41 +456,41 @@ If you have closed the log window accidentally, it can be reopened
with the Log item in the File menu, and if you want to
know who developed this, just select About in the Help menu.
With the servlets installed and the remote access -running you can use Ant from the command line without any restrictions. Just -make sure the remote attribute in your build file is set correctly.
+With the servlets installed and the remote access +running you can use Ant from the command line without any restrictions. Just +make sure the remote attribute in your build file is set correctly.
Q: If I try to load a build
+ Q: If I try to load a build
file, I get the error "Can't load default task list". Why? Q: I want to load, export
+ Q: I want to load, export
and build more then one Visual Age project to one jar! How to? Q: When I load my build
+ Q: When I load my build
file, the list of targets is empty. Why? Q: Is there a sample build
+ Q: Is there a sample build
file available? Q: Why does it export my
-entire workspace when I've already implicitly selected a project when starting
+ Q: Why does it export my
+entire workspace when I've already implicitly selected a project when starting
the Tool? Q: When I import Ant into
+ Q: When I import Ant into
my Workspace, I get Problems reported. Can I ignore them? Q: I want to use the same
-buildfile both within Visual Age and from the command line using my regular Ant
+ Q: I want to use the same
+buildfile both within Visual Age and from the command line using my regular Ant
environment. What do I need to be aware of? Q: I can export packages
+ Q: I can export packages
from project 'ABC', but not from project 'XYZ'! Why? Q: How do I control the
-import/export of sourcefiles, compiled files and project resources
+ Q: How do I control the
+import/export of sourcefiles, compiled files and project resources
explicity? Added documentation of new remote feature.
-A: Ant not only contains class files, but also resource
-files. This messsage appears if the file
-
.../org/apache/tools/ant/taskdefs/defaults.properties is
-missing. Make sure that you import/export not only java/class files, but also
+A: Ant not only contains class files, but also resource
+files. This messsage appears if the file
+
.../org/apache/tools/ant/taskdefs/defaults.properties is
+missing. Make sure that you import/export not only java/class files, but also
all resource files when importing/exporting Ant.
-A: The VA tasks are able to load and export several
-Projects all at once. You can choose whatever project you like for storing the
+A: The VA tasks are able to load and export several
+Projects all at once. You can choose whatever project you like for storing the
tool information, it doesn't really matter
-A: You
-need to add the optional "description" parameter to the targets you want to come
-up in the list. Then reload the build file in the "ant build" tool. We chose to
-display only targets with description to allow the build file developer to
+A: You
+need to add the optional "description" parameter to the targets you want to come
+up in the list. Then reload the build file in the "ant build" tool. We chose to
+display only targets with description to allow the build file developer to
distinguish between targets for end users and helper targets.
A: Now you can find an example in this manual
-A: This selection does not carry into
-the buildfile you are using. Set the Project name at the beginning of the
+A: This selection does not carry into
+the buildfile you are using. Set the Project name at the beginning of the
"includes" parameter.
A: It depends on the problems reported, and what you want to do with Ant.
Problems you can't ignore:
@@ -499,45 +499,45 @@ Problems you can't ignore:
(see installation)
-
-A:
-You have to specifie a remote server via the 'remote' attribute. Otherwise the
+A:
+You have to specifie a remote server via the 'remote' attribute. Otherwise the
three Visual Age tasks won't work when executing Ant from the command line.
A: Common reasons are:
-
-
-A: Via the Boolean values
-exportClasses (default false) exportSources (default true) and exportResources
-(default true). In some situations, Resources are not exported correctly without
-this being explicity set. VAJ doesn't export resources correctly if a package
+A: Via the Boolean values
+exportClasses (default false) exportSources (default true) and exportResources
+(default true). In some situations, Resources are not exported correctly without
+this being explicity set. VAJ doesn't export resources correctly if a package
contains only resources (see below).
-Known
+
Known
Problems
-
-VisualAge
+
VisualAge
for Java Versions
This tool integration has been tested with versions 3.02 and 3.5
of VisualAge for Java. It should run with the 2.x Versions, too, but
@@ -554,7 +554,7 @@ JDK independent by now.
1.1
2001/02/14
- Added Task documentation and more FAQs
+ Added Task documentation and more FAQs
(thanks to Richard Bourke for the FAQ additions)
1.2
@@ -562,7 +562,7 @@ JDK independent by now.
Minor corrections.
-