Index: topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java diff -u topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.26 topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.27 --- topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.26 Fri Aug 25 16:58:12 2006 +++ topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java Mon Aug 28 11:42:36 2006 @@ -23,9 +23,9 @@ * * @author poussin * - * @version $Revision: 1.26 $ + * @version $Revision: 1.27 $ * - * Last update: $Date: 2006/08/25 16:58:12 $ by : $Author: bpoussin $ + * Last update: $Date: 2006/08/28 11:42:36 $ by : $Author: bpoussin $ */ package org.codelutin.topia.framework; @@ -1459,12 +1459,16 @@ // Si on ne voulait que les inserts, lors de la resauration il // faudrait desactiver les contraintes et les reactiver ensuite - PrintStream out = new PrintStream( - new GZIPOutputStream( - new BufferedOutputStream ( - new FileOutputStream(file)))); + OutputStream os = new BufferedOutputStream ( + new FileOutputStream(file)); -// Writer out = new BufferedWriter(new FileWriter(file)); + PrintStream out; + if (compress) { + out = new PrintStream(new GZIPOutputStream(os)); + } else { + out = new PrintStream(os); + } + for (String line : lines) { out.println(line + ";"); }