private boolean useTerminal;
- private String targetFormat;
+ private final String targetFormat;
- public EncodingTask(
- final File source,
- final File destination,
- final eu.svjatoslav.meviz.encoder.converters.AbstractConverter converter,
- String targetFormat) {
+ public EncodingTask(final File source, final File target, final AbstractConverter converter,
+ final String targetFormat) {
this.source = source;
- target = destination;
+ this.target = target;
this.converter = converter;
this.targetFormat = targetFormat;
}
System.out.println("Executing command: " + command);
- final Runtime run = Runtime.getRuntime();
- Process pr;
- pr = run.exec(new String[] { "/bin/bash", "-c", command });
+ final Runtime runtime = Runtime.getRuntime();
+ final Process process = runtime.exec(new String[] { "/bin/bash", "-c", command });
- pr.waitFor();
+ process.waitFor();
} catch (final Exception e) {
System.out.println(e.toString());
}
public String getCommand(final EncodingOptions encodingOptions) {
- return converter.getCommand(source, target, encodingOptions,
- targetFormat);
+ return converter.getCommand(source, target, encodingOptions, targetFormat);
}
/**