Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/doc/docLoader.groovy

docLoader.groovy (revision 479)
28 28
package org.txm.importer.doc;
29 29

  
30 30
import org.txm.importer.*;
31

  
32 31
import javax.xml.stream.XMLStreamReader;
33

  
34 32
import org.txm.importer.ApplyXsl2;
35 33
import org.txm.importer.ValidateXml;
36 34
import org.txm.importer.xml.importer;
......
42 40
import org.txm.scripts.teitxm.*;
43 41
import org.txm.utils.i18n.*;
44 42
import org.txm.metadatas.*;
45

  
46 43
import javax.xml.stream.*;
47

  
48 44
import org.w3c.dom.Element;
45
import org.txm.utils.xml.DomUtils;
49 46
import org.txm.sw.RemoveTag;
50 47
import org.txm.doc.*;
51 48

  
......
348 345
		println picturesDirectory
349 346
		if (picturesDirectory.exists()) {
350 347
			File picturesDirectory_copy = new File(outdir, "Pictures")
351
			if (!FileCopy.copyFiles(picturesDirectory, picturesDirectory_copy)) {
348
			FileCopy.copyFiles(picturesDirectory, picturesDirectory_copy)
349
			if (!picturesDirectory_copy.exists()) {
352 350
				println "Failed to copy $picturesDirectory to $picturesDirectory_copy"
353 351
			}
354 352
		}

Also available in: Unified diff