Revision 2113

tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZPager.groovy (revision 2113)
164 164
		if (!mustBuildFacsEdition) return true;
165 165

  
166 166
		String imageDirectoryPath = project.getEditionDefinition("facs").getImagesDirectory();
167
		File imageDirectory = null
168
		
167 169
		if (imageDirectoryPath != null) {
168 170
			imageDirectoryPath = imageDirectoryPath.trim()
169
			File imageDirectory = new File(imageDirectoryPath);
170 171
			if (!imageDirectoryPath.startsWith("http") && imageDirectoryPath.length()== 0 && !imageDirectory.exists() && !imageDirectory.isDirectory()) {
171 172
				imageDirectory = null;
172 173
			}
......
229 230
			}
230 231
		}
231 232

  
233
		
232 234
		if (!imageDirectoryPath.startsWith("http") && imageDirectory != null) { // copy files only if local
233 235
			File editionImagesDirectory = new File(newEditionDirectory, "res/images/"+corpusname+"/facs");
234 236
			editionImagesDirectory.mkdirs();

Also available in: Unified diff