vmassol 02/04/21 14:13:40
Modified: anttasks/src/java/org/apache/cactus/ant ChangeLogTask.java
Log:
ability to specify which cvs client to use
Revision Changes Path
1.5 +17 -2
jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ChangeLogTask.java
Index: ChangeLogTask.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ChangeLogTask.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ChangeLogTask.java 14 Apr 2002 16:26:09 -0000 1.4
+++ ChangeLogTask.java 21 Apr 2002 21:13:40 -0000 1.5
@@ -97,7 +97,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Jeff Martin</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a>
*
- * @version $Id: ChangeLogTask.java,v 1.4 2002/04/14 16:26:09 vmassol Exp $
+ * @version $Id: ChangeLogTask.java,v 1.5 2002/04/21 21:13:40 vmassol Exp $
*/
public class ChangeLogTask extends Task implements ExecuteStreamHandler
{
@@ -159,6 +159,11 @@
private String testURL = "http://jakarta.apache.org";
/**
+ * The CVS executable to use (CVS client).
+ */
+ private String executable = "cvs";
+
+ /**
* Debug writer to print debug information when in debug mode
*/
private PrintWriter debug;
@@ -239,6 +244,16 @@
}
/**
+ * Sets the CVS client executable to use to perform "cvs log".
+ *
+ * @param theExecutable the executable to use
+ */
+ public void setExecutable(String theExecutable)
+ {
+ this.executable = theExecutable;
+ }
+
+ /**
* Set the threshold cvs log date. This method is automatically called by
* the Ant runtime engine when the <code>date</code> attribute is
* encountered in the Ant XML build file. This attribute is optional. The
@@ -411,7 +426,7 @@
Commandline toExecute = new Commandline();
- toExecute.setExecutable("cvs");
+ toExecute.setExecutable(this.executable);
toExecute.createArgument().setValue("log");
// Check if a threshold date has been specified
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>