Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 66588 invoked from network); 4 Oct 2002 11:59:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Oct 2002 11:59:56 -0000 Received: (qmail 7034 invoked by uid 97); 4 Oct 2002 12:00:36 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 6980 invoked by uid 97); 4 Oct 2002 12:00:35 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 6956 invoked by uid 97); 4 Oct 2002 12:00:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 4 Oct 2002 11:59:49 -0000 Message-ID: <20021004115949.81321.qmail@icarus.apache.org> From: bodewig@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types Commandline.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N bodewig 2002/10/04 04:59:49 Modified: . WHATSNEW docs/manual using.html src/main/org/apache/tools/ant/types Commandline.java Log: Add pathref attribute to . PR: 13137 Revision Changes Path 1.298 +3 -0 jakarta-ant/WHATSNEW Index: WHATSNEW =================================================================== RCS file: /home/cvs/jakarta-ant/WHATSNEW,v retrieving revision 1.297 retrieving revision 1.298 diff -u -r1.297 -r1.298 --- WHATSNEW 4 Oct 2002 08:32:12 -0000 1.297 +++ WHATSNEW 4 Oct 2002 11:59:48 -0000 1.298 @@ -49,6 +49,9 @@ * OS/400 now gets detected by the os condition. +* has a new attribute pathref that can be used to reference + previously defined paths. + Changes from Ant 1.5.1Beta1 to 1.5.1 ==================================== 1.27 +7 -1 jakarta-ant/docs/manual/using.html Index: using.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/using.html,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- using.html 9 Aug 2002 08:49:45 -0000 1.26 +++ using.html 4 Oct 2002 11:59:48 -0000 1.27 @@ -429,7 +429,7 @@ value a single command-line argument; can contain space characters. - Exactly one of these. + Exactly one of these. file @@ -442,6 +442,12 @@ string as a single command-line argument; you can use ; or : as path separators and Ant will convert it to the platform's local + conventions. + + + pathref + Reference to a path + defined elsewhere. Ant will convert it to the platform's local conventions. 1.25 +15 -1 jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java Index: Commandline.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- Commandline.java 9 Aug 2002 08:49:45 -0000 1.24 +++ Commandline.java 4 Oct 2002 11:59:49 -0000 1.25 @@ -58,6 +58,7 @@ import java.util.StringTokenizer; import java.util.Vector; import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.ProjectComponent; import org.apache.tools.ant.util.StringUtils; @@ -113,7 +114,7 @@ /** * Used for nested xml command line definitions. */ - public static class Argument { + public static class Argument extends ProjectComponent { private String[] parts; @@ -147,6 +148,19 @@ */ public void setPath(Path value) { parts = new String[] {value.toString()}; + } + + /** + * Sets a single commandline argument from a reference to a + * path - ensures the right separator for the local platform + * is used. + * + * @param value a single commandline argument. + */ + public void setPathref(Reference value) { + Path p = new Path(getProject()); + p.setRefid(value); + parts = new String[] {p.toString()}; } /** -- To unsubscribe, e-mail: For additional commands, e-mail: