Community
Participate
Working Groups
final File dotInputFile, final String format,
final String imageResultFile) {
String outputFormat = "-T" + format; //$NON-NLS-1$
String resultFile = imageResultFile == null
? dotInputFile.getName() + "." + format : imageResultFile; //$NON-NLS-1$
String dotFile = dotInputFile.getName();
? dotFile.substring(0, dotFile.lastIndexOf('.') + 1) + format
: imageResultFile; // $NON-NLS-1$
String inputFolder = new File(dotInputFile.getParent())
.getAbsolutePath() + File.separator;
String outputFolder = imageResultFile == null ? inputFolder