ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james-mas...@apache.org
Subject svn commit: r1550546 - /ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy
Date Thu, 12 Dec 2013 21:49:32 GMT
Author: james-masanz
Date: Thu Dec 12 21:49:32 2013
New Revision: 1550546

URL: http://svn.apache.org/r1550546
Log:
have downloadFile actually use the filename parameter instead of using the basename of the
url parameter

Modified:
    ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy

Modified: ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy?rev=1550546&r1=1550545&r2=1550546&view=diff
==============================================================================
--- ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy (original)
+++ ctakes/trunk/ctakes-constituency-parser/scripts/groovy/parser.groovy Thu Dec 12 21:49:32
2013
@@ -110,7 +110,7 @@ def downloadFile(String url, String file
 	  System.out.println("File already exists:" + filename);
 	  return;
 	}
-    def f = new FileOutputStream(url.tokenize("/")[-1])
+    def f = new FileOutputStream(file)
     def out = new BufferedOutputStream(f)
     out << new URL(url).openStream()
     out.close()



Mime
View raw message