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 69530 - Use relative paths in private.properties
Summary: Use relative paths in private.properties
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-29 13:54 UTC by jvic
Modified: 2005-11-29 14:15 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 jvic 2005-11-29 13:54:47 UTC
When creating a project, 'project.properties' always references libraries using
relative path - however, 'private.properties' doesn't. So in the end, the
project as a whole is not working in every different machine.

Example:

In 'project.properties':
file.reference.jhall.jar=../../PPGD_05_INFRAESTRUTURA/lib/jhall.jar

In 'private.properties':
file.reference.jhall.jar=/home/jvictor/dev/workspace/PPGD_05_INFRAESTRUTURA/lib/jhall.jar
Comment 1 Jan Lahoda 2005-11-29 14:12:34 UTC
Sorry, but I do not understand why the project does not work on different machines:
1. You should never share the private.properties among different computers. So
the absolute path should be used only on the single computer.
2. If you check-out a project on a different machine, you should have only
project.properties (not private.properties), and if the relative path is
correct, everything should work OK. If the relative path is not correct, it
needs to be fixed, but this is probably not your case.

Or am I missing something? Please note that you should never share the
nbproject/private directory and its content in the version control system or
copy it into a different machine.
Comment 2 Jan Lahoda 2005-11-29 14:13:02 UTC
.
Comment 3 jvic 2005-11-29 14:15:44 UTC
Ok, i didn't know nbproject/private shouldn't be shared. I thought i could share
the entire nbproject folder? Maybe private shouldn't go inside the project
folder then.