Skip to content

Commit

Permalink
use semi-colons to allow insert of commas in parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mpcarter committed Nov 1, 2013
1 parent 1df8136 commit 491aac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

cd classes
jar -cvf etlfit.jar etlfit
cp etlfit.jar ~/dbfit/lib/
cd ..

2 changes: 2 additions & 0 deletions src/etlfit/RunKettleFixture.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public boolean runTransformationAtWith(String trnName, String trnPath, String[]
commands.add(kettleDirectory + trnExecutor);
commands.add("/file:" + trnPath + trnName + ".ktr");
for (String param : trnParamArray) {
param = param.replaceAll("(?<!\\\\);",",").replaceAll("\\\\;",";");
commands.add("/param:" + param);
}
commands.add("/level:" + logLevel);
Expand Down Expand Up @@ -96,6 +97,7 @@ public boolean runJobAtWith(String jobName, String jobPath, String[] jobParamArr
commands.add(kettleDirectory + jobExecutor);
commands.add("/file:" + jobPath + jobName + ".kjb");
for (String param : jobParamArray) {
param = param.replaceAll("(?<!\\\\);",",").replaceAll("\\\\;",";");
commands.add("/param:" + param);
}
commands.add("/level:" + logLevel);
Expand Down

0 comments on commit 491aac9

Please sign in to comment.