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 13168 - Generate script for custom task
Summary: Generate script for custom task
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-25 10:14 UTC by Milan Kubec
Modified: 2003-06-30 14:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2001-06-25 10:14:07 UTC
IDE could create build script for custom task created from template, easy one
just for compilation and jarring and possible deploying. It's likely that the
custom task will be used also outside of IDE (and one would need to compile it).
It could be also pasted into some existing script for building the project which
is the custom task used in.
Comment 1 Jesse Glick 2001-06-26 14:40:09 UTC
I don't think this could be useful enough. Typical use of a custom task:

<javac srcdir="tasks" destdir="tasks"/>
<taskdef name="mytask" classname="my.Task" classpath="tasks"/>

Given that the template would not know for sure (1) what your task would be
called, (2) what its class name would be (might be able to guess at this), (3)
what its class path would be, there would be pretty much nothing left for it to
provide; you would do as much work fixing what the template provided, as you
would writing it from scratch. And the Ant code to build the task would probably
be in some other script anyway, so the user would have to copy and paste the
generated code elsewhere, then delete the silly 2- or 3-line script it was in.

If there is ever a general Ant wizard for adding entries to build scripts when
new objects are made, then for the type of new object "Ant task" this could
insert a couple lines like those above--just as "Java source" or "JSP" would
insert something. Until then I don't think this would work well though.
Comment 2 Milan Kubec 2001-06-27 14:22:52 UTC
OK.
Comment 3 Quality Engineering 2003-06-30 14:45:54 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.