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

Summary: Platform should not be hard-coded in Package-*.bash
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: ProjectAssignee: Thomas Preisler <thp>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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 ***