centipede2/src/java/org/krysalis/centipede2/ant ImportAntletTask.java,1.7,1.8

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11332/src/java/org/krysalis/centipede2/ant

Modified Files:
	ImportAntletTask.java 
Log Message:
import antlet now passes the junit helloworld test!!

Index: ImportAntletTask.java
===================================================================
RCS file: /cvsroot/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant/ImportAntletTask.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ImportAntletTask.java	5 Feb 2004 08:04:43 -0000	1.7
--- ImportAntletTask.java	5 Feb 2004 08:41:02 -0000	1.8
***************
*** 79,83 ****
  
  		if (!localAntlet.exists()) {
! 			downloadAntlet(localAntlet);
  		}
  		if (!localAntlet.exists()) {
--- 79,83 ----
  
  		if (!localAntlet.exists()) {
! 			downloadAntlet();
  		}
  		if (!localAntlet.exists()) {
***************
*** 92,98 ****
  
  	/**
! 	 * @return
  	 */
! 	private void downloadAntlet(File localAntlet) throws BuildException {
  		if (null != href) {
  			File temp = downloadAntletJar();
--- 92,100 ----
  
  	/**
! 	 * 
! 	 * 
! 	 * @throws BuildException
  	 */
! 	private void downloadAntlet() throws BuildException {
  		if (null != href) {
  			File temp = downloadAntletJar();
***************
*** 123,127 ****
  
  		try {
! 			File temp = File.createTempFile(getName(), ".jar");
  			URL fullURL;
  			fullURL = new URL(href.toExternalForm() + "/" + getName() + ".jar");
--- 125,130 ----
  
  		try {
! 			File tempDir=getTempDir();
! 			File temp = new File(tempDir,getName()+".jar");
  			URL fullURL;
  			fullURL = new URL(href.toExternalForm() + "/" + getName() + ".jar");
***************
*** 142,145 ****
--- 145,156 ----
  		}
  	} /**
+ 	 * @return
+ 	 */
+ 	private File getTempDir() {
+ 		// TODO Get java.io.tempdir or something
+ 		return new File("/temp");
+ 	}
+ 
+ 	/**
  	   *  
  	   */



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.