From 7cd7c4e5f82cbe8a3fe5d03b7c8ea871a523fdd1 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Tue, 6 May 2003 15:19:17 +0000
Subject: [PATCH] Big VAJ changes, in particular if they have ever worked for
anybody, they probably won't do so any longer.
Make the servlets work by using IBM's servlet classes
PR: 10016
URL-encoding in didn't work properly.
The VAJ tasks now support a haltonfailure attribute to conditionally
keep building even if they fail.
It is now possible to use the latest (versioned or unversioned)
edition in by using special wildcard characters.
PR: 2236.
Submitted by: Martin Landers
Francois Rey
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274553 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 16 +++
build.xml | 9 --
docs/manual/Integration/VAJAntTool.html | 117 ++++++++++--------
.../ant/taskdefs/optional/ide/VAJExport.java | 96 +++++++++++---
.../ant/taskdefs/optional/ide/VAJImport.java | 77 +++++++-----
.../ant/taskdefs/optional/ide/VAJLoad.java | 58 +++++++--
.../taskdefs/optional/ide/VAJLocalUtil.java | 58 ++++++++-
.../taskdefs/optional/ide/VAJRemoteUtil.java | 10 +-
.../ant/taskdefs/optional/ide/VAJTask.java | 16 ++-
.../optional/ide/VAJToolsServlet.java | 12 +-
10 files changed, 334 insertions(+), 135 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 3a3891d64..6a47bc8e2 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -30,6 +30,10 @@ Changes that could break older environments:
of the older ORO Netcomponents version. See
.
+* If the Visual Age tasks used to work for you, they may stop doing so
+ now - and we'd like to know about it. The current set of tasks is
+ supposed to work with any version of VAJ starting with 3.0.
+
Fixed bugs:
-----------
* Filter readers were not handling line endings properly. Bugzilla
@@ -115,6 +119,11 @@ Fixed bugs:
* Setting filesonly to true in and related tasks would cause the
archives to be always recreated. Bugzilla Report 19449.
+* The Visual Age for Java tasks didn't work (at least for versions 3.0
+ and higher). Bugzilla Report 10016.
+
+* URL-encoding in didn't work properly.
+
Other changes:
--------------
* Six new Clearcase tasks added.
@@ -286,6 +295,13 @@ Other changes:
control the automatic line-end conversion performed on ASCII files.
Bugzilla Report 18884.
+* The VAJ tasks now support a haltonfailure attribute to conditionally
+ keep building even if they fail.
+
+* It is now possible to use the latest (versioned or unversioned) edition
+ in by using special wildcard characters. Also fixes
+ Bugzilla Report 2236.
+
Changes from Ant 1.5.2 to Ant 1.5.3
===================================
diff --git a/build.xml b/build.xml
index 4a33a3d40..fb18c6d49 100644
--- a/build.xml
+++ b/build.xml
@@ -249,9 +249,6 @@
-
-
-
@@ -403,10 +400,6 @@
classname="org.apache.env.Which"
classpathref="classpath"/>
-
-
@@ -587,7 +580,6 @@
-
@@ -755,7 +747,6 @@
-
diff --git a/docs/manual/Integration/VAJAntTool.html b/docs/manual/Integration/VAJAntTool.html
index 98b8f4291..1d088784d 100644
--- a/docs/manual/Integration/VAJAntTool.html
+++ b/docs/manual/Integration/VAJAntTool.html
@@ -12,8 +12,12 @@
Wolf Siberski
(siberski at kbs.uni-hannover.de)
Christoph Wilhelms
- (christoph.wilhelms at tui.de)
-Version 1.2 - 2001/06/14
+ (christoph.wilhelms at tui.de)
+ Martin Landers
+ (martin.landers@bea.de)
+ François Rey
+ (francois.rey@capco.com)
+Version 1.2.1 - 2003/01/16
Table of Contents
@@ -47,6 +51,14 @@ viewed in a logging window. Concluding: This tool provides decent deployment
support VAJ has not (out of the box).
What's new
+
+ 2003/01/16 |
+
+
+ - Now works outside of VAJ.
+
- Added attribute haltonerror, "*" and "**" version qualifiers.
+
- Amended documentation (this file) accordingly.
+
|
2001/06/14 |
@@ -97,14 +109,20 @@ workspace.
| Attribute |
Description |
Required |
-
+
remote |
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
server. |
- no |
+ no |
+
+ haltonerror |
+
+ Stop the build process if an error occurs,
+ (default: "yes") |
+ no |
Parameters specified as nested elements
vajproject
@@ -121,13 +139,17 @@ workspace.
yes |
version |
- name of the requested version |
+ name of the requested version,
+ or one of the special qualifiers "*" or "**"
+ "*" loads the latest versioned edition of the project
+ "**" will load the latest version (including open editions) |
yes |
Example
<vajload remote="localhost:32767">
- <vajproject name="My Testcases" version="1.7beta"/>
+ <vajproject name="My App" version="*"/>
+ <vajproject name="My Testcases" version="**"/>
<vajproject name="JUnit" version="3.2"/>
</vajload>
@@ -191,7 +213,13 @@ files
<servername>:<port no>).
If this
attribute is set, the tasks will be executed on the specified tool
server.
- no |
+ no |
+
+ haltonerror |
+
+ Stop the build process if an error occurs,
+ (default: "yes") |
+ no |
Parameters specified as nested elements
@@ -258,7 +286,7 @@ from the file system into VAJ. These imports can be specified with a fileset.
Description |
Required |
- vajProject |
+ project |
imported files are added to this VAJ
project |
yes |
@@ -283,7 +311,13 @@ from the file system into VAJ. These imports can be specified with a fileset.
<servername>:<port no>).
If this
attribute is set, the tasks will be executed on the specified tool
server.
- no |
+ no |
+
+ haltonerror |
+
+ Stop the build process if an error occurs,
+ (default: "yes") |
+ no |
Parameters specified as nested elements
@@ -313,34 +347,16 @@ from the VAJ Tools menu (see Usage).
Installation
-At the moment the installation has it's rough edges. If something
-described below doesn't work for You, it's probably not Your fault
-but incomplete/wrong instructions. In this case, please contact one
-of the authors.
We assume C:\IBMVJava
as VAJ
install directory. If You have installed it elsewhere, adapt the pathes below.
Plugin
- - install the Visual Age IDE Tools (via File->Quick
- Start-> Add feature->'IBM IDE Utility class libraries'
-
- import an appropriate XML parser to VAJ (we use Xerces
- 1.2.0 and are happy with it). Unfortunately the XML parser delivered with VAJ
- (in the project 'IBM XML Parser for Java') doesn't work with Ant. You have to
- remove that project (temporarily) from the workspace before importing another
- XML implementation.
-
-
- import the Ant sources and resources into VAJ.
- Create the directory
C:\IBMVJava\ide\tools\org-apache-tools-ant
.
- - export the Ant and XML parser class and resource files
- into this directory. Be sure to select class files and
- resources. Sources don't have to
- be exported. Some optional tasks have errors and can't be exported when You
- don't have the necessary packages in Your workspace (e.g. junit task, ejbc
- task). If You need this tasks either import these packages into VAJ, too, or
- copy the .class files directly from the binary distribution.
+
- Expand in that directory all the jars contained in the
lib
+ directory of your Ant installation.
- copy
default.ini
(in
- ant\src\...\taskdefs\optional\ide
) to
+ org\apache\tools\ant\taskdefs\optional\ide
) to
C:\IBMVJava\ide\tools\org-apache-tools-ant\default.ini
.
- if you want to access this help from the Workbench, create the
@@ -351,9 +367,7 @@ install directory. If You have installed it elsewhere, adapt the pathes below.
- VAJ has to be restarted to recognize the new tool.
- Now if You open the context menu of a project, You should see the entry
'Ant Build' in the Tools submenu (see Usage).
-
- Make sure the tool works as expected. Now You can
- remove Ant and the imported XML parser from Your workspace (and optionally add
- the IBM parser again).
+ Make sure the tool works as expected.
Servlets for Remote Tool Access
@@ -460,6 +460,10 @@ 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.
+Q: If I try to re-load a build
+file, I get the error "XML parser factory has not been configured correctly". Why?
+A: Make sure the META-INF/services directory of the xercesImpl.jar
has also been expanded
+into the C:\IBMVJava\ide\tools\org-apache-tools-ant
directory.
Q: I want to load, export
and build more then one Visual Age project to one jar! How to?
A: The VA tasks are able to load and export several
@@ -551,9 +555,14 @@ JDK independent by now.
1.2 |
2001/07/02 |
- Added documentation of new remote feature. Minor corrections. |
+ Added documentation of new remote feature.
Minor corrections.
+
+ 1.2.1 |
+ 2003/01/16 |
+
+ Added documentation for haltonerror, "*" and "**" version qualifiers. |
-Copyright &#copy 2001-2003 Apache Software
+Copyright © 2001-2003 Apache Software
Foundation. All rights Reserved.