Oops. It appears the attachments didn't get included. While I am waiting for the phone company to hook up my DSL at my new home, I have been using Yahoo mail and apparently don't know all the little quirks with it yet. Sorry about that. They should be attached to this one.
Curtis --- Curtis White <[EMAIL PROTECTED]> wrote: > I have added 3 more ClearCase tasks. They are for > mklbtype, mklabel and rmtype. I did some testing > with > them and they seem to work fine, but they really > should be tested some more. > > The new source files are attached. I also created > patches for the defaults.properties file and for the > documentation (clearcase.html) to add in these new > tasks. These patches were made against the most > recent > versions of these files in CVS. > > > Curtis > > --- Ken Wood <[EMAIL PROTECTED]> wrote: > > well, I use mktype and mklabel and rmtype. > > I use ant to label about 13 vobs when we need > > to label. But, there's no rush... > > > __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
<<attachment: clearcase_update.zip>>
--- defaults.properties.orig Thu Nov 30 12:59:41 2000 +++ defaults.properties Thu Nov 30 13:01:11 2000 @@ -86,6 +86,9 @@ cccheckout=org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout cccheckin=org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin ccuncheckout=org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout +ccmklbtype=org.apache.tools.ant.taskdefs.optional.clearcase.CCMklbtype +ccmklabel=org.apache.tools.ant.taskdefs.optional.clearcase.CCMklabel +ccrmtype=org.apache.tools.ant.taskdefs.optional.clearcase.CCRmtype # deprecated ant tasks (kept for back compatibility) javadoc2=org.apache.tools.ant.taskdefs.Javadoc
--- clearcase_optional.orig.html Wed Nov 22 14:35:31 2000 +++ clearcase_optional.html Thu Nov 30 16:03:49 2000 @@ -2,24 +2,43 @@ <head> <meta http-equiv="Content-Language" content="en-us"> -<title>Ant</title> +<title>Ant ClearCase Tasks</title> </head> <body> +<h1>Ant ClearCase Tasks</h1> +<p>by</p> +<p>Curtis White (<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>)</p> + +<p>Version 1.2 - 11/30/2000</p> <hr> -<h2><a name="optionaltasks">Optional tasks</a></h2> +<h2>Table of Contents</h2> <ul> + <li><a href="#introduction">Introduction</a></li> <li><a href="#ccupdate">CCUpdate</a></li> <li><a href="#cccheckout">CCCheckout</a></li> <li><a href="#cccheckin">CCCheckin</a></li> <li><a href="#ccuncheckout">CCUnCheckout</a></li> + <li><a href="#ccmklbtype">CCMklbtype</a></li> + <li><a href="#ccmklabel">CCMklabel</a></li> + <li><a href="#ccrmtype">CCRmtype</a></li> </ul> <hr> +<h2><a name="introduction">Introduction</a></h2> +<p>Ant provides a several optional tasks for working with ClearCase. These tasks correspond to various +ClearCase commands using the Cleartool program. They consist of only a select few of the large number of +ClearCase commands.</p> + +<p>More tasks can be easily added by deriving from the ClearCase class and then adding +functionality that is specific to that ClearCase command.</p> + + +<hr> <h2><a name="ccupdate">CCUpdate</a></h2> <h3>Description</h3> -Task to perform an Update command to ClearCase. +Task to perform an "update" command to ClearCase. <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -68,6 +87,7 @@ <td>No</td> <tr> </table> + <h3>Examples</h3> <blockquote> <pre> @@ -83,10 +103,12 @@ A graphical dialog will be displayed. The output will be logged to <i>log.log</i> and it will overwrite any hijacked files. The modified time will be set to the current time.</p> + + <hr> <h2><a name="cccheckout">CCCheckout</a></h2> <h3>Description</h3> -Task to perform a Checkout command to ClearCase. +Task to perform a "checkout" command to ClearCase. <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -95,17 +117,17 @@ <th>Required</th> </tr> <tr> + <td>reserved</td> + <td>Specifies whether to check out the file as reserved or not</td> + <td>Yes</td> + <tr> + <tr> <td>viewpath</td> <td>Path to the ClearCase view file or directory that the command will operate on</td> <td>No</td> <tr> <tr> - <td>reserved</td> - <td>Specifies whether to check out the file as reserved or not</td> - <td>Yes</td> - <tr> - <tr> <td>out</td> <td>Creates a writable file under a different filename</td> <td>No</td> @@ -143,6 +165,7 @@ <td>No</td> <tr> </table> + <h3>Examples</h3> <blockquote> <pre> @@ -155,12 +178,14 @@ </blockquote> <p>Does a ClearCase <i>checkout</i> on the file <i>c:/views/viewdir/afile</i>. It is checked out as <i>reserved</i> on branch called <i>abranch</i>. All -warning messages are suppressed. A <i>Some comment text</i> is added to +warning messages are suppressed. Text <i>Some comment text</i> is added to ClearCase as a comment.</p> + + <hr> <h2><a name="cccheckin">CCCheckin</a></h2> <h3>Description</h3> -Task to perform a Checkin command to ClearCase. +Task to perform a "checkin" command to ClearCase. <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -207,23 +232,26 @@ <td>No</td> <tr> </table> + <h3>Examples</h3> <blockquote> <pre> <cccheckin viewpath="c:/views/viewdir/afile" - commentfile="acomment.txt"/> + commentfile="acomment.txt" nowarn="true" - identical="true" + identical="true"/> </pre> </blockquote> <p>Does a ClearCase <i>checkin</i> on the file <i>c:/views/viewdir/afile</i>. Comment text from the file <i>acomment.txt</i> is added to ClearCase as a comment. All warning messages are suppressed. The file is checked in even if it is <i>identical</i> to the original.</p> + + <hr> <h2><a name="ccuncheckout">CCUnCheckout</a></h2> <h3>Description</h3> -Task to perform a UnCheckout command to ClearCase. +Task to perform a "uncheckout" command to ClearCase. <h3>Parameters</h3> <table border="1" cellpadding="2" cellspacing="0"> <tr> @@ -244,6 +272,7 @@ <td>No</td> <tr> </table> + <h3>Examples</h3> <blockquote> <pre> @@ -253,6 +282,229 @@ </blockquote> <p>Does a ClearCase <i>uncheckout</i> on the file <i>c:/views/viewdir/afile</i>. A copy of the file called <i>c:/views/viewdir/afile.keep</i> is kept.</p> + + +<hr> +<h2><a name="ccmklbtype">CCMklbtype</a></h2> +<h3>Description</h3> +Task to perform a "mklbtype" command to ClearCase. +<h3>Parameters</h3> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <th>Attribute</th> + <th>Values</th> + <th>Required</th> + </tr> + <tr> + <td>typename</td> + <td>Name of the label type to create</td> + <td>Yes</td> + <tr> + <tr> + <td>vob</td> + <td>Name of the VOB</td> + <td>No</td> + <tr> + <tr> + <td>replace</td> + <td>Replace an existing label definition of the same type</td> + <td>No</td> + <tr> + <tr> + <td>global</td> + <td>Either global or ordinary can be specified, not both. Creates a label type that is global to the VOB or to VOBs that use this VOB</td> + <td>No</td> + <tr> + <tr> + <td>ordinary</td> + <td>Either global or ordinary can be specified, not both. Creates a label type that can be used only in the current VOB. <B>Default</B></td> + <td>No</td> + <tr> + <tr> + <td>pbranch</td> + <td>Allows the label type to be used once per branch in a given element's version tree</td> + <td>No</td> + <tr> + <tr> + <td>shared</td> + <td>Sets the way mastership is checked by ClearCase. See ClearCase documentation for details</td> + <td>No</td> + <tr> + <tr> + <td>comment</td> + <td>Specify a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> + <tr> + <td>commentfile</td> + <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> +</table> + +<h3>Examples</h3> +<blockquote> +<pre> +<ccmklbtype typename="VERSION_1" + ordinary="true" + comment="Development version 1"/> +</pre> +</blockquote> +<p>Does a ClearCase <i>mklbtype</i> to create a label type named <i>VERSION_1</i>. +It is created as <i>ordinary</i> so it is available only to the current VOB. +The text <i>Development version 1</i> is added as a comment.</p> + + +<hr> +<h2><a name="ccmklabel">CCMklabel</a></h2> +<h3>Description</h3> +Task to perform a "mklabel" command to ClearCase. +<h3>Parameters</h3> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <th>Attribute</th> + <th>Values</th> + <th>Required</th> + </tr> + <tr> + <td>typename</td> + <td>Name of the label type</td> + <td>Yes</td> + <tr> + <tr> + <td>viewpath</td> + <td>Path to the ClearCase view file or directory that the command will operate on</td> + <td>No</td> + <tr> + <tr> + <td>replace</td> + <td>Replace a label of the same type on the same branch</td> + <td>No</td> + <tr> + <tr> + <td>recurse</td> + <td>Process each subdirectory under viewpath</td> + <td>No</td> + <tr> + <tr> + <td>version</td> + <td>Identify a specific version to attach the label to</td> + <td>No</td> + <tr> + <tr> + <td>vob</td> + <td>Name of the VOB</td> + <td>No</td> + <tr> + <tr> + <td>comment</td> + <td>Specify a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> + <tr> + <td>commentfile</td> + <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> +</table> + +<h3>Examples</h3> +<blockquote> +<pre> +<ccmklabel viewpath="c:/views/viewdir/afile" + comment="Some comment text" + recurse="true" + version="\main\2" + typename="VERSION_1"/> +</pre> +</blockquote> +<p>Does a ClearCase <i>mklabel</i> on the file <i>c:/views/viewdir/afile</i> under +the main branch for version 2 (<i>\main\2</i>). Text <i>Some comment text</i> is added +as a comment. It will <i>recurse</i> all subdirectories. + + +<hr> +<h2><a name="ccrmtype">CCRmtype</a></h2> +<h3>Description</h3> +Task to perform a "rmtype" command to ClearCase. +<h3>Parameters</h3> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <th>Attribute</th> + <th>Values</th> + <th>Required</th> + </tr> + <tr> + <td>typekind</td> + <td>The kind of type to create. Valid types are: + <table border="0" width="40%"> + <tr> + <td width="15%"> </td> + <td><b>attype</b><br> + <b>brtype</b><br> + <b>eltype</b><br> + <b>hltype</b><br> + <b>lbtype</b><br> + <b>trtype</b> + </td> + <td>- <br> + - <br> + - <br> + - <br> + - <br> + - + </td> + <td>attribute type<br> + branch type<br> + element type<br> + hyperlink type<br> + label type<br> + trigger type + </td> + </tr> + </table> + </td> + <td>Yes</td> + <tr> + <tr> + <td>typename</td> + <td>The name of the type to remove</td> + <td>Yes</td> + <tr> + <tr> + <td>ignore</td> + <td>Used with trigger types only. Forces removal of trigger type even if a pre-operation trigger would prevent its removal</td> + <td>No</td> + <tr> + <tr> + <td>rmall</td> + <td>Removes all instances of a type and the type object itself</td> + <td>No</td> + <tr> + <tr> + <td>comment</td> + <td>Specify a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> + <tr> + <td>commentfile</td> + <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td> + <td>No</td> + <tr> +</table> + +<h3>Examples</h3> +<blockquote> +<pre> +<ccrmtype typekind="lbtype" + typename="VERSION_1" + commentfile="acomment.txt" + rmall="true"/> +</pre> +</blockquote> +<p>Does a ClearCase <i>rmtype</i> to remove a label type (<i>lbtype</i>) named <i>VERSION_1</i>. +Comment text from the file <i>acomment.txt</i> is added as a comment. All instances of the type +are removed, including the type object itself.</p> </body>
