[Nice-commit] Nice/src/nice/tools/ant Nicec.java,1.15,1.16
Brought to you by:
bonniot
|
From: <ag...@us...> - 2003-03-13 16:38:26
|
Update of /cvsroot/nice/Nice/src/nice/tools/ant
In directory sc8-pr-cvs1:/tmp/cvs-serv32223/src/nice/tools/ant
Modified Files:
Nicec.java
Log Message:
added nested classpath support as in javac
Index: Nicec.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/ant/Nicec.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Nicec.java 23 Dec 2002 18:47:19 -0000 1.15
--- Nicec.java 13 Mar 2003 16:38:21 -0000 1.16
***************
*** 2,5 ****
--- 2,6 ----
import org.apache.tools.ant.*;
+ import org.apache.tools.ant.types.*;
import java.io.File;
import java.util.Vector;
***************
*** 131,135 ****
/** Search path for compiled packages and libraries
*/
! private String classpath;
public void setClasspath(String classpath)
--- 132,136 ----
/** Search path for compiled packages and libraries
*/
! private String classpath = "";
public void setClasspath(String classpath)
***************
*** 238,241 ****
--- 239,257 ----
+ private Path nestedClasspath = null;
+
+ /**
+ * Creates a nested classpath element
+ */
+ public Path createClasspath() {
+ nestedClasspath = new Path(project);
+ return nestedClasspath.createPath();
+ }
+
+
+
+
+
+
***************
*** 252,256 ****
if (destination != null)
compilation.destinationDir = destination.getAbsolutePath();
! compilation.packagePath = classpath;
compilation.output = jar;
compilation.recompileCommandLine = recompile;
--- 268,272 ----
if (destination != null)
compilation.destinationDir = destination.getAbsolutePath();
! compilation.packagePath = classpath + (nestedClasspath != null ? File.pathSeparator+nestedClasspath : "");
compilation.output = jar;
compilation.recompileCommandLine = recompile;
|