[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tm-cvs-commit] dmcknight org.eclipse.tm.rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem FileClassifier.java

Update of /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem
In directory dev1:/tmp/cvs-serv32179/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem

Modified Files:
      Tag: R3_2_maintenance
	FileClassifier.java 
Log Message:
[350581] [dstore] FileClassifier should default to English


Index: FileClassifier.java
===================================================================
RCS file: /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -C2 -d -r1.12 -r1.12.2.1
*** FileClassifier.java	27 Nov 2008 14:43:59 -0000	1.12
--- FileClassifier.java	28 Jun 2011 14:52:04 -0000	1.12.2.1
***************
*** 1,4 ****
  /*******************************************************************************
!  * Copyright (c) 2006, 2008 IBM Corporation and others.
   * All rights reserved. This program and the accompanying materials
   * are made available under the terms of the Eclipse Public License v1.0
--- 1,4 ----
  /*******************************************************************************
!  * Copyright (c) 2006, 2011 IBM Corporation and others.
   * All rights reserved. This program and the accompanying materials
   * are made available under the terms of the Eclipse Public License v1.0
***************
*** 20,23 ****
--- 20,24 ----
   * David McKnight   (IBM)        - [251729][dstore] problems querying symbolic link folder
   * Noriaki Takatsu  (IBM)        - [256724] thread-level security is not established
+  * David McKnight   (IBM)        - [350581] [dstore] FileClassifier should default to English
   *******************************************************************************/
  
***************
*** 715,721 ****
  
              }
! 
              // run command with the working directory being the parent file
!             Process theProcess = Runtime.getRuntime().exec(args, null, parentFile);
  
              BufferedReader reader = null;
--- 716,729 ----
  
              }
!             
!             String[] envVars = null;
!             String classifyWithEnglish = System.getProperty("classify.with.english"); //$NON-NLS-1$
!             if (classifyWithEnglish == null || classifyWithEnglish.equals("true")){ //$NON-NLS-1$
!             	String langVar = "LANG=en_US"; // right now only classifying based on English //$NON-NLS-1$
!             	envVars = new String[] {langVar};
!             }
!             
              // run command with the working directory being the parent file
!             Process theProcess = Runtime.getRuntime().exec(args, envVars, parentFile);
  
              BufferedReader reader = null;