Browse Source

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
master
Steve Loughran 20 years ago
parent
commit
689641b018
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      src/main/org/apache/tools/ant/taskdefs/Java.java

+ 20
- 0
src/main/org/apache/tools/ant/taskdefs/Java.java View File

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

Loading…
Cancel
Save