You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/06/12 17:02:01 UTC
DO NOT REPLY [Bug 39786] New: - project.createTask() does not work for presets
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39786
Summary: project.createTask() does not work for presets
Product: Ant
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: dev@ant.apache.org
ReportedBy: peterreilly@apache.org
The following does not work:
<presetdef name="hello-there">
<echo>Hello There</echo>
</presetdef>
<script language="beanshell">
import org.apache.tools.ant.taskdefs.MacroInstance;
import org.apache.tools.ant.BuildException;
task = project.createTask("hello-there"); // error
</script>
This will throw a
java.lang.ClassCastException
at
org.apache.tools.ant.ComponentHelper.createNewTask(ComponentHelper.java:462)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org