From 87f427688d34a759cd21400d3ff6b57ceadb6cda Mon Sep 17 00:00:00 2001 From: Dave McKnight Date: Wed, 13 Nov 2013 10:39:44 -0500 Subject: [PATCH] [421632][dstore] option needed for disabling file classification --- .../universal/miners/filesystem/FileClassifier.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java index 97968ab640b..b6b3f93930b 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/FileClassifier.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2011 IBM Corporation and others. + * Copyright (c) 2006, 2013 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 * which accompanies this distribution, and is available at @@ -23,6 +23,7 @@ * David McKnight (IBM) - [153635] [dstore-linux] dangling symbolic links are not classified properly * David McKnight (IBM) - [350581] [dstore] FileClassifier should default to English * David McKnight (IBM) - [358301] [DSTORE] Hang during debug source look up + * David McKnight (IBM) - [421632][dstore] option needed for disabling file classification *******************************************************************************/ package org.eclipse.rse.internal.dstore.universal.miners.filesystem; @@ -157,6 +158,11 @@ public class FileClassifier extends SecuredThread _systemShell = "sh"; //$NON-NLS-1$ _canResolveLinks = osName.startsWith("linux"); //$NON-NLS-1$ + + String disableClassificationStr = System.getProperty("disable.classification"); //$NON-NLS-1$ + if (disableClassificationStr != null && disableClassificationStr.length() > 0){ + _systemSupportsClassify = !disableClassificationStr.equals("true"); //$NON-NLS-1$ + } }