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 195980 - Platform should not be hard-coded in Package-*.bash
Summary: Platform should not be hard-coded in Package-*.bash
Status: RESOLVED DUPLICATE of bug 188584
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 05:30 UTC by Vladimir Kvashin
Modified: 2012-03-26 07:33 UTC (History)
0 users

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 Vladimir Kvashin 2011-02-25 05:30:59 UTC
I have a makefile based project (it's in NB sources, in cnd.remote/tools) that have a universal makefile that automatically builds for the platform it runs on. 

But project system generates Package-*.bash scripts that have hard-coded platform.

This is very inconvenient since the project is under version control, and these files differ each time I work on different platform.
Comment 1 Vladimir Kvashin 2011-02-25 05:32:08 UTC
Another possible solution is not to generate such scripts for makefile based projects, or to generate it by user request only.
Comment 2 Thomas Preisler 2011-03-15 18:29:16 UTC
The generated projects are not designed to be platform agnostic, the metadata is but the generated project is not and has never been. This is an issue that keeps coming back and to solve it is a very hard problem. Think of complex projects with subprojects and libraries and it becomes almost impossible to generate a project that builds correctly on all platforms. Moreover it is rarely an issue for 'real' users because the issue is normally solved with multiple configurations (one of the reasons configurations exists), it is probably only an 'issue' for us developers that have small simple projects we would like to move from system to system and don't want to create multiple configurations for. 

Will close as dup of 188584.

*** This bug has been marked as a duplicate of bug 188584 ***