final String[] c = new String[commands.length];
- for (int i = 0; i < commands.length; i++) {
-
- if (commands[i].equals(FILE_INDICATOR)) {
+ for (int i = 0; i < commands.length; i++)
+ if (commands[i].equals(FILE_INDICATOR))
c[i] = file.getAbsolutePath();
- } else {
+ else
c[i] = commands[i];
- }
- }
try {
Runtime.getRuntime().exec(c);
}
return true;
- } else {
+ } else
return false;
- }
}