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 - Project Template wizard - should subst newlines
Summary: Project Template wizard - should subst newlines
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on: 97327
Blocks:
  Show dependency tree
 
Reported: 2005-12-19 23:23 UTC by Jesse Glick
Modified: 2013-08-09 12:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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