ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james-mas...@apache.org
Subject svn commit: r1500945 - /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java
Date Mon, 08 Jul 2013 20:59:13 GMT
Author: james-masanz
Date: Mon Jul  8 20:59:13 2013
New Revision: 1500945

URL: http://svn.apache.org/r1500945
Log:
use mkdir instead of createNewFile because want directories for training/test/dev created,
not simply a single file for each

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java?rev=1500945&r1=1500944&r2=1500945&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/ReadAndPreprocessForAttributeModels.java
Mon Jul  8 20:59:13 2013
@@ -27,7 +27,7 @@ public class ReadAndPreprocessForAttribu
 				if (!f.getParentFile().isDirectory()) {
 					throw new RuntimeException("What should be the parent is not a directory " + f.getParentFile().getPath());
 				}
-				(new File(froot)).createNewFile();
+				(new File(froot)).mkdir();
 			}
 			params.add("--train-dir"); 		params.add(froot);
 
@@ -35,14 +35,14 @@ public class ReadAndPreprocessForAttribu
 			if (AssertionConst.preprocessForDev.containsKey(source) ) {
 				String fdev = AssertionConst.preprocessRootDirectory.get(source);
 				if (!(new File(fdev).exists())) {
-					(new File(fdev)).createNewFile();
+					(new File(fdev)).mkdir();
 				}
 				params.add("--dev-dir"); 	params.add(fdev);
 			}
 			if (AssertionConst.preprocessForTest.containsKey(source) ) {
 				String ftest = AssertionConst.preprocessRootDirectory.get(source);
 				if (!(new File(ftest).exists())) {
-					(new File(ftest)).createNewFile();
+					(new File(ftest)).mkdir();
 				}
 				params.add("--test-dir"); 	params.add(ftest);
 			}



Mime
View raw message