Skip to content

Commit

Permalink
applied patch for CAMEL-412 with thanks!
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/activemq/camel/trunk@643003 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jstrachan committed Mar 31, 2008
1 parent 54c072c commit 5bd1e00
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,14 @@ protected void close(Closeable closeable, String description) {
}

protected String convertFile(File file, String format) throws CommandLineException {
String generatedFileName = removeFileExtension(file.getAbsolutePath()) + "." + format;
Log log = getLog();
if (this.executable == null || this.executable.length() == 0) {

log.warn( "Parameter <executable/> was not set in the pom.xml. Skipping conversion." );
return null;
}

String generatedFileName = removeFileExtension(file.getAbsolutePath()) + "." + format;
Commandline cl = new Commandline();
cl.setExecutable(executable);
cl.createArgument().setValue("-T" + format);
Expand Down

0 comments on commit 5bd1e00

Please sign in to comment.