[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:20 NZST 2007 -->
|
---|
| 6 | <TITLE>
|
---|
| 7 | Length (Apache Ant API)
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.Length 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="Length (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/taskdefs/KeySubst.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
| 53 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.FileMode.html" title="class in org.apache.tools.ant.taskdefs"><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="Length.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: <A HREF="#nested_class_summary">NESTED</A> | <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.taskdefs</FONT>
|
---|
| 85 | <BR>
|
---|
| 86 | Class Length</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.taskdefs.Length</B>
|
---|
| 92 | </PRE>
|
---|
| 93 | <DL>
|
---|
| 94 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></DD>
|
---|
| 95 | </DL>
|
---|
| 96 | <HR>
|
---|
| 97 | <DL>
|
---|
| 98 | <DT>public class <B>Length</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/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></DL>
|
---|
| 99 |
|
---|
| 100 | <P>
|
---|
| 101 | Gets lengths: of files/resources, byte size; of strings, length (optionally trimmed).
|
---|
| 102 | The task is overloaded in this way for semantic reasons, much like Available.
|
---|
| 103 | <P>
|
---|
| 104 |
|
---|
| 105 | <P>
|
---|
| 106 | <DL>
|
---|
| 107 | <DT><B>Since:</B></DT>
|
---|
| 108 | <DD>Ant 1.6.3</DD>
|
---|
| 109 | </DL>
|
---|
| 110 | <HR>
|
---|
| 111 |
|
---|
| 112 | <P>
|
---|
| 113 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
| 114 |
|
---|
| 115 | <A NAME="nested_class_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>Nested Class Summary</B></FONT></TD>
|
---|
| 120 | </TR>
|
---|
| 121 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 122 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 123 | <CODE>static class</CODE></FONT></TD>
|
---|
| 124 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.FileMode.html" title="class in org.apache.tools.ant.taskdefs">Length.FileMode</A></B></CODE>
|
---|
| 125 |
|
---|
| 126 | <BR>
|
---|
| 127 | EnumeratedAttribute operation mode</TD>
|
---|
| 128 | </TR>
|
---|
| 129 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 130 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 131 | <CODE>static class</CODE></FONT></TD>
|
---|
| 132 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.When.html" title="class in org.apache.tools.ant.taskdefs">Length.When</A></B></CODE>
|
---|
| 133 |
|
---|
| 134 | <BR>
|
---|
| 135 | EnumeratedAttribute for the when attribute.</TD>
|
---|
| 136 | </TR>
|
---|
| 137 | </TABLE>
|
---|
| 138 |
|
---|
| 139 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
| 140 |
|
---|
| 141 | <A NAME="field_summary"><!-- --></A>
|
---|
| 142 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 143 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 144 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 145 | <B>Field Summary</B></FONT></TD>
|
---|
| 146 | </TR>
|
---|
| 147 | </TABLE>
|
---|
| 148 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
| 149 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 150 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 151 | <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>
|
---|
| 152 | </TR>
|
---|
| 153 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 154 | <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>
|
---|
| 155 | </TR>
|
---|
| 156 | </TABLE>
|
---|
| 157 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
| 158 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 159 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 160 | <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>
|
---|
| 161 | </TR>
|
---|
| 162 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 163 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
| 164 | </TR>
|
---|
| 165 | </TABLE>
|
---|
| 166 |
|
---|
| 167 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 168 |
|
---|
| 169 | <A NAME="constructor_summary"><!-- --></A>
|
---|
| 170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 171 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 172 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 173 | <B>Constructor Summary</B></FONT></TD>
|
---|
| 174 | </TR>
|
---|
| 175 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 176 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#Length()">Length</A></B>()</CODE>
|
---|
| 177 |
|
---|
| 178 | <BR>
|
---|
| 179 | </TD>
|
---|
| 180 | </TR>
|
---|
| 181 | </TABLE>
|
---|
| 182 |
|
---|
| 183 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 184 |
|
---|
| 185 | <A NAME="method_summary"><!-- --></A>
|
---|
| 186 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 187 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 188 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 189 | <B>Method Summary</B></FONT></TD>
|
---|
| 190 | </TR>
|
---|
| 191 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 193 | <CODE> void</CODE></FONT></TD>
|
---|
| 194 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#add(org.apache.tools.ant.types.FileSet)">add</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fs)</CODE>
|
---|
| 195 |
|
---|
| 196 | <BR>
|
---|
| 197 | Add a FileSet.</TD>
|
---|
| 198 | </TR>
|
---|
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 201 | <CODE> boolean</CODE></FONT></TD>
|
---|
| 202 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#eval()">eval</A></B>()</CODE>
|
---|
| 203 |
|
---|
| 204 | <BR>
|
---|
| 205 | Fulfill the condition contract.</TD>
|
---|
| 206 | </TR>
|
---|
| 207 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 209 | <CODE> void</CODE></FONT></TD>
|
---|
| 210 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#execute()">execute</A></B>()</CODE>
|
---|
| 211 |
|
---|
| 212 | <BR>
|
---|
| 213 | Execute the length task.</TD>
|
---|
| 214 | </TR>
|
---|
| 215 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 217 | <CODE> boolean</CODE></FONT></TD>
|
---|
| 218 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#getTrim()">getTrim</A></B>()</CODE>
|
---|
| 219 |
|
---|
| 220 | <BR>
|
---|
| 221 | Learn whether strings will be trimmed.</TD>
|
---|
| 222 | </TR>
|
---|
| 223 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 225 | <CODE> void</CODE></FONT></TD>
|
---|
| 226 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setFile(java.io.File)">setFile</A></B>(java.io.File file)</CODE>
|
---|
| 227 |
|
---|
| 228 | <BR>
|
---|
| 229 | Set the single file for this task.</TD>
|
---|
| 230 | </TR>
|
---|
| 231 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 233 | <CODE> void</CODE></FONT></TD>
|
---|
| 234 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setLength(long)">setLength</A></B>(long ell)</CODE>
|
---|
| 235 |
|
---|
| 236 | <BR>
|
---|
| 237 | Set the target count number for use as a Condition.</TD>
|
---|
| 238 | </TR>
|
---|
| 239 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 241 | <CODE> void</CODE></FONT></TD>
|
---|
| 242 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setMode(org.apache.tools.ant.taskdefs.Length.FileMode)">setMode</A></B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.FileMode.html" title="class in org.apache.tools.ant.taskdefs">Length.FileMode</A> m)</CODE>
|
---|
| 243 |
|
---|
| 244 | <BR>
|
---|
| 245 | Set the execution mode for working with files.</TD>
|
---|
| 246 | </TR>
|
---|
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 249 | <CODE> void</CODE></FONT></TD>
|
---|
| 250 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setProperty(java.lang.String)">setProperty</A></B>(java.lang.String property)</CODE>
|
---|
| 251 |
|
---|
| 252 | <BR>
|
---|
| 253 | The property in which the length will be stored.</TD>
|
---|
| 254 | </TR>
|
---|
| 255 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 257 | <CODE> void</CODE></FONT></TD>
|
---|
| 258 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setString(java.lang.String)">setString</A></B>(java.lang.String string)</CODE>
|
---|
| 259 |
|
---|
| 260 | <BR>
|
---|
| 261 | Set the string whose length to get.</TD>
|
---|
| 262 | </TR>
|
---|
| 263 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 264 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 265 | <CODE> void</CODE></FONT></TD>
|
---|
| 266 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setTrim(boolean)">setTrim</A></B>(boolean trim)</CODE>
|
---|
| 267 |
|
---|
| 268 | <BR>
|
---|
| 269 | Set whether to trim in string mode.</TD>
|
---|
| 270 | </TR>
|
---|
| 271 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 272 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 273 | <CODE> void</CODE></FONT></TD>
|
---|
| 274 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.html#setWhen(org.apache.tools.ant.taskdefs.Length.When)">setWhen</A></B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.When.html" title="class in org.apache.tools.ant.taskdefs">Length.When</A> w)</CODE>
|
---|
| 275 |
|
---|
| 276 | <BR>
|
---|
| 277 | Set the comparison criteria for use as a Condition:
|
---|
| 278 | "equal", "greater", "less".</TD>
|
---|
| 279 | </TR>
|
---|
| 280 | </TABLE>
|
---|
| 281 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
| 282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 283 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 284 | <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>
|
---|
| 285 | </TR>
|
---|
| 286 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 287 | <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>
|
---|
| 288 | </TR>
|
---|
| 289 | </TABLE>
|
---|
| 290 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
| 291 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 292 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 293 | <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>
|
---|
| 294 | </TR>
|
---|
| 295 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 296 | <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>
|
---|
| 297 | </TR>
|
---|
| 298 | </TABLE>
|
---|
| 299 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 300 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 301 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 302 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
| 303 | </TR>
|
---|
| 304 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 305 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 306 | </TR>
|
---|
| 307 | </TABLE>
|
---|
| 308 |
|
---|
| 309 | <P>
|
---|
| 310 |
|
---|
| 311 | <!-- ============ FIELD DETAIL =========== -->
|
---|
| 312 |
|
---|
| 313 |
|
---|
| 314 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 315 |
|
---|
| 316 | <A NAME="constructor_detail"><!-- --></A>
|
---|
| 317 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 318 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 319 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 320 | <B>Constructor Detail</B></FONT></TD>
|
---|
| 321 | </TR>
|
---|
| 322 | </TABLE>
|
---|
| 323 |
|
---|
| 324 | <A NAME="Length()"><!-- --></A><H3>
|
---|
| 325 | Length</H3>
|
---|
| 326 | <PRE>
|
---|
| 327 | public <B>Length</B>()</PRE>
|
---|
| 328 | <DL>
|
---|
| 329 | </DL>
|
---|
| 330 |
|
---|
| 331 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 332 |
|
---|
| 333 | <A NAME="method_detail"><!-- --></A>
|
---|
| 334 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 335 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 336 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 337 | <B>Method Detail</B></FONT></TD>
|
---|
| 338 | </TR>
|
---|
| 339 | </TABLE>
|
---|
| 340 |
|
---|
| 341 | <A NAME="setProperty(java.lang.String)"><!-- --></A><H3>
|
---|
| 342 | setProperty</H3>
|
---|
| 343 | <PRE>
|
---|
| 344 | public void <B>setProperty</B>(java.lang.String property)</PRE>
|
---|
| 345 | <DL>
|
---|
| 346 | <DD>The property in which the length will be stored.
|
---|
| 347 | <P>
|
---|
| 348 | <DD><DL>
|
---|
| 349 | </DL>
|
---|
| 350 | </DD>
|
---|
| 351 | <DD><DL>
|
---|
| 352 | <DT><B>Parameters:</B><DD><CODE>property</CODE> - the <code>String</code> property key.</DL>
|
---|
| 353 | </DD>
|
---|
| 354 | </DL>
|
---|
| 355 | <HR>
|
---|
| 356 |
|
---|
| 357 | <A NAME="setFile(java.io.File)"><!-- --></A><H3>
|
---|
| 358 | setFile</H3>
|
---|
| 359 | <PRE>
|
---|
| 360 | public void <B>setFile</B>(java.io.File file)</PRE>
|
---|
| 361 | <DL>
|
---|
| 362 | <DD>Set the single file for this task.
|
---|
| 363 | <P>
|
---|
| 364 | <DD><DL>
|
---|
| 365 | </DL>
|
---|
| 366 | </DD>
|
---|
| 367 | <DD><DL>
|
---|
| 368 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - the <code>File</code> whose length to retrieve.</DL>
|
---|
| 369 | </DD>
|
---|
| 370 | </DL>
|
---|
| 371 | <HR>
|
---|
| 372 |
|
---|
| 373 | <A NAME="add(org.apache.tools.ant.types.FileSet)"><!-- --></A><H3>
|
---|
| 374 | add</H3>
|
---|
| 375 | <PRE>
|
---|
| 376 | public void <B>add</B>(<A HREF="../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> fs)</PRE>
|
---|
| 377 | <DL>
|
---|
| 378 | <DD>Add a FileSet.
|
---|
| 379 | <P>
|
---|
| 380 | <DD><DL>
|
---|
| 381 | </DL>
|
---|
| 382 | </DD>
|
---|
| 383 | <DD><DL>
|
---|
| 384 | <DT><B>Parameters:</B><DD><CODE>fs</CODE> - the <code>FileSet</code> to add.</DL>
|
---|
| 385 | </DD>
|
---|
| 386 | </DL>
|
---|
| 387 | <HR>
|
---|
| 388 |
|
---|
| 389 | <A NAME="setLength(long)"><!-- --></A><H3>
|
---|
| 390 | setLength</H3>
|
---|
| 391 | <PRE>
|
---|
| 392 | public void <B>setLength</B>(long ell)</PRE>
|
---|
| 393 | <DL>
|
---|
| 394 | <DD>Set the target count number for use as a Condition.
|
---|
| 395 | <P>
|
---|
| 396 | <DD><DL>
|
---|
| 397 | </DL>
|
---|
| 398 | </DD>
|
---|
| 399 | <DD><DL>
|
---|
| 400 | <DT><B>Parameters:</B><DD><CODE>ell</CODE> - the long length to compare with.</DL>
|
---|
| 401 | </DD>
|
---|
| 402 | </DL>
|
---|
| 403 | <HR>
|
---|
| 404 |
|
---|
| 405 | <A NAME="setWhen(org.apache.tools.ant.taskdefs.Length.When)"><!-- --></A><H3>
|
---|
| 406 | setWhen</H3>
|
---|
| 407 | <PRE>
|
---|
| 408 | public void <B>setWhen</B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.When.html" title="class in org.apache.tools.ant.taskdefs">Length.When</A> w)</PRE>
|
---|
| 409 | <DL>
|
---|
| 410 | <DD>Set the comparison criteria for use as a Condition:
|
---|
| 411 | "equal", "greater", "less". Default is "equal".
|
---|
| 412 | <P>
|
---|
| 413 | <DD><DL>
|
---|
| 414 | </DL>
|
---|
| 415 | </DD>
|
---|
| 416 | <DD><DL>
|
---|
| 417 | <DT><B>Parameters:</B><DD><CODE>w</CODE> - EnumeratedAttribute When.</DL>
|
---|
| 418 | </DD>
|
---|
| 419 | </DL>
|
---|
| 420 | <HR>
|
---|
| 421 |
|
---|
| 422 | <A NAME="setMode(org.apache.tools.ant.taskdefs.Length.FileMode)"><!-- --></A><H3>
|
---|
| 423 | setMode</H3>
|
---|
| 424 | <PRE>
|
---|
| 425 | public void <B>setMode</B>(<A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.FileMode.html" title="class in org.apache.tools.ant.taskdefs">Length.FileMode</A> m)</PRE>
|
---|
| 426 | <DL>
|
---|
| 427 | <DD>Set the execution mode for working with files.
|
---|
| 428 | <P>
|
---|
| 429 | <DD><DL>
|
---|
| 430 | </DL>
|
---|
| 431 | </DD>
|
---|
| 432 | <DD><DL>
|
---|
| 433 | <DT><B>Parameters:</B><DD><CODE>m</CODE> - the <code>FileMode</code> to use.</DL>
|
---|
| 434 | </DD>
|
---|
| 435 | </DL>
|
---|
| 436 | <HR>
|
---|
| 437 |
|
---|
| 438 | <A NAME="setString(java.lang.String)"><!-- --></A><H3>
|
---|
| 439 | setString</H3>
|
---|
| 440 | <PRE>
|
---|
| 441 | public void <B>setString</B>(java.lang.String string)</PRE>
|
---|
| 442 | <DL>
|
---|
| 443 | <DD>Set the string whose length to get.
|
---|
| 444 | <P>
|
---|
| 445 | <DD><DL>
|
---|
| 446 | </DL>
|
---|
| 447 | </DD>
|
---|
| 448 | <DD><DL>
|
---|
| 449 | <DT><B>Parameters:</B><DD><CODE>string</CODE> - <code>String</code>.</DL>
|
---|
| 450 | </DD>
|
---|
| 451 | </DL>
|
---|
| 452 | <HR>
|
---|
| 453 |
|
---|
| 454 | <A NAME="setTrim(boolean)"><!-- --></A><H3>
|
---|
| 455 | setTrim</H3>
|
---|
| 456 | <PRE>
|
---|
| 457 | public void <B>setTrim</B>(boolean trim)</PRE>
|
---|
| 458 | <DL>
|
---|
| 459 | <DD>Set whether to trim in string mode.
|
---|
| 460 | <P>
|
---|
| 461 | <DD><DL>
|
---|
| 462 | </DL>
|
---|
| 463 | </DD>
|
---|
| 464 | <DD><DL>
|
---|
| 465 | <DT><B>Parameters:</B><DD><CODE>trim</CODE> - <code>boolean</code>.</DL>
|
---|
| 466 | </DD>
|
---|
| 467 | </DL>
|
---|
| 468 | <HR>
|
---|
| 469 |
|
---|
| 470 | <A NAME="getTrim()"><!-- --></A><H3>
|
---|
| 471 | getTrim</H3>
|
---|
| 472 | <PRE>
|
---|
| 473 | public boolean <B>getTrim</B>()</PRE>
|
---|
| 474 | <DL>
|
---|
| 475 | <DD>Learn whether strings will be trimmed.
|
---|
| 476 | <P>
|
---|
| 477 | <DD><DL>
|
---|
| 478 | </DL>
|
---|
| 479 | </DD>
|
---|
| 480 | <DD><DL>
|
---|
| 481 |
|
---|
| 482 | <DT><B>Returns:</B><DD>boolean trim setting.</DL>
|
---|
| 483 | </DD>
|
---|
| 484 | </DL>
|
---|
| 485 | <HR>
|
---|
| 486 |
|
---|
| 487 | <A NAME="execute()"><!-- --></A><H3>
|
---|
| 488 | execute</H3>
|
---|
| 489 | <PRE>
|
---|
| 490 | public void <B>execute</B>()</PRE>
|
---|
| 491 | <DL>
|
---|
| 492 | <DD>Execute the length task.
|
---|
| 493 | <P>
|
---|
| 494 | <DD><DL>
|
---|
| 495 | <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>
|
---|
| 496 | </DD>
|
---|
| 497 | <DD><DL>
|
---|
| 498 | </DL>
|
---|
| 499 | </DD>
|
---|
| 500 | </DL>
|
---|
| 501 | <HR>
|
---|
| 502 |
|
---|
| 503 | <A NAME="eval()"><!-- --></A><H3>
|
---|
| 504 | eval</H3>
|
---|
| 505 | <PRE>
|
---|
| 506 | public boolean <B>eval</B>()</PRE>
|
---|
| 507 | <DL>
|
---|
| 508 | <DD>Fulfill the condition contract.
|
---|
| 509 | <P>
|
---|
| 510 | <DD><DL>
|
---|
| 511 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html#eval()">eval</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/taskdefs/condition/Condition.html" title="interface in org.apache.tools.ant.taskdefs.condition">Condition</A></CODE></DL>
|
---|
| 512 | </DD>
|
---|
| 513 | <DD><DL>
|
---|
| 514 |
|
---|
| 515 | <DT><B>Returns:</B><DD>true if the condition is true.
|
---|
| 516 | <DT><B>Throws:</B>
|
---|
| 517 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if an error occurs.</DL>
|
---|
| 518 | </DD>
|
---|
| 519 | </DL>
|
---|
| 520 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 521 | <HR>
|
---|
| 522 |
|
---|
| 523 |
|
---|
| 524 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 525 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 526 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 527 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 528 | <TR>
|
---|
| 529 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 530 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 531 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 532 | <TR ALIGN="center" VALIGN="top">
|
---|
| 533 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 534 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 535 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 536 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 537 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 538 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 539 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 540 | </TR>
|
---|
| 541 | </TABLE>
|
---|
| 542 | </TD>
|
---|
| 543 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 544 | </EM>
|
---|
| 545 | </TD>
|
---|
| 546 | </TR>
|
---|
| 547 |
|
---|
| 548 | <TR>
|
---|
| 549 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 550 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/KeySubst.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
| 551 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Length.FileMode.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 552 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 553 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 554 | <A HREF="Length.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 555 | <SCRIPT type="text/javascript">
|
---|
| 556 | <!--
|
---|
| 557 | if(window==top) {
|
---|
| 558 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 559 | }
|
---|
| 560 | //-->
|
---|
| 561 | </SCRIPT>
|
---|
| 562 | <NOSCRIPT>
|
---|
| 563 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 564 | </NOSCRIPT>
|
---|
| 565 |
|
---|
| 566 | </FONT></TD>
|
---|
| 567 | </TR>
|
---|
| 568 | <TR>
|
---|
| 569 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 570 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <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>
|
---|
| 571 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 572 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 573 | </TR>
|
---|
| 574 | </TABLE>
|
---|
| 575 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 576 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 577 |
|
---|
| 578 | <HR>
|
---|
| 579 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
| 580 | </BODY>
|
---|
| 581 | </HTML>
|
---|