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(); + } }