From 271c73b91cf469886bc023adde1bd592600518b3 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Thu, 14 Feb 2002 17:34:19 +0000
Subject: [PATCH] Allow -sourcepath for to be set explicitly.
PR: 5268
Submitted by: Alex Rosen
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271351 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 2 ++
docs/manual/CoreTasks/javac.html | 27 +++++++++++----
.../org/apache/tools/ant/taskdefs/Javac.java | 34 +++++++++++++++++++
.../compilers/DefaultCompilerAdapter.java | 21 +++++++++---
4 files changed, 73 insertions(+), 11 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 024ff3226..8e8d9d0b6 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -161,6 +161,8 @@ Other changes:
* now supports a new "prefix" attribute to prefix properties set.
+* you can now specify the -sourcepath for explicitly.
+
Changes from Ant 1.4 to Ant 1.4.1
===========================================
diff --git a/docs/manual/CoreTasks/javac.html b/docs/manual/CoreTasks/javac.html
index 8701e4b75..4655d6fcc 100644
--- a/docs/manual/CoreTasks/javac.html
+++ b/docs/manual/CoreTasks/javac.html
@@ -116,6 +116,11 @@ invoking the compiler.
the classpath to use. |
No |
+
+ sourcepath |
+ the sourcepath to use; defaults to the value of the srcdir attribute (or <src> elements). |
+ No |
+
bootclasspath |
location of bootstrap class files. |
@@ -127,6 +132,12 @@ invoking the compiler.
reference to a PATH defined elsewhere.
No |
+
+ sourcepathref |
+ the sourcepath to use, given as a
+ reference to a PATH defined elsewhere. |
+ No |
+
bootclasspathref |
location of bootstrap class files, given as a
@@ -255,14 +266,16 @@ supports all attributes of <fileset>
(dir becomes srcdir ) as well as the nested
<include> , <exclude> and
<patternset> elements.
-src , classpath , bootclasspath and extdirs
+src , classpath , sourcepath ,
+bootclasspath and extdirs
Javac 's srcdir, classpath,
-bootclasspath and extdirs attributes are sourcepath, bootclasspath and extdirs attributes are path-like structures and can also be set via nested
-<src> ,
-<classpath> ,
-<bootclasspath> and
-<extdirs> elements, respectively.
+<src> ,
+<classpath> ,
+<sourcepath> ,
+<bootclasspath> and
+<extdirs> elements, respectively.
compilerarg
@@ -425,7 +438,7 @@ build.compiler.warnings is "true" while all others are "false&quo
|
-Copyright © 2001 Apache Software Foundation. All rights
+
Copyright © 2001-2002 Apache Software Foundation. All rights
Reserved.