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 134642 - revive <copylibs> task
Summary: revive <copylibs> task
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks: 138063
  Show dependency tree
 
Reported: 2008-05-06 23:21 UTC by David Konecny
Modified: 2008-06-27 16:05 UTC (History)
6 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
patch (15.11 KB, text/plain)
2008-06-26 00:24 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2008-05-06 23:21:44 UTC
Revive <copylibs> task and get rid of libs.<lib-name>.classpath.libfile.<index> properties.

See also:
http://www.nabble.com/can-we-use-Ant-proprietary-task-in-web-j2ee-projects-again--(eg.-%3Ccopyfiles%3E)-td16439851.html
http://www.netbeans.org/issues/show_bug.cgi?id=52155
Comment 1 David Konecny 2008-06-26 00:20:40 UTC
Here is first couple of changes to implement this task. Please speak up if you disagree:

* move <copyfiles> task from web.project to java.j2seproject (that is move
web.project/antsrc/org/netbeans/modules/web/project/ant/CopyFiles.java to
java.j2seproject/copylibstask/src/org/netbeans/modules/java/j2seproject/copylibstask/CopyFiles.java). I want to avoid
having two Ant task jars with very similar features one in java cluster and one in web cluster. That's why I'm moving it
from web to java. Perhaps it can be of use in java cluster in future.

* cleaning up what should have been done as issue 52155: renaming enterprise5/ant/extra/copyfiles.jar to
enterprise5/ant/extra/jspcompile.jar; renaming copyfiles.classpath property to jspctask.classpath

See diff I'm going to attach for more details.

Q: is it OK to keep CopyFiles.java in copylibstask package or should I put it into its own one?

Thanks for your comments. I would like to commit this change in a day or two.
Comment 2 David Konecny 2008-06-26 00:24:51 UTC
Created attachment 63469 [details]
patch
Comment 3 David Konecny 2008-06-27 08:24:02 UTC
Implemented:
647ad6056049
bc68516feea1

I intentionally have not updated j2ee/web XML schemas. Instead I placed comment there saying which attributes are
obsolete now. They should be removed from schema with a future incompatible change. Not removing them allows users to
try out NB6.5 and still use NB6.1. Opening project in NB6.5 will remove some properties though and opening the project
againt in NB 6.1 will add them.
Comment 4 Quality Engineering 2008-06-27 16:05:03 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #285 build
Changeset: http://hg.netbeans.org/main/rev/647ad6056049
User: David Konecny <dkonecny@netbeans.org>
Log: #134642 - revive <copylibs> task