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 45283 - code generated for web support in new project uses custom netbeans task for copyfiles
Summary: code generated for web support in new project uses custom netbeans task for c...
Status: CLOSED DUPLICATE of bug 45284
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 14:15 UTC by navneet
Modified: 2006-06-03 23:08 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 navneet 2004-06-21 14:15:26 UTC
copyfiles is an unnecessary task that has been
included in the build-impl.xml that is generated
for the web project. 

When you try to specuify a directory for copy, ant
will give an error. Its better to use ant copy
task rather than build a custom task for that.

Also, this is a task, unlike the other nbxxx,
tasks that cannot be ignored for the build to run
in ant setups outside netbeans.

i request you to remove this and any other such
dependency that will need me to include nb
specific files for building the project outside
the nb environment. Any task that can be ignored (
like deploy, etc ) is fine. I need to build
outside of nb for the project to be really protable.
Comment 1 Jesse Glick 2004-06-21 15:08:03 UTC
AFAIK this is WONTFIX; Ant's built-in tasks are simply not powerful
enough to perform what is needed here, or of course they would have
been used.

Of course you can build the project without the IDE around, but you
need to include this task JAR somewhere - could be moved into a lib/
subdir of the project for maximum portability. The IDE's user's guide
will explain how to do these things for various project types when we
make a release; for now you can probably figure it out.

Someone should however investigate "this is a task, unlike the other
nbxxx, tasks that cannot be ignored". It would be preferable if the
user were somehow able (by editing build.xml in a reasonable way) to
avoid usage of all nonstandard tasks.
Comment 2 navneet 2004-06-21 15:25:52 UTC
it must be noted that the copyfiles task internally uses a ant task
that fails because it needs to use <fileset> when given a directory. i
don;t know the reason for this.

Comment 3 Jesse Glick 2004-06-21 18:37:11 UTC
If there is a particular failure you have observed please include
details to reproduce if you have them.
Comment 4 Pavel Buzek 2004-06-29 18:17:15 UTC
Jarda suggested a solution. I missed this task and I filed a task with
an example in attachment.

*** This issue has been marked as a duplicate of 45284 ***