final fixes

This commit is contained in:
gexce
2017-08-22 11:59:20 +02:00
parent aacaad6ced
commit c881e7490b
3 changed files with 21 additions and 16 deletions
@@ -22,7 +22,7 @@ public class ToolboxFileExporter {
private List<String[]> rows;
private String baseDir = "D:\\Toolbox\\Assets";
private String baseDir = "D:\\ToolboxMigration_missing";
// Formatdatei generiert mit
// bcp "SELECT OriginalImage FROM AssetImages WHERE AssetID=586" queryout Image.jpg -S MOVNCG -d Bayertoolbox_prod -T
@@ -54,7 +54,7 @@ public class ToolboxFileExporter {
}
else {
log.info("Download for asset " + assetId + ", OriginalFilename: '" + originalFilenname + "'");
Process process = Runtime.getRuntime().exec(command1 + assetId + command2 + assetId + command3, null, workingDir);
Process process = Runtime.getRuntime().exec(command1 + assetId + command2 + originalFilenname + command3, null, workingDir);
process.waitFor();
if (0 < process.exitValue()) {
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
@@ -75,7 +75,7 @@ public class ToolboxFileExporter {
CsvParser parser = new CsvParser(settings);
rows = parser.parseAll(new File("C:\\Temp\\Migration CS - SQL Server\\export-2017-08-15.csv"));
rows = parser.parseAll(new File("C:\\Temp\\Migration CS - SQL Server\\missing_after_clean.csv"));
}
@@ -83,7 +83,7 @@ public class ToolboxFileExporter {
try {
Layout layout = new PatternLayout("%d{ISO8601} - %p %m%n"); // "%d{ISO8601} - %p %m%n"
BasicConfigurator.configure(new ConsoleAppender(layout));
BasicConfigurator.configure(new RollingFileAppender(layout, "D:\\Toolbox\\download.log", true));
BasicConfigurator.configure(new RollingFileAppender(layout, "C:\\Temp\\Migration CS - SQL Server\\missing_after_clean.log", false));
log.setLevel(Level.DEBUG);
long startTime = System.currentTimeMillis();