Bug 14869 - Binary flag is not reset after the bin directory is copied
Summary: Binary flag is not reset after the bin directory is copied
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-29 14:36 EDT by Wassim Melhem CLA
Modified: 2002-04-29 15:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.