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

Summary: Use relative paths in private.properties
Product: projects Reporter: jvic <jvic>
Component: Ant ProjectAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: tzezula
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.