<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2_11) on Fri May 19 07:47:23 CDT 2006 --> <TITLE> CUtil (cpptasks API) </TITLE> <META NAME="keywords" CONTENT="net.sf.antcontrib.cpptasks.CUtil class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="CUtil (cpptasks API)"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/antcontrib/cpptasks/CPUEnum.html" title="class in net.sf.antcontrib.cpptasks"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html" title="class in net.sf.antcontrib.cpptasks"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="CUtil.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.antcontrib.cpptasks</FONT> <BR> Class CUtil</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>net.sf.antcontrib.cpptasks.CUtil</B> </PRE> <HR> <DL> <DT>public class <B>CUtil</B><DT>extends java.lang.Object</DL> <P> Some utilities used by the CC and Link tasks. <P> <P> <DL> <DT><B>Author:</B></DT> <DD>Adam Murdoch</DD> </DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html" title="class in net.sf.antcontrib.cpptasks">CUtil.StringArrayBuilder</A></B></CODE> <BR> A class that splits a white-space, comma-separated list into a String array.</TD> </TR> </TABLE> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#FILETIME_EPSILON">FILETIME_EPSILON</A></B></CODE> <BR> </TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#CUtil()">CUtil</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#addAll(java.util.Vector, java.lang.Object[])">addAll</A></B>(java.util.Vector dest, java.lang.Object[] src)</CODE> <BR> Adds the elements of the array to the given vector</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#checkDirectoryArray(java.lang.String[])">checkDirectoryArray</A></B>(java.lang.String[] names)</CODE> <BR> Checks a array of names for non existent or non directory entries and nulls them out.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#getBasename(java.io.File)">getBasename</A></B>(java.io.File file)</CODE> <BR> Extracts the basename of a file, removing the extension, if present</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.io.File</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#getExecutableLocation(java.lang.String)">getExecutableLocation</A></B>(java.lang.String exeName)</CODE> <BR> Gets the parent directory for the executable file name using the current directory and system executable path</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#getParentPath(java.lang.String)">getParentPath</A></B>(java.lang.String path)</CODE> <BR> Extracts the parent of a file</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.io.File[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#getPathFromEnvironment(java.lang.String, java.lang.String)">getPathFromEnvironment</A></B>(java.lang.String envVariable, java.lang.String delim)</CODE> <BR> Returns an array of File for each existing directory in the specified environment variable</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#getRelativePath(java.lang.String, java.io.File)">getRelativePath</A></B>(java.lang.String base, java.io.File targetFile)</CODE> <BR> Returns a relative path for the targetFile relative to the base directory.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#isActive(org.apache.tools.ant.Project, java.lang.String, java.lang.String)">isActive</A></B>(org.apache.tools.ant.Project p, java.lang.String ifCond, java.lang.String unlessCond)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#isSignificantlyAfter(long, long)">isSignificantlyAfter</A></B>(long time1, long time2)</CODE> <BR> Determines whether time1 is later than time2 to a degree that file system time truncation is not significant.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#isSignificantlyBefore(long, long)">isSignificantlyBefore</A></B>(long time1, long time2)</CODE> <BR> Determines whether time1 is earlier than time2 to a degree that file system time truncation is not significant.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.io.File[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#parsePath(java.lang.String, java.lang.String)">parsePath</A></B>(java.lang.String path, java.lang.String delim)</CODE> <BR> Parse a string containing directories into an File[]</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#runCommand(net.sf.antcontrib.cpptasks.CCTask, java.io.File, java.lang.String[], boolean, org.apache.tools.ant.types.Environment)">runCommand</A></B>(<A HREF="../../../../net/sf/antcontrib/cpptasks/CCTask.html" title="class in net.sf.antcontrib.cpptasks">CCTask</A> task, java.io.File workingDir, java.lang.String[] cmdline, boolean newEnvironment, org.apache.tools.ant.types.Environment env)</CODE> <BR> This method is exposed so test classes can overload and test the arguments without actually spawning the compiler</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#sameList(java.lang.Object[], java.lang.Object[])">sameList</A></B>(java.lang.Object[] a, java.lang.Object[] b)</CODE> <BR> Compares the contents of 2 arrays for equaliy.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#sameList(java.util.Vector, java.lang.Object[])">sameList</A></B>(java.util.Vector v, java.lang.Object[] a)</CODE> <BR> Compares the contents of an array and a Vector for equality.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#sameSet(java.lang.Object[], java.util.Vector)">sameSet</A></B>(java.lang.Object[] a, java.util.Vector b)</CODE> <BR> Compares the contents of an array and a Vector for set equality.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#toArray(java.util.Vector)">toArray</A></B>(java.util.Vector src)</CODE> <BR> Converts a vector to a string array.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.html#xmlAttribEncode(java.lang.String)">xmlAttribEncode</A></B>(java.lang.String attrValue)</CODE> <BR> Replaces any embedded quotes in the string so that the value can be placed in an attribute in an XML file</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="FILETIME_EPSILON"><!-- --></A><H3> FILETIME_EPSILON</H3> <PRE> public static final int <B>FILETIME_EPSILON</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.sf.antcontrib.cpptasks.CUtil.FILETIME_EPSILON">Constant Field Values</A></DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="CUtil()"><!-- --></A><H3> CUtil</H3> <PRE> public <B>CUtil</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="addAll(java.util.Vector, java.lang.Object[])"><!-- --></A><H3> addAll</H3> <PRE> public static void <B>addAll</B>(java.util.Vector dest, java.lang.Object[] src)</PRE> <DL> <DD>Adds the elements of the array to the given vector <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="checkDirectoryArray(java.lang.String[])"><!-- --></A><H3> checkDirectoryArray</H3> <PRE> public static int <B>checkDirectoryArray</B>(java.lang.String[] names)</PRE> <DL> <DD>Checks a array of names for non existent or non directory entries and nulls them out. <P> <DD><DL> <DT><B>Returns:</B><DD>Count of non-null elements</DL> </DD> </DL> <HR> <A NAME="getBasename(java.io.File)"><!-- --></A><H3> getBasename</H3> <PRE> public static java.lang.String <B>getBasename</B>(java.io.File file)</PRE> <DL> <DD>Extracts the basename of a file, removing the extension, if present <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getExecutableLocation(java.lang.String)"><!-- --></A><H3> getExecutableLocation</H3> <PRE> public static java.io.File <B>getExecutableLocation</B>(java.lang.String exeName)</PRE> <DL> <DD>Gets the parent directory for the executable file name using the current directory and system executable path <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>exeName</CODE> - Name of executable such as "cl.exe" <DT><B>Returns:</B><DD>parent directory or null if not located</DL> </DD> </DL> <HR> <A NAME="getParentPath(java.lang.String)"><!-- --></A><H3> getParentPath</H3> <PRE> public static java.lang.String <B>getParentPath</B>(java.lang.String path)</PRE> <DL> <DD>Extracts the parent of a file <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getPathFromEnvironment(java.lang.String, java.lang.String)"><!-- --></A><H3> getPathFromEnvironment</H3> <PRE> public static java.io.File[] <B>getPathFromEnvironment</B>(java.lang.String envVariable, java.lang.String delim)</PRE> <DL> <DD>Returns an array of File for each existing directory in the specified environment variable <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>envVariable</CODE> - environment variable name such as "LIB" or "INCLUDE"<DD><CODE>delim</CODE> - delimitor used to separate parts of the path, typically ";" or ":" <DT><B>Returns:</B><DD>array of File's for each part that is an existing directory</DL> </DD> </DL> <HR> <A NAME="getRelativePath(java.lang.String, java.io.File)"><!-- --></A><H3> getRelativePath</H3> <PRE> public static java.lang.String <B>getRelativePath</B>(java.lang.String base, java.io.File targetFile)</PRE> <DL> <DD>Returns a relative path for the targetFile relative to the base directory. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>base</CODE> - base directory as returned by File.getCanonicalPath()<DD><CODE>targetFile</CODE> - target file <DT><B>Returns:</B><DD>relative path of target file. Returns targetFile if there were no commonalities between the base and the target</DL> </DD> </DL> <HR> <A NAME="isActive(org.apache.tools.ant.Project, java.lang.String, java.lang.String)"><!-- --></A><H3> isActive</H3> <PRE> public static boolean <B>isActive</B>(org.apache.tools.ant.Project p, java.lang.String ifCond, java.lang.String unlessCond) throws org.apache.tools.ant.BuildException</PRE> <DL> <DD><DL> <DT><B>Throws:</B> <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> </DD> </DL> <HR> <A NAME="parsePath(java.lang.String, java.lang.String)"><!-- --></A><H3> parsePath</H3> <PRE> public static java.io.File[] <B>parsePath</B>(java.lang.String path, java.lang.String delim)</PRE> <DL> <DD>Parse a string containing directories into an File[] <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>path</CODE> - path string, for example ".;c:\something\include"<DD><CODE>delim</CODE> - delimiter, typically ; or :</DL> </DD> </DL> <HR> <A NAME="runCommand(net.sf.antcontrib.cpptasks.CCTask, java.io.File, java.lang.String[], boolean, org.apache.tools.ant.types.Environment)"><!-- --></A><H3> runCommand</H3> <PRE> public static int <B>runCommand</B>(<A HREF="../../../../net/sf/antcontrib/cpptasks/CCTask.html" title="class in net.sf.antcontrib.cpptasks">CCTask</A> task, java.io.File workingDir, java.lang.String[] cmdline, boolean newEnvironment, org.apache.tools.ant.types.Environment env) throws org.apache.tools.ant.BuildException</PRE> <DL> <DD>This method is exposed so test classes can overload and test the arguments without actually spawning the compiler <P> <DD><DL> <DT><B>Throws:</B> <DD><CODE>org.apache.tools.ant.BuildException</CODE></DL> </DD> </DL> <HR> <A NAME="sameList(java.lang.Object[], java.lang.Object[])"><!-- --></A><H3> sameList</H3> <PRE> public static boolean <B>sameList</B>(java.lang.Object[] a, java.lang.Object[] b)</PRE> <DL> <DD>Compares the contents of 2 arrays for equaliy. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="sameList(java.util.Vector, java.lang.Object[])"><!-- --></A><H3> sameList</H3> <PRE> public static boolean <B>sameList</B>(java.util.Vector v, java.lang.Object[] a)</PRE> <DL> <DD>Compares the contents of an array and a Vector for equality. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="sameSet(java.lang.Object[], java.util.Vector)"><!-- --></A><H3> sameSet</H3> <PRE> public static boolean <B>sameSet</B>(java.lang.Object[] a, java.util.Vector b)</PRE> <DL> <DD>Compares the contents of an array and a Vector for set equality. Assumes input array and vector are sets (i.e. no duplicate entries) <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toArray(java.util.Vector)"><!-- --></A><H3> toArray</H3> <PRE> public static java.lang.String[] <B>toArray</B>(java.util.Vector src)</PRE> <DL> <DD>Converts a vector to a string array. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="xmlAttribEncode(java.lang.String)"><!-- --></A><H3> xmlAttribEncode</H3> <PRE> public static java.lang.String <B>xmlAttribEncode</B>(java.lang.String attrValue)</PRE> <DL> <DD>Replaces any embedded quotes in the string so that the value can be placed in an attribute in an XML file <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>attrValue</CODE> - value to be expressed <DT><B>Returns:</B><DD>equivalent attribute literal</DL> </DD> </DL> <HR> <A NAME="isSignificantlyBefore(long, long)"><!-- --></A><H3> isSignificantlyBefore</H3> <PRE> public static boolean <B>isSignificantlyBefore</B>(long time1, long time2)</PRE> <DL> <DD>Determines whether time1 is earlier than time2 to a degree that file system time truncation is not significant. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>time1</CODE> - long first time value<DD><CODE>time2</CODE> - long second time value <DT><B>Returns:</B><DD>boolean if first time value is earlier than second time value. If the values are within the rounding error of the file system return false.</DL> </DD> </DL> <HR> <A NAME="isSignificantlyAfter(long, long)"><!-- --></A><H3> isSignificantlyAfter</H3> <PRE> public static boolean <B>isSignificantlyAfter</B>(long time1, long time2)</PRE> <DL> <DD>Determines whether time1 is later than time2 to a degree that file system time truncation is not significant. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>time1</CODE> - long first time value<DD><CODE>time2</CODE> - long second time value <DT><B>Returns:</B><DD>boolean if first time value is later than second time value. If the values are within the rounding error of the file system return false.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/antcontrib/cpptasks/CPUEnum.html" title="class in net.sf.antcontrib.cpptasks"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html" title="class in net.sf.antcontrib.cpptasks"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="CUtil.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright © 2001-2006 Ant-Contrib project. All Rights Reserved. </BODY> </HTML>