Bug 14869

Summary: Binary flag is not reset after the bin directory is copied
Product: [Eclipse Project] PDE Reporter: Wassim Melhem <wassim.melhem>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Wassim Melhem CLA 2002-04-29 14:36:36 EDT
During template generation, if the bin folder has files as "siblings", these 
files are erroneously copied as they are without processing, because the binary 
flag in org.eclipse.pde.ui.templates.AbstractTemplateSection.generateFiles(...) 
is not reset after the bin folder and its children are copied.

A suggested fix is to replace:
	if (isOkToCreateFile(member)) {
		copyFile(member, dst, binary, monitor);
	}

with

	if (isOkToCreateFile(member)) {
		if (firstLevel) binary = false;
		copyFile(member, dst, binary, monitor);
	}
Comment 1 Dejan Glozic CLA 2002-04-29 15:56:23 EDT
Fixed.