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 205380 - copylibs doesn't support the "rebase" attribute
Summary: copylibs doesn't support the "rebase" attribute
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 203124 211657 (view as bug list)
Depends on: 214450
Blocks:
  Show dependency tree
 
Reported: 2011-11-21 20:06 UTC by kitfox
Modified: 2012-09-03 15:14 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (74.94 KB, application/octet-stream)
2011-11-21 20:09 UTC, kitfox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2011-11-21 20:06:17 UTC
I manage the SvgSalamander project on java.net.  It's not too big and you can get the sources at http://java.net/projects/svgsalamander/sources/svn/show

I've been building and running this in NB 6.9.1 until recently and have been having no problems.  But when I open and build this project in NB 7.1beta, an attempt to build produces the following error:

...
svg-salamander-core.compile:
Created dir: C:\dev\java.net\svgsalamander\trunk\svg-core\dist
C:\dev\java.net\svgsalamander\trunk\svg-example\nbproject\build-impl.xml:583: The following error occurred while executing this line:
C:\dev\java.net\svgsalamander\trunk\svg-example\nbproject\build-impl.xml:1060: The following error occurred while executing this line:
C:\dev\java.net\svgsalamander\trunk\svg-core\nbproject\build-impl.xml:733: The following error occurred while executing this line:
C:\dev\java.net\svgsalamander\trunk\svg-core\nbproject\build-impl.xml:557: copylibs doesn't support the "rebase" attribute
BUILD FAILED (total time: 15 seconds)
e


What's worse, NB 7.1beta is automatically changing my /nbproject, which makes it impossible for me to go back to NB 6.9.1.  While with SVGSalamander I can simply revert (because I have not checked in any changes in a while), I have not been so lucky with other projects which I am now finding impossible to run on older versions of NB.
Comment 1 kitfox 2011-11-21 20:09:05 UTC
Created attachment 113383 [details]
Log file
Comment 2 Tomas Zezula 2011-11-22 10:21:40 UTC
You have per project libraries which contains the old copylibs.
You need to update it to newer version (the simplest way is copying from new project to your one,
another way is to remove it from project and from project libraries, delete it from lib folder and readd it in a new IDE).
Comment 3 dgradwell 2012-01-07 16:27:50 UTC
This bug affects me too.
Comment 4 jirka_x1 2012-01-10 14:32:36 UTC
Why is this bug marked as won't fix? At least mention it somewhere prominently as a non-compatible change.

Anyway, I replaced all lib\CopyLibs\org-netbeans-modules-java-j2seproject-copylibstask.jar files in my projects by the NetBeans 7.1\java\ant\extra\org-netbeans-modules-java-j2seproject-copylibstask.jar and it works now.
Comment 5 eino 2012-01-26 13:38:30 UTC
(In reply to comment #2)
> You have per project libraries which contains the old copylibs.
> You need to update it to newer version (the simplest way is copying from new
> project to your one,
> another way is to remove it from project and from project libraries, delete it
> from lib folder and readd it in a new IDE).


I have this same issue with my project. Can you tell step by step what I must do, please.
Comment 6 Tomas Zezula 2012-01-26 13:57:17 UTC
Here are the steps:
In your projects there is shared libraries folder, probably libs. In this folder locate CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar. Overwrite this task by by NetBeans/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar.

I am reopening the issue, the IDE probably can do this when the project is opened or in broken references support.
Comment 7 Marian Mirilovic 2012-05-11 15:27:53 UTC
*** Bug 203124 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Zezula 2012-06-06 13:32:25 UTC
*** Bug 211657 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Zezula 2012-06-19 13:49:53 UTC
Requires an API change, issue # 214450
Comment 10 Tomas Zezula 2012-06-20 08:05:26 UTC
Fixed jet-main 325db673e9ca
Comment 11 Jan Lahoda 2012-06-20 12:13:09 UTC
Seems fine to me.
Comment 12 Petr Cyhelsky 2012-06-21 09:02:23 UTC
verified fixed in jet-main
Comment 13 Tomas Zezula 2012-06-22 06:50:25 UTC
Transplanted into NB 7.2:
releases b68edae925ea, a96043bc4146
Comment 14 Quality Engineering 2012-06-23 04:36:03 UTC
Integrated into 'main-golden', will be available in build *201206230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/325db673e9ca
User: Tomas Zezula <tzezula@netbeans.org>
Log: #205380:copylibs doesn't support the "rebase" attribute
Comment 15 Quality Engineering 2012-06-24 02:39:28 UTC
Integrated into 'releases', will be available in build *201206232201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/b68edae925ea
User: Tomas Zezula <tzezula@netbeans.org>
Log: #205380:copylibs doesn't support the "rebase" attribute
Comment 16 Marian Mirilovic 2012-06-24 19:58:53 UTC
... pending verification in NB 7.2
Comment 17 metabit 2012-08-31 21:09:24 UTC
Bug still exists in NetBeans 7.1.2 (Build 201112071828).

If you need additional information for verification, please tell.
Comment 18 metabit 2012-08-31 21:13:19 UTC
(In reply to comment #17)
> Bug still exists in NetBeans 7.1.2 (Build 201112071828).
> 
> If you need additional information for verification, please tell.

Removing the rebase-attribute from line 544 in the build-impl.xml as a workaround did the trick. But that's not a solution - either the rebase-attribute wasn't supposed to be there in the first place, or it is correct in that line but doesn't work as expected. Either way, I think it's still a bug.
Comment 19 Tomas Zezula 2012-09-03 15:14:53 UTC
>Bug still exists in NetBeans 7.1.2 (Build 201112071828).
Target milestone is 7.2.
There is no back port to 7.1.x release.