From 689641b01842cd1c323f0e377a9bb12c37a4d863 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 8 Oct 2004 09:34:40 +0000 Subject: [PATCH] accessors to command line are occasionally useful when working with java git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276932 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/Java.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/Java.java b/src/main/org/apache/tools/ant/taskdefs/Java.java index 68b6e591d..38c9c8852 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Java.java +++ b/src/main/org/apache/tools/ant/taskdefs/Java.java @@ -906,4 +906,24 @@ public class Java extends Task { w.close(); log(sw.toString(), Project.MSG_ERR); } + + /** + * accessor to the command line + * + * @return the current command line + * @since 1.7 + */ + public CommandlineJava getCommandLine() { + return cmdl; + } + + /** + * get the system properties of the command line + * + * @return the current properties of this java invocation + * @since 1.7 + */ + public CommandlineJava.SysProperties getSysProperties() { + return cmdl.getSystemProperties(); + } }