This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70605

Summary: Project Template wizard - should subst newlines
Product: apisupport Reporter: Jesse Glick <jglick>
Component: TemplatesAssignee: Martin Kozeny <mkozeny>
Status: NEW ---    
Severity: blocker CC: tboudreau
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 97327    
Bug Blocks:    

Description Jesse Glick 2005-12-19 23:23:41 UTC
Project files in the project template ZIP of textual type should substitute
newlines to the platform native convention when unpacking.
Comment 1 Jesse Glick 2006-01-24 00:09:04 UTC
Radek do you want to try this one? I'm not exactly sure how it should figure out
which ZipEntry's are textual. The best I can think of is to extract the entry
*first*, then check fo.getMIMEType().startsWith("text/") and if true, do it over
w/ NL substs - which is kind of ugly.

May be better to defer this and write an API for a future platform release that
would make unzipping project templates easier in general, so generated code can
be simplified.
Comment 2 Jesse Glick 2010-05-04 22:00:27 UTC
simple.project.templates is the most likely candidate for fixing this properly. Would also simplify fixes such as for bug #65595.

The API module would need to be stabilized, moved to ide cluster, and made public before apisupport could rely on it.