From 0f8e2468d8c30d2d83caf802d85215a5e5eabb66 Mon Sep 17 00:00:00 2001 From: Kaloyan Enimanev Date: Sun, 17 Jul 2011 23:26:54 +0200 Subject: [PATCH 1/3] bugfix: execute processes only once --- .../java/com/izforge/izpack/util/FileExecutor.java | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/izpack-util/src/main/java/com/izforge/izpack/util/FileExecutor.java b/izpack-util/src/main/java/com/izforge/izpack/util/FileExecutor.java index c5d1693..ce4a609 100644 --- a/izpack-util/src/main/java/com/izforge/izpack/util/FileExecutor.java +++ b/izpack-util/src/main/java/com/izforge/izpack/util/FileExecutor.java @@ -21,15 +21,19 @@ package com.izforge.izpack.util; -import com.izforge.izpack.api.handler.AbstractUIHandler; -import com.izforge.izpack.data.ExecutableFile; - -import java.io.*; +import java.io.File; +import java.io.FilenameFilter; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.StringWriter; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; +import com.izforge.izpack.api.handler.AbstractUIHandler; +import com.izforge.izpack.data.ExecutableFile; + /** * Executes a bunch of files. This class is intended to do a system dependent installation * postprocessing. Executable file can be any file installed with current package. After execution @@ -227,8 +231,6 @@ public class FileExecutor process = Runtime.getRuntime().exec(params); } - process = Runtime.getRuntime().exec(params); - boolean isConsole = false;// TODO: impl from xml , but works already // if this flag is true -- 1.7.4.1