[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
|
- From: Eclipse CVS Genie <genie@xxxxxxxxxxx>
- Date: Tue, 28 Jun 2011 14:42:56 +0000
- Delivered-to: tm-cvs-commit@eclipse.org
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 dev2:/tmp/cvs-serv16265/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem
Modified Files:
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.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** FileClassifier.java 8 Mar 2011 18:59:08 -0000 1.14
--- FileClassifier.java 28 Jun 2011 14:42:54 -0000 1.15
***************
*** 22,25 ****
--- 22,26 ----
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
* David McKnight (IBM) - [153635] [dstore-linux] dangling symbolic links are not classified properly
+ * David McKnight (IBM) - [350581] [dstore] FileClassifier should default to English
*******************************************************************************/
***************
*** 719,727 ****
{
args[2] = "file " + files; //dont quote files to allow shell pattern matching //$NON-NLS-1$
!
}
// run command with the working directory being the parent file
! Process theProcess = Runtime.getRuntime().exec(args, null, parentFile);
BufferedReader reader = null;
--- 720,734 ----
{
args[2] = "file " + files; //dont quote files to allow shell pattern matching //$NON-NLS-1$
! }
!
! 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;