[jbosstools-commits] JBoss Tools SVN: r43567 - trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Sep 10 15:30:01 EDT 2012
Author: ldimaggio
Date: 2012-09-10 15:30:01 -0400 (Mon, 10 Sep 2012)
New Revision: 43567
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java
Log:
Replacing call to replaceAll to replace - Windows dir - http://stackoverflow.com/questions/1701839/backslash-problem-with-string-replaceall
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java 2012-09-10 19:02:15 UTC (rev 43566)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/examples/HelloWorldFileAction.java 2012-09-10 19:30:01 UTC (rev 43567)
@@ -74,14 +74,18 @@
/* Needed to avoid a syntax error with Windows \ dir path characters */
//baseDir = bot.textWithLabel("Location:").getText().replaceAll(System.getProperty("file.separator"), System.getProperty("file.separator") + System.getProperty("file.separator")) + System.getProperty("file.separator");
baseDir = bot.textWithLabel("Location:").getText();
- System.out.println("DEBUG baseDir = " + bot.textWithLabel("Location:").getText()) ;
+ System.out.println("DEBUG baseDir = " + baseDir) ;
try {
- baseDir = bot.textWithLabel("Location:").getText().replaceAll(System.getProperty("file.separator"), "zzz");
+ //baseDir = bot.textWithLabel("Location:").getText().replaceAll(System.getProperty("file.separator"), "zzz");
+ // http://stackoverflow.com/questions/1701839/backslash-problem-with-string-replaceall
+ baseDir = bot.textWithLabel("Location:").getText().replace("\\", "\\\\") + "\\";
}
catch (Exception E) {
System.out.println ("replaceAll failing with " + E.getMessage() );
}
+
+ System.out.println("DEBUG baseDir = " + baseDir) ;
}
More information about the jbosstools-commits
mailing list