You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2002/05/07 02:29:03 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types CommandlineJava.java
stevel 02/05/06 17:29:03
Modified: src/main/org/apache/tools/ant/types Tag: ANT_15_BRANCH
CommandlineJava.java
Log:
javdoc tuning
Revision Changes Path
No revision
No revision
1.34.2.1 +22 -1 jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java
Index: CommandlineJava.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java,v
retrieving revision 1.34
retrieving revision 1.34.2.1
diff -u -r1.34 -r1.34.2.1
--- CommandlineJava.java 25 Apr 2002 12:14:51 -0000 1.34
+++ CommandlineJava.java 7 May 2002 00:29:03 -0000 1.34.2.1
@@ -72,8 +72,17 @@
*/
public class CommandlineJava implements Cloneable {
+ /**
+ * commands to the JVM
+ */
private Commandline vmCommand = new Commandline();
+ /**
+ * actual java commands
+ */
private Commandline javaCommand = new Commandline();
+ /**
+ * properties to add using -D
+ */
private SysProperties sysProperties = new SysProperties();
private Path classpath = null;
private String vmVersion;
@@ -151,6 +160,9 @@
}
+ /**
+ * constructor uses the VM we are running on now.
+ */
public CommandlineJava() {
setVm(JavaEnvUtils.getJreExecutable("java"));
setVmversion(JavaEnvUtils.getJavaVersion());
@@ -178,7 +190,7 @@
/**
* set a jar file to execute via the -jar option.
- * @param the pathname of the jar to execute
+ * @param jarpathname the pathname of the jar to execute
*/
public void setJar(String jarpathname){
javaCommand.setExecutable(jarpathname);
@@ -272,6 +284,7 @@
}
/**
+ * Specify max memory of the JVM
* -mx or -Xmx depending on VM version
*/
public void setMaxmemory(String max){
@@ -279,6 +292,10 @@
}
+ /**
+ * get a string description
+ * @return the command line as a string
+ */
public String toString() {
return Commandline.toString(getCommandline());
}
@@ -361,6 +378,10 @@
return sysProperties;
}
+ /**
+ * clone the object; do a deep clone of all fields in the class
+ * @return a CommandlineJava object
+ */
public Object clone() {
CommandlineJava c = new CommandlineJava();
c.vmCommand = (Commandline) vmCommand.clone();
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>