<!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.6.0_06) on Tue Nov 30 14:45:46 PST 2010 --> <TITLE> AddTask (P4Ant) </TITLE> <META NAME="date" CONTENT="2010-11-30"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="AddTask (P4Ant)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= 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=2 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="class-use/AddTask.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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"> PREV CLASS <A HREF="../../../../../com/perforce/p4java/ant/tasks/ChangesTask.html" title="class in com.perforce.p4java.ant.tasks"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/perforce/p4java/ant/tasks/AddTask.html" target="_top"><B>FRAMES</B></A> <A HREF="AddTask.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_classes_inherited_from_class_com.perforce.p4java.ant.tasks.ServerTask">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"> com.perforce.p4java.ant.tasks</FONT> <BR> Class AddTask</H2> <PRE> java.lang.Object <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.ProjectComponent <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">org.apache.tools.ant.Task <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks">com.perforce.p4java.ant.tasks.PerforceTask</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html" title="class in com.perforce.p4java.ant.tasks">com.perforce.p4java.ant.tasks.ServerTask</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html" title="class in com.perforce.p4java.ant.tasks">com.perforce.p4java.ant.tasks.ClientTask</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.perforce.p4java.ant.tasks.AddTask</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD> </DL> <HR> <DL> <DT><PRE>public class <B>AddTask</B><DT>extends <A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html" title="class in com.perforce.p4java.ant.tasks">ClientTask</A></DL> </PRE> <P> Opens new files for adding to the depot. If the files exist on the client they are read to determine if they are text or binary. If the file type cannot be determined then it is assumed to be text. </p> <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks"><CODE>PerforceTask</CODE></A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html" title="class in com.perforce.p4java.ant.tasks"><CODE>ClientTask</CODE></A></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"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.perforce.p4java.ant.tasks.ServerTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html" title="class in com.perforce.p4java.ant.tasks">ServerTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.GlobalOption.html" title="class in com.perforce.p4java.ant.tasks">ServerTask.GlobalOption</A></CODE></TD> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.perforce.p4java.ant.tasks.PerforceTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.Field.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask.Field</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.File.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask.File</A></CODE></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"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#changelist">changelist</A></B></CODE> <BR> If positive, the opened files are put into the pending changelist identified by changelistId (this changelist must have been previously created for this to succeed).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#fileType">fileType</A></B></CODE> <BR> If null, it looks for a filetype using the name-to-type mapping table managed by 'p4 typemap'.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#noUpdate">noUpdate</A></B></CODE> <BR> If true, it lists what would be opened for add without actually changing any files or metadata.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#useWildcards">useWildcards</A></B></CODE> <BR> If true, filenames that contain wildcards are permitted.</TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.perforce.p4java.ant.tasks.ClientTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html" title="class in com.perforce.p4java.ant.tasks">ClientTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html#p4Client">p4Client</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.perforce.p4java.ant.tasks.ServerTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html" title="class in com.perforce.p4java.ant.tasks">ServerTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#allHosts">allHosts</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#commandOptions">commandOptions</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#globaloptions">globaloptions</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#hostName">hostName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#P4_SERVER_PROTOCOL_PROPERTIES_FILE">P4_SERVER_PROTOCOL_PROPERTIES_FILE</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#P4_SERVER_USAGE_PROPERTIES_FILE">P4_SERVER_USAGE_PROPERTIES_FILE</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#p4Server">p4Server</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#programName">programName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#programVersion">programVersion</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#protocolPropertiesFile">protocolPropertiesFile</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#protocolProps">protocolProps</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#textLanguage">textLanguage</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#unsetClientName">unsetClientName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#unsetUserName">unsetUserName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#usagePropertiesFile">usagePropertiesFile</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#usageProps">usageProps</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#workingDirectory">workingDirectory</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.perforce.p4java.ant.tasks.PerforceTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#charset">charset</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#client">client</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#failOnError">failOnError</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#fields">fields</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#FILE_TOKEN_REGEX_PATTERN">FILE_TOKEN_REGEX_PATTERN</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#fileList">fileList</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#files">files</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#fileSpecs">fileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#LINE_PADDING">LINE_PADDING</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#LINE_SEPARATOR">LINE_SEPARATOR</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#p4Messages">p4Messages</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#passwd">passwd</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#port">port</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#protocol">protocol</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#retFileSpecs">retFileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#retStatusMessage">retStatusMessage</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#user">user</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.Task</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>target, taskName, taskType, wrapper</CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class org.apache.tools.ant.ProjectComponent</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>description, location, project</CODE></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"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#AddTask()">AddTask</A></B>()</CODE> <BR> Default constructor.</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"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#execP4Command()">execP4Command</A></B>()</CODE> <BR> Execute the Perforce add command with file specs and options.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#setChangelist(java.lang.String)">setChangelist</A></B>(java.lang.String changelist)</CODE> <BR> Sets the changelist.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#setFileType(java.lang.String)">setFileType</A></B>(java.lang.String fileType)</CODE> <BR> Sets the file type.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#setNoUpdate(boolean)">setNoUpdate</A></B>(boolean noUpdate)</CODE> <BR> Sets the no update.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../com/perforce/p4java/ant/tasks/AddTask.html#setUseWildcards(boolean)">setUseWildcards</A></B>(boolean useWildcards)</CODE> <BR> Sets the use wildcards.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.perforce.p4java.ant.tasks.ClientTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html" title="class in com.perforce.p4java.ant.tasks">ClientTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html#cleanupP4()">cleanupP4</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html#getP4Client()">getP4Client</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html#initP4()">initP4</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ClientTask.html#setP4Client(IClient)">setP4Client</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.perforce.p4java.ant.tasks.ServerTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html" title="class in com.perforce.p4java.ant.tasks">ServerTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#cleanupP4Server()">cleanupP4Server</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#createGlobalOption()">createGlobalOption</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#getGlobalOptions()">getGlobalOptions</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#getP4Server()">getP4Server</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#initP4Server()">initP4Server</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#initP4ServerOptions()">initP4ServerOptions</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setAllHosts(boolean)">setAllHosts</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setHostName(java.lang.String)">setHostName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setP4Server(IOptionsServer)">setP4Server</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setProgramName(java.lang.String)">setProgramName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setProgramVersion(java.lang.String)">setProgramVersion</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setProtocolPropertiesFile(java.lang.String)">setProtocolPropertiesFile</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setProtocolProps(java.util.Properties)">setProtocolProps</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setTextLanguage(java.lang.String)">setTextLanguage</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setUnsetClientName(java.lang.String)">setUnsetClientName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setUnsetUserName(java.lang.String)">setUnsetUserName</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setUsagePropertiesFile(java.lang.String)">setUsagePropertiesFile</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setUsageProps(java.util.Properties)">setUsageProps</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/ServerTask.html#setWorkingDirectory(java.lang.String)">setWorkingDirectory</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.perforce.p4java.ant.tasks.PerforceTask"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.perforce.p4java.ant.tasks.<A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#addFileset(org.apache.tools.ant.types.FileSet)">addFileset</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#createField()">createField</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#createFile()">createFile</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#execute()">execute</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#getFields()">getFields</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#getFiles()">getFiles</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#getFileSpecs()">getFileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#getRetFileSpecs()">getRetFileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#getRetStatusMessage()">getRetStatusMessage</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#init()">init</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#isEmpty(java.lang.String)">isEmpty</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logChangelistSummaries(java.util.List)">logChangelistSummaries</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logChangelistSummary(IChangelistSummary)">logChangelistSummary</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logExtendedFileSpec(IExtendedFileSpec)">logExtendedFileSpec</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logExtendedFileSpecs(java.util.List)">logExtendedFileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileDiff(IFileDiff)">logFileDiff</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileDiffs(java.util.List)">logFileDiffs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileLineMatch(IFileLineMatch)">logFileLineMatch</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileLineMatches(java.util.List)">logFileLineMatches</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileSpec(IFileSpec)">logFileSpec</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFileSpecs(java.util.List)">logFileSpecs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFix(IFix)">logFix</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logFixes(java.util.List)">logFixes</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logJob(IJob)">logJob</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#logJobs(java.util.List)">logJobs</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#parseChangelist(java.lang.String)">parseChangelist</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setCharset(java.lang.String)">setCharset</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setClient(java.lang.String)">setClient</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setFailOnError(boolean)">setFailOnError</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setFiles(java.lang.String)">setFiles</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setPasswd(java.lang.String)">setPasswd</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setPort(java.lang.String)">setPort</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setProtocol(java.lang.String)">setProtocol</A>, <A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#setUser(java.lang.String)">setUser</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.Task</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class org.apache.tools.ant.ProjectComponent</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject</CODE></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"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>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"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="changelist"><!-- --></A><H3> changelist</H3> <PRE> protected java.lang.String <B>changelist</B></PRE> <DL> <DD>If positive, the opened files are put into the pending changelist identified by changelistId (this changelist must have been previously created for this to succeed). If zero or negative, the file is opened in the 'default' (unnumbered) changelist. <P> <DL> </DL> </DL> <HR> <A NAME="noUpdate"><!-- --></A><H3> noUpdate</H3> <PRE> protected boolean <B>noUpdate</B></PRE> <DL> <DD>If true, it lists what would be opened for add without actually changing any files or metadata. <P> <DL> </DL> </DL> <HR> <A NAME="fileType"><!-- --></A><H3> fileType</H3> <PRE> protected java.lang.String <B>fileType</B></PRE> <DL> <DD>If null, it looks for a filetype using the name-to-type mapping table managed by 'p4 typemap'. It senses the filetype by examining the file's contents and execute permission bit. If non-null, the files are added as that filetype. <P> <DL> </DL> </DL> <HR> <A NAME="useWildcards"><!-- --></A><H3> useWildcards</H3> <PRE> protected boolean <B>useWildcards</B></PRE> <DL> <DD>If true, filenames that contain wildcards are permitted. Filenames added to the repository that contain these special wildcard characters '@', '#', '%' or '*' will have those characters formatted into ascii hexadecimal representation. The only way of referring to those files once added will be to use the formatted version, the local filesystem name will not be recognized. <P> <DL> </DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="AddTask()"><!-- --></A><H3> AddTask</H3> <PRE> public <B>AddTask</B>()</PRE> <DL> <DD>Default constructor. <P> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="setNoUpdate(boolean)"><!-- --></A><H3> setNoUpdate</H3> <PRE> public void <B>setNoUpdate</B>(boolean noUpdate)</PRE> <DL> <DD>Sets the no update. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>noUpdate</CODE> - the new no update</DL> </DD> </DL> <HR> <A NAME="setChangelist(java.lang.String)"><!-- --></A><H3> setChangelist</H3> <PRE> public void <B>setChangelist</B>(java.lang.String changelist)</PRE> <DL> <DD>Sets the changelist. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>changelist</CODE> - the new changelist</DL> </DD> </DL> <HR> <A NAME="setFileType(java.lang.String)"><!-- --></A><H3> setFileType</H3> <PRE> public void <B>setFileType</B>(java.lang.String fileType)</PRE> <DL> <DD>Sets the file type. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fileType</CODE> - the new file type</DL> </DD> </DL> <HR> <A NAME="setUseWildcards(boolean)"><!-- --></A><H3> setUseWildcards</H3> <PRE> public void <B>setUseWildcards</B>(boolean useWildcards)</PRE> <DL> <DD>Sets the use wildcards. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>useWildcards</CODE> - the new use wildcards</DL> </DD> </DL> <HR> <A NAME="execP4Command()"><!-- --></A><H3> execP4Command</H3> <PRE> protected void <B>execP4Command</B>() throws org.apache.tools.ant.BuildException</PRE> <DL> <DD>Execute the Perforce add command with file specs and options. Log the returned file specs. <p> Open one or more Perforce client workspace files for adding to the Perforce server. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#execP4Command()">execP4Command</A></CODE> in class <CODE><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html" title="class in com.perforce.p4java.ant.tasks">PerforceTask</A></CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>org.apache.tools.ant.BuildException</CODE> - the build exception<DT><B>See Also:</B><DD><A HREF="../../../../../com/perforce/p4java/ant/tasks/PerforceTask.html#execP4Command()"><CODE>PerforceTask.execP4Command()</CODE></A></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=2 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="class-use/AddTask.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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"> PREV CLASS <A HREF="../../../../../com/perforce/p4java/ant/tasks/ChangesTask.html" title="class in com.perforce.p4java.ant.tasks"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/perforce/p4java/ant/tasks/AddTask.html" target="_top"><B>FRAMES</B></A> <A HREF="AddTask.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_classes_inherited_from_class_com.perforce.p4java.ant.tasks.ServerTask">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> <i>Copyright (c) 2010 Perforce Software. All rights reserved.</i> </BODY> </HTML>