[14627] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
| 2 | <!--NewPage-->
|
---|
| 3 | <HTML>
|
---|
| 4 | <HEAD>
|
---|
| 5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:15 NZST 2007 -->
|
---|
| 6 | <TITLE>
|
---|
| 7 | TaskAdapter (Apache Ant API)
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.TaskAdapter class">
|
---|
| 11 |
|
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
---|
| 13 |
|
---|
| 14 | <SCRIPT type="text/javascript">
|
---|
| 15 | function windowTitle()
|
---|
| 16 | {
|
---|
| 17 | parent.document.title="TaskAdapter (Apache Ant API)";
|
---|
| 18 | }
|
---|
| 19 | </SCRIPT>
|
---|
| 20 |
|
---|
| 21 | </HEAD>
|
---|
| 22 |
|
---|
| 23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
| 27 | <A NAME="navbar_top"><!-- --></A>
|
---|
| 28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
| 29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 30 | <TR>
|
---|
| 31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
| 33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 34 | <TR ALIGN="center" VALIGN="top">
|
---|
| 35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 42 | </TR>
|
---|
| 43 | </TABLE>
|
---|
| 44 | </TD>
|
---|
| 45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 46 | </EM>
|
---|
| 47 | </TD>
|
---|
| 48 | </TR>
|
---|
| 49 |
|
---|
| 50 | <TR>
|
---|
| 51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 52 | <A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>
|
---|
| 53 | <A HREF="../../../../org/apache/tools/ant/UnknownElement.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 55 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 56 | <A HREF="TaskAdapter.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 57 | <SCRIPT type="text/javascript">
|
---|
| 58 | <!--
|
---|
| 59 | if(window==top) {
|
---|
| 60 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 61 | }
|
---|
| 62 | //-->
|
---|
| 63 | </SCRIPT>
|
---|
| 64 | <NOSCRIPT>
|
---|
| 65 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 66 | </NOSCRIPT>
|
---|
| 67 |
|
---|
| 68 | </FONT></TD>
|
---|
| 69 | </TR>
|
---|
| 70 | <TR>
|
---|
| 71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 72 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 75 | </TR>
|
---|
| 76 | </TABLE>
|
---|
| 77 | <A NAME="skip-navbar_top"></A>
|
---|
| 78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
| 79 |
|
---|
| 80 | <HR>
|
---|
| 81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
| 82 | <H2>
|
---|
| 83 | <FONT SIZE="-1">
|
---|
| 84 | org.apache.tools.ant</FONT>
|
---|
| 85 | <BR>
|
---|
| 86 | Class TaskAdapter</H2>
|
---|
| 87 | <PRE>
|
---|
| 88 | java.lang.Object
|
---|
| 89 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
| 90 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
| 91 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.TaskAdapter</B>
|
---|
| 92 | </PRE>
|
---|
| 93 | <DL>
|
---|
| 94 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></DD>
|
---|
| 95 | </DL>
|
---|
| 96 | <HR>
|
---|
| 97 | <DL>
|
---|
| 98 | <DT>public class <B>TaskAdapter</B><DT>extends <A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A><DT>implements <A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></DL>
|
---|
| 99 |
|
---|
| 100 | <P>
|
---|
| 101 | Uses introspection to "adapt" an arbitrary Bean which doesn't
|
---|
| 102 | itself extend Task, but still contains an execute method and optionally
|
---|
| 103 | a setProject method.
|
---|
| 104 | <P>
|
---|
| 105 |
|
---|
| 106 | <P>
|
---|
| 107 | <HR>
|
---|
| 108 |
|
---|
| 109 | <P>
|
---|
| 110 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
| 111 |
|
---|
| 112 |
|
---|
| 113 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
| 114 |
|
---|
| 115 | <A NAME="field_summary"><!-- --></A>
|
---|
| 116 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 117 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 118 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 119 | <B>Field Summary</B></FONT></TD>
|
---|
| 120 | </TR>
|
---|
| 121 | </TABLE>
|
---|
| 122 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
| 123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 124 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 125 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
| 126 | </TR>
|
---|
| 127 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 128 | <TD><CODE><A HREF="../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
|
---|
| 129 | </TR>
|
---|
| 130 | </TABLE>
|
---|
| 131 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
| 132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 133 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 134 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
| 135 | </TR>
|
---|
| 136 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 137 | <TD><CODE><A HREF="../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
| 138 | </TR>
|
---|
| 139 | </TABLE>
|
---|
| 140 |
|
---|
| 141 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 142 |
|
---|
| 143 | <A NAME="constructor_summary"><!-- --></A>
|
---|
| 144 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 145 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 146 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 147 | <B>Constructor Summary</B></FONT></TD>
|
---|
| 148 | </TR>
|
---|
| 149 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 150 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#TaskAdapter()">TaskAdapter</A></B>()</CODE>
|
---|
| 151 |
|
---|
| 152 | <BR>
|
---|
| 153 | </TD>
|
---|
| 154 | </TR>
|
---|
| 155 | </TABLE>
|
---|
| 156 |
|
---|
| 157 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 158 |
|
---|
| 159 | <A NAME="method_summary"><!-- --></A>
|
---|
| 160 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 161 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 162 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 163 | <B>Method Summary</B></FONT></TD>
|
---|
| 164 | </TR>
|
---|
| 165 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 166 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 167 | <CODE> void</CODE></FONT></TD>
|
---|
| 168 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#checkProxyClass(java.lang.Class)">checkProxyClass</A></B>(java.lang.Class proxyClass)</CODE>
|
---|
| 169 |
|
---|
| 170 | <BR>
|
---|
| 171 | check if the proxy class is a valid class to use
|
---|
| 172 | with this adapter.</TD>
|
---|
| 173 | </TR>
|
---|
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 176 | <CODE>static void</CODE></FONT></TD>
|
---|
| 177 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#checkTaskClass(java.lang.Class, org.apache.tools.ant.Project)">checkTaskClass</A></B>(java.lang.Class taskClass,
|
---|
| 178 | <A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</CODE>
|
---|
| 179 |
|
---|
| 180 | <BR>
|
---|
| 181 | Checks whether or not a class is suitable to be adapted by TaskAdapter.</TD>
|
---|
| 182 | </TR>
|
---|
| 183 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 185 | <CODE> void</CODE></FONT></TD>
|
---|
| 186 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#execute()">execute</A></B>()</CODE>
|
---|
| 187 |
|
---|
| 188 | <BR>
|
---|
| 189 | Executes the proxied task.</TD>
|
---|
| 190 | </TR>
|
---|
| 191 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 193 | <CODE> java.lang.Object</CODE></FONT></TD>
|
---|
| 194 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#getProxy()">getProxy</A></B>()</CODE>
|
---|
| 195 |
|
---|
| 196 | <BR>
|
---|
| 197 | Returns the target object being proxied.</TD>
|
---|
| 198 | </TR>
|
---|
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 201 | <CODE> void</CODE></FONT></TD>
|
---|
| 202 | <TD><CODE><B><A HREF="../../../../org/apache/tools/ant/TaskAdapter.html#setProxy(java.lang.Object)">setProxy</A></B>(java.lang.Object o)</CODE>
|
---|
| 203 |
|
---|
| 204 | <BR>
|
---|
| 205 | Sets the target object to proxy for.</TD>
|
---|
| 206 | </TR>
|
---|
| 207 | </TABLE>
|
---|
| 208 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
| 209 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 210 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 211 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
| 212 | </TR>
|
---|
| 213 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 214 | <TD><CODE><A HREF="../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#init()">init</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
|
---|
| 215 | </TR>
|
---|
| 216 | </TABLE>
|
---|
| 217 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
| 218 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 219 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 220 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
| 221 | </TR>
|
---|
| 222 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 223 | <TD><CODE><A HREF="../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
| 224 | </TR>
|
---|
| 225 | </TABLE>
|
---|
| 226 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 227 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 228 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 229 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
| 230 | </TR>
|
---|
| 231 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 232 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 233 | </TR>
|
---|
| 234 | </TABLE>
|
---|
| 235 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.TypeAdapter"><!-- --></A>
|
---|
| 236 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 237 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 238 | <TD><B>Methods inherited from interface org.apache.tools.ant.<A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></B></TD>
|
---|
| 239 | </TR>
|
---|
| 240 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 241 | <TD><CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html#getProject()">getProject</A>, <A HREF="../../../../org/apache/tools/ant/TypeAdapter.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
| 242 | </TR>
|
---|
| 243 | </TABLE>
|
---|
| 244 |
|
---|
| 245 | <P>
|
---|
| 246 |
|
---|
| 247 | <!-- ============ FIELD DETAIL =========== -->
|
---|
| 248 |
|
---|
| 249 |
|
---|
| 250 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 251 |
|
---|
| 252 | <A NAME="constructor_detail"><!-- --></A>
|
---|
| 253 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 254 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 255 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 256 | <B>Constructor Detail</B></FONT></TD>
|
---|
| 257 | </TR>
|
---|
| 258 | </TABLE>
|
---|
| 259 |
|
---|
| 260 | <A NAME="TaskAdapter()"><!-- --></A><H3>
|
---|
| 261 | TaskAdapter</H3>
|
---|
| 262 | <PRE>
|
---|
| 263 | public <B>TaskAdapter</B>()</PRE>
|
---|
| 264 | <DL>
|
---|
| 265 | </DL>
|
---|
| 266 |
|
---|
| 267 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 268 |
|
---|
| 269 | <A NAME="method_detail"><!-- --></A>
|
---|
| 270 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 271 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 272 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 273 | <B>Method Detail</B></FONT></TD>
|
---|
| 274 | </TR>
|
---|
| 275 | </TABLE>
|
---|
| 276 |
|
---|
| 277 | <A NAME="checkTaskClass(java.lang.Class, org.apache.tools.ant.Project)"><!-- --></A><H3>
|
---|
| 278 | checkTaskClass</H3>
|
---|
| 279 | <PRE>
|
---|
| 280 | public static void <B>checkTaskClass</B>(java.lang.Class taskClass,
|
---|
| 281 | <A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</PRE>
|
---|
| 282 | <DL>
|
---|
| 283 | <DD>Checks whether or not a class is suitable to be adapted by TaskAdapter.
|
---|
| 284 |
|
---|
| 285 | This only checks conditions which are additionally required for
|
---|
| 286 | tasks adapted by TaskAdapter. Thus, this method should be called by
|
---|
| 287 | Project.checkTaskClass.
|
---|
| 288 |
|
---|
| 289 | Throws a BuildException and logs as Project.MSG_ERR for
|
---|
| 290 | conditions that will cause the task execution to fail.
|
---|
| 291 | Logs other suspicious conditions with Project.MSG_WARN.
|
---|
| 292 | <P>
|
---|
| 293 | <DD><DL>
|
---|
| 294 | </DL>
|
---|
| 295 | </DD>
|
---|
| 296 | <DD><DL>
|
---|
| 297 | <DT><B>Parameters:</B><DD><CODE>taskClass</CODE> - Class to test for suitability.
|
---|
| 298 | Must not be <code>null</code>.<DD><CODE>project</CODE> - Project to log warnings/errors to.
|
---|
| 299 | Must not be <code>null</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/Project.html#checkTaskClass(java.lang.Class)"><CODE>Project.checkTaskClass(Class)</CODE></A></DL>
|
---|
| 300 | </DD>
|
---|
| 301 | </DL>
|
---|
| 302 | <HR>
|
---|
| 303 |
|
---|
| 304 | <A NAME="checkProxyClass(java.lang.Class)"><!-- --></A><H3>
|
---|
| 305 | checkProxyClass</H3>
|
---|
| 306 | <PRE>
|
---|
| 307 | public void <B>checkProxyClass</B>(java.lang.Class proxyClass)</PRE>
|
---|
| 308 | <DL>
|
---|
| 309 | <DD>check if the proxy class is a valid class to use
|
---|
| 310 | with this adapter.
|
---|
| 311 | the class must have a public no-arg "execute()" method.
|
---|
| 312 | <P>
|
---|
| 313 | <DD><DL>
|
---|
| 314 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html#checkProxyClass(java.lang.Class)">checkProxyClass</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></CODE></DL>
|
---|
| 315 | </DD>
|
---|
| 316 | <DD><DL>
|
---|
| 317 | <DT><B>Parameters:</B><DD><CODE>proxyClass</CODE> - the class to check</DL>
|
---|
| 318 | </DD>
|
---|
| 319 | </DL>
|
---|
| 320 | <HR>
|
---|
| 321 |
|
---|
| 322 | <A NAME="execute()"><!-- --></A><H3>
|
---|
| 323 | execute</H3>
|
---|
| 324 | <PRE>
|
---|
| 325 | public void <B>execute</B>()
|
---|
| 326 | throws <A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
| 327 | <DL>
|
---|
| 328 | <DD>Executes the proxied task.
|
---|
| 329 | <P>
|
---|
| 330 | <DD><DL>
|
---|
| 331 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
| 332 | </DD>
|
---|
| 333 | <DD><DL>
|
---|
| 334 |
|
---|
| 335 | <DT><B>Throws:</B>
|
---|
| 336 | <DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the project could not be set
|
---|
| 337 | or the method could not be executed.</DL>
|
---|
| 338 | </DD>
|
---|
| 339 | </DL>
|
---|
| 340 | <HR>
|
---|
| 341 |
|
---|
| 342 | <A NAME="setProxy(java.lang.Object)"><!-- --></A><H3>
|
---|
| 343 | setProxy</H3>
|
---|
| 344 | <PRE>
|
---|
| 345 | public void <B>setProxy</B>(java.lang.Object o)</PRE>
|
---|
| 346 | <DL>
|
---|
| 347 | <DD>Sets the target object to proxy for.
|
---|
| 348 | <P>
|
---|
| 349 | <DD><DL>
|
---|
| 350 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html#setProxy(java.lang.Object)">setProxy</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></CODE></DL>
|
---|
| 351 | </DD>
|
---|
| 352 | <DD><DL>
|
---|
| 353 | <DT><B>Parameters:</B><DD><CODE>o</CODE> - The target object. Must not be <code>null</code>.</DL>
|
---|
| 354 | </DD>
|
---|
| 355 | </DL>
|
---|
| 356 | <HR>
|
---|
| 357 |
|
---|
| 358 | <A NAME="getProxy()"><!-- --></A><H3>
|
---|
| 359 | getProxy</H3>
|
---|
| 360 | <PRE>
|
---|
| 361 | public java.lang.Object <B>getProxy</B>()</PRE>
|
---|
| 362 | <DL>
|
---|
| 363 | <DD>Returns the target object being proxied.
|
---|
| 364 | <P>
|
---|
| 365 | <DD><DL>
|
---|
| 366 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html#getProxy()">getProxy</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</A></CODE></DL>
|
---|
| 367 | </DD>
|
---|
| 368 | <DD><DL>
|
---|
| 369 |
|
---|
| 370 | <DT><B>Returns:</B><DD>the target proxy object</DL>
|
---|
| 371 | </DD>
|
---|
| 372 | </DL>
|
---|
| 373 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 374 | <HR>
|
---|
| 375 |
|
---|
| 376 |
|
---|
| 377 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 378 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 379 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 380 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 381 | <TR>
|
---|
| 382 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 383 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 384 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 385 | <TR ALIGN="center" VALIGN="top">
|
---|
| 386 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 387 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 388 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 389 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 390 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 391 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 392 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 393 | </TR>
|
---|
| 394 | </TABLE>
|
---|
| 395 | </TD>
|
---|
| 396 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 397 | </EM>
|
---|
| 398 | </TD>
|
---|
| 399 | </TR>
|
---|
| 400 |
|
---|
| 401 | <TR>
|
---|
| 402 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 403 | <A HREF="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>
|
---|
| 404 | <A HREF="../../../../org/apache/tools/ant/UnknownElement.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 405 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 406 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 407 | <A HREF="TaskAdapter.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 408 | <SCRIPT type="text/javascript">
|
---|
| 409 | <!--
|
---|
| 410 | if(window==top) {
|
---|
| 411 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 412 | }
|
---|
| 413 | //-->
|
---|
| 414 | </SCRIPT>
|
---|
| 415 | <NOSCRIPT>
|
---|
| 416 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 417 | </NOSCRIPT>
|
---|
| 418 |
|
---|
| 419 | </FONT></TD>
|
---|
| 420 | </TR>
|
---|
| 421 | <TR>
|
---|
| 422 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 423 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 424 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 425 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 426 | </TR>
|
---|
| 427 | </TABLE>
|
---|
| 428 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 429 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 430 |
|
---|
| 431 | <HR>
|
---|
| 432 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
| 433 | </BODY>
|
---|
| 434 | </HTML>
|
---|