Source:
<code>protected static boolean addTestData(String host, int port, String databaseName, String user, String pwd, String filePath) { Process proc = null; BufferedReader br = null; String errorMsg = null; String[] command = new String[] { "mysql", "--host=" + host, "--port=" + port, "--user=" + user, "--password=" + pwd, "--database=" + databaseName, "-e", "source " + filePath }; String runDirectory = System.getProperties().getProperty("user.dir"); <START> File file = new File(runDirectory, "/database/bin/mysql"); <END> if (file.exists()) { command[0] = file.getAbsolutePath(); } try { proc = Runtime.getRuntime().exec(command); try { br = new BufferedReader(new InputStreamReader(proc.getErrorStream())); String line; StringBuilder sb = new StringBuilder(); while ((line = br.readLine()) != null) { sb.append(System.getProperty("line.separator")); sb.append(line); } errorMsg = sb.toString(); } catch (IOException e) { log.error("Failed to add test data:", e); } finally { if (br != null) { try { br.close(); } catch (Exception e) { log.error("Failed to close the inputstream:", e); } } } if (StringUtils.isNotBlank(errorMsg)) { log.error(errorMsg); } if (proc.waitFor() == 0) { if (log.isDebugEnabled()) { log.debug("Added test data successfully"); } return true; } log .error("The process terminated abnormally while adding test data. Please look under the Configuration section at: <LINK_0>"); } catch (IOException e) { log.error("Failed to create the sql dump", e); } catch (InterruptedException e) { log.error("The back up was interrupted while adding test data", e); } return false; }</code><technical_language>need get rid of slashes</technical_language>

Target:
protected static boolean addTestData(String host, int port, String databaseName, String user, String pwd, String filePath) { Process proc = null; BufferedReader br = null; String errorMsg = null; String[] command = new String[] { "mysql", "--host=" + host, "--port=" + port, "--user=" + user, "--password=" + pwd, "--database=" + databaseName, "-e", "source " + filePath }; String runDirectory = System.getProperties().getProperty("user.dir"); File file = new File(Paths.get(runDirectory, "database", "bin", "mysql").toString()); if (file.exists()) { command[0] = file.getAbsolutePath(); } try { proc = Runtime.getRuntime().exec(command); try { br = new BufferedReader(new InputStreamReader(proc.getErrorStream())); String line; StringBuilder sb = new StringBuilder(); while ((line = br.readLine()) != null) { sb.append(System.getProperty("line.separator")); sb.append(line); } errorMsg = sb.toString(); } catch (IOException e) { log.error("Failed to add test data:", e); } finally { if (br != null) { try { br.close(); } catch (Exception e) { log.error("Failed to close the inputstream:", e); } } } if (StringUtils.isNotBlank(errorMsg)) { log.error(errorMsg); } if (proc.waitFor() == 0) { if (log.isDebugEnabled()) { log.debug("Added test data successfully"); } return true; } log .error("The process terminated abnormally while adding test data. Please look under the Configuration section at: <LINK_0>"); } catch (IOException e) { log.error("Failed to create the sql dump", e); } catch (InterruptedException e) { log.error("The back up was interrupted while adding test data", e); } return false; }