Subversion Repositories SmartDukaan

Rev

Rev 2205 | Rev 2227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2205 Rev 2206
Line 332... Line 332...
332
	 * @throws IOException
332
	 * @throws IOException
333
	 */
333
	 */
334
	private void copyFile(String inputFile, String outputFile) throws IOException {
334
	private void copyFile(String inputFile, String outputFile) throws IOException {
335
		File sourceFile = new File(inputFile);
335
		File sourceFile = new File(inputFile);
336
		File destinationFile = new File(outputFile);
336
		File destinationFile = new File(outputFile);
337
/*
337
 
338
		if (!destinationFile.exists())
338
		if (!destinationFile.exists())
339
			destinationFile.createNewFile();
339
			destinationFile.createNewFile();
340
 
340
 
341
		InputStream in = new FileInputStream(sourceFile);
341
		InputStream in = new FileInputStream(sourceFile);
342
		OutputStream out = new FileOutputStream(destinationFile);
342
		OutputStream out = new FileOutputStream(destinationFile);
Line 346... Line 346...
346
		while ((len = in.read(buf)) > 0) {
346
		while ((len = in.read(buf)) > 0) {
347
			out.write(buf, 0, len);
347
			out.write(buf, 0, len);
348
		}
348
		}
349
		in.close();
349
		in.close();
350
		out.close();
350
		out.close();
351
		*/
-
 
352
	}
351
	}
353
	
352
	
354
	// If targetLocation does not exist, it will be created.
353
	// If targetLocation does not exist, it will be created.
355
	public void copyDirectory(File sourceLocation , File targetLocation, String imagePrefix) throws IOException {
354
	public void copyDirectory(File sourceLocation , File targetLocation, String imagePrefix) throws IOException {
356
	 
355