From 818ddcf1837e09566976e01e2b718b1995f6e5f2 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Tue, 18 Aug 2009 08:29:01 +0000
Subject: [PATCH] add a destdir attribute to rmic so generated stubs or
whatever can be put into a different place. PR 20699. Submitted by Mark A.
Ziesemer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@805320 13f79535-47bb-0310-9956-ffa450edef68
---
CONTRIBUTORS | 1 +
WHATSNEW | 4 +
contributors.xml | 5 +
docs/manual/CoreTasks/rmic.html | 23 ++-
src/etc/testcases/taskdefs/rmic/rmic.xml | 168 +++++++++++++++++-
.../org/apache/tools/ant/taskdefs/Rmic.java | 58 ++++--
.../ant/taskdefs/rmic/DefaultRmicAdapter.java | 2 +-
.../tools/ant/taskdefs/RmicAdvancedTest.java | 123 +++++++++++++
8 files changed, 367 insertions(+), 17 deletions(-)
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 3f9ef5f7d..c716a4f25 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -183,6 +183,7 @@ Mariusz Nowostawski
Mark Hecker
Mark Salter
Mark R. Diggory
+Mark A. Ziesemer
Martijn Kruithof
Martin Landers
Martin Poeschl
diff --git a/WHATSNEW b/WHATSNEW
index f7042cb1a..8551a3723 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -839,6 +839,10 @@ Other changes:
* A new islastmodified condition can check the last modified date of
resources.
+ * has a new destDir attribute that allows generated files to
+ be written to a different location than the original classes.
+ Bugzilla Report 20699.
+
Changes from Ant 1.7.0 TO Ant 1.7.1
=============================================
diff --git a/contributors.xml b/contributors.xml
index 4bdb38171..64844ca5b 100644
--- a/contributors.xml
+++ b/contributors.xml
@@ -756,6 +756,11 @@
R.
Diggory
+
+ Mark
+ A.
+ Ziesemer
+
Martijn
Kruithof
diff --git a/docs/manual/CoreTasks/rmic.html b/docs/manual/CoreTasks/rmic.html
index 2f1926668..e99b412ab 100644
--- a/docs/manual/CoreTasks/rmic.html
+++ b/docs/manual/CoreTasks/rmic.html
@@ -79,8 +79,14 @@ please consult miniRMI's documentation to learn how to use it.
base |
+ the location to store the compiled files.
+ Also serves as the parent directory for any non-Fileset includes, etc.
+ (This functionality has remained unchanged.) |
+ *1 |
+
+
+ destdir |
the location to store the compiled files. |
- Yes |
classname |
@@ -219,6 +225,21 @@ please consult miniRMI's documentation to learn how to use it.
No |
+
+*1:
+
+ - Maintaining compatibility,
base
, when specified by
+ itself, serves as both the parent directory for any source files
+ AND the output directory.
+ destdir
can be used to specify the output
+ directory, allowing for base
to be used as the parent
+ directory for any source files.
+ - At least one of either
base
or destdir
+ must be specified and exist, or a runtime error will
+ occur.
+
+
+
Parameters specified as nested elements
classpath and extdirs
Rmic
's classpath and extdirs attributes are
-
+
+
+
+
+
+
+
+
@@ -61,6 +72,17 @@
+
+
+
+ Not found : ${dest.dir}/@{file}
+
+
+
+
+
+
+
@@ -72,6 +94,16 @@
+
+
+
+ Expected to be missing : ${dest.dir}/@{file}
+
+
+
+
+
+
@@ -79,18 +111,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -98,6 +148,12 @@
+
+
+
+
+
+
@@ -105,12 +161,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,6 +186,13 @@
+
+
+
+
+
+
+
@@ -143,32 +218,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -177,12 +282,26 @@
+
+
+
+
+
+
+
+
+
+
+
+