jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1643364 - in /jmeter/trunk: src/core/org/apache/jmeter/NewDriver.java src/core/org/apache/jmeter/gui/util/FileDialoger.java src/jorphan/org/apache/jorphan/reflect/ClassFinder.java xdocs/changes.xml
Date Fri, 05 Dec 2014 17:31:47 GMT
Author: sebb
Date: Fri Dec  5 17:31:47 2014
New Revision: 1643364

URL: http://svn.apache.org/r1643364
Log:
Replace System.getProperty("file.separator") with File.separator throughout (Also "path.separator"
with File.pathSeparator)
Bugzilla Id: 57310

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java?rev=1643364&r1=1643363&r2=1643364&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java Fri Dec  5 17:31:47 2014
@@ -37,7 +37,7 @@ import java.util.StringTokenizer;
  */
 public final class NewDriver {
 
-    private static final String CLASSPATH_SEPARATOR = System.getProperty("path.separator");//
$NON-NLS-1$
+    private static final String CLASSPATH_SEPARATOR = File.pathSeparator;
 
     private static final String OS_NAME = System.getProperty("os.name");// $NON-NLS-1$
 

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java?rev=1643364&r1=1643363&r2=1643364&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java Fri Dec  5 17:31:47
2014
@@ -189,7 +189,7 @@ public final class FileDialoger {
         String ext = ".jmx";//$NON-NLS-1$
         if (filename != null) {
             jfc.setDialogTitle(filename);
-            jfc.setSelectedFile(filename.lastIndexOf(System.getProperty("file.separator"))
> 0 ?
+            jfc.setSelectedFile(filename.lastIndexOf(File.separator) > 0 ?
                     new File(filename) :
                     new File(lastJFCDirectory, filename));
             int i = -1;

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java?rev=1643364&r1=1643363&r2=1643364&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassFinder.java Fri Dec  5 17:31:47
2014
@@ -315,8 +315,7 @@ public final class ClassFinder {
     private static List<String> getClasspathMatches(String[] strPathsOrJars) {
         final String javaClassPath = System.getProperty("java.class.path"); // $NON-NLS-1$
         StringTokenizer stPaths =
-            new StringTokenizer(javaClassPath,
-                System.getProperty("path.separator")); // $NON-NLS-1$
+            new StringTokenizer(javaClassPath, File.pathSeparator);
         if (log.isDebugEnabled()) {
             log.debug("Classpath = " + javaClassPath);
             for (int i = 0; i < strPathsOrJars.length; i++) {

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1643364&r1=1643363&r2=1643364&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Fri Dec  5 17:31:47 2014
@@ -216,6 +216,7 @@ See  <bugzilla>56357</bugzilla> for deta
 <ul>
 <li>Updated to jsoup-1.8.1.jar (from 1.7.3)</li>
 <li><bug>57276</bug>RMIC no longer needed since Java 5</li>
+<li><bug>57310</bug>Replace System.getProperty("file.separator") with File.separator
throughout (Also "path.separator" with File.pathSeparator)</li>
 </ul>
 
 <ch_section>Thanks</ch_section>



Mime
View raw message