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 254176 - Inconsistencies while adding library paths
Summary: Inconsistencies while adding library paths
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-06 14:15 UTC by ulfzibis
Modified: 2015-08-11 01:15 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 ulfzibis 2015-08-06 14:15:42 UTC
[ BUILD # : 201508011000 ]
[ JDK VERSION : 1.7.0_67 ]

STEPS:
   1a) Right-click on Libraries node and choose Add JAR/Folder
   1b) Choose lib (contains native libraries for access via JNI) <relative>
   2a) Right-click on Test Libraries node and choose Properties
   2b) Add JAR/Folder lib <relative>

ACTUAL:
   1) Created: file.reference.ABC-lib=lib/
   2) Created: file.reference.ABC-lib=lib
      (In the existing reference the '/' becomes removed)

EXPECTED:
   If a file reference is in use, it should not be changed by subsequent
operations.
Comment 1 Tomas Zezula 2015-08-06 16:26:26 UTC
I am not sure if I understand correctly.
I've tried and the added path always ended by '/'.

Here are my steps:
1st) I've created J2SE Ant Project
2nd) I've executed Add JAR/Folder on Libraries Node.
3rd) I've added some folder using relative path
4th) I've executed Add JAR/Folder on Test Libraries Node.
5th) I've added the same folder using relative path as in stem 3)

After both step 3) and 5) the file.reference.build-classes ended by '/'
Comment 2 ulfzibis 2015-08-06 18:00:03 UTC
1), I added the additional folder lib (contains AdsJava.dll) of another 2nd project.
2), for the 4th step I didn't use the context menu action Add JAR/Folder, but Properties and then used the button Add JAR/Folder in the dialogue.
Comment 3 Tomas Zezula 2015-08-10 15:24:46 UTC
The value without '/' is a correct one as it's also generated by absolute path.
fixed jet-main 3f03988cb8be
Thanks for report
Comment 4 Quality Engineering 2015-08-11 01:15:19 UTC
Integrated into 'main-silver', will be available in build *201508110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3f03988cb8be
User: Tomas Zezula <tzezula@netbeans.org>
Log: #254176:Inconsistencies while adding library paths