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 131352 - dependencies to other projects do not accept relative paths
Summary: dependencies to other projects do not accept relative paths
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 23:51 UTC by Thomas Preisler
Modified: 2008-08-24 21:12 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 Thomas Preisler 2008-03-27 23:51:40 UTC
Original CR: 6674260 dependencies to other projects do not accept relative paths

FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
SunOS sun1dev 5.10 Generic_127111-03 sun4v sparc SUNW,Sun-Fire-T1000
Linux su2 2.6.18-5-686-bigmem #1 SMP Wed Oct 3 01:22:56 UTC 2007 i686 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Adding a dependency to other projects via "project properties -> Linker -> Libraries -> Add Project" does not seem to work:

Adding a depending project is a great feature because it builds not only my current project but also all my sub
projects. Unfortunately I did not find a way to enter a relative path to my sub projects via the IDE. It will always be
inserted into the configurations.xml as

<linkerLibItems>
<linkerLibProjectItem>
<makeArtifact PL="/new/workl/el/pro/monitor"
CT="3"
CN="objsol10"
AC="false"
BL="true"
WD="/new/workl/el/pro/monitor"
BC="${MAKE} -f Makefile CONF=objsol10"
CC="${MAKE} -f Makefile CONF=objsol10 clean"
OP="objsol10/libumonitor.a">

In all my projects exists a directory called "mod" which contains links to all required sub projects. Therefore I would
like to enter "mod/monitor" as a subproject that should result in a configurations.xml entry like this:

<linkerLibItems>
<linkerLibProjectItem>
<makeArtifact PL="mod/monitor"
CT="3"
CN="objsol10"
AC="false"
BL="true"
WD="mod/monitor"
BC="${MAKE} -f Makefile CONF=objsol10"
CC="${MAKE} -f Makefile CONF=objsol10 clean"
OP="objsol10/libumonitor.a">

I made that adjustment manually but this had been overwritten by SunStudio as long as I did not make the same adjustment
in the project.xml:

changing
<make-dep-projects>
<make-dep-project>/new/workl/el/pro/monitor</make-dep-project>
</make-dep-projects>

into
<make-dep-projects>
<make-dep-project>mod/monitor</make-dep-project>
</make-dep-projects>


For further details please look at the following thread: http://forum.java.sun.com/thread.jspa?threadID=5269202&tstart=0


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just try to add a relative dependency to another project

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
  To me the easiest solution to solve this problem would be to allow the user to press "Add Project Library" when a
relative path is given in "File Name".

Additionally a relative path should be assigned to a dependency when "Store path as:" is set to "Relative". But since
this would not help me with my mod - directory I would like to be able to add a dependency as described above.
ACTUAL -
Dependencies are stored via absolute paths

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
see "Description"
*** (#1 of 1): 2008-03-11 21:18:11 PDT christina.rivera@sun.com
Comment 1 Thomas Preisler 2008-08-24 21:12:59 UTC
It seems to work for me. Make sure Tools|Options|C/C++|Project Options|File Path Mode is set to Always Relative.