centipede2/src/java/org/krysalis/centipede2/ant ImportAntletTask.java,1.4,1.5

[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:/tmp/cvs-serv4408/src/java/org/krysalis/centipede2/ant

Modified Files:
	ImportAntletTask.java 
Log Message:
Only download if not found.

Index: ImportAntletTask.java
===================================================================
RCS file: /cvsroot/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant/ImportAntletTask.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ImportAntletTask.java	4 Nov 2003 20:34:06 -0000	1.4
--- ImportAntletTask.java	22 Jan 2004 07:55:41 -0000	1.5
***************
*** 77,85 ****
  		File localAntlet = getLocalAntletFile();
  
! 		// Even if found it, ensure latest
! 		//:TODO: save this step later..
  		downloadAntlet(localAntlet);
! 		
! 		if (!localAntlet.exists())
  			throw new BuildException(
  				"Failed to locate (or download) antlet: ["
--- 77,84 ----
  		File localAntlet = getLocalAntletFile();
  
! 		if (!localAntlet.exists()){
  		downloadAntlet(localAntlet);
! 		}
! 		if (!localAntlet.exists()){
  			throw new BuildException(
  				"Failed to locate (or download) antlet: ["
***************
*** 87,91 ****
  					+ "]"
  					+ localAntlet.getAbsolutePath());
! 
  		return localAntlet;
  	}
--- 86,90 ----
  					+ "]"
  					+ localAntlet.getAbsolutePath());
! 			}
  		return localAntlet;
  	}




-------------------------------------------------------
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.