|
What this is
Other links
The source code
/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. The Initial Developer of the Original
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
* Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.modules.javacvs;
/** This class implements the cvs commit command.
*
* @author mkleint
*/
public class FsCommit extends CvsCommand {
/**
* The log message used for the commit.
*/
private String message;
/**
* Forces the commit of the file(s) even if no changes were done.
* the standard behaviour is NOT-TO-BE recursive in this case.
*/
private boolean forceCommit;
/**
* The filename for the file that defines the message.
*/
private String logMessageFromFile;
/**
* Determines that no module program should run on the server.
*/
private boolean noModuleProgram;
/** Holds value of property toRevisionOrBranch. */
private String toRevisionOrBranch;
/**
* to be recursive is default behaviour of command.
*/
private boolean recursive = true;
/** Creates new CvsCommit instance.
*/
protected FsCommit() {
super();
}
/**
* Returns the filename for the file that defines the message.
*/
public String getLogMessageFromFile()
{
return logMessageFromFile;
}
/**
* Sets the filename for the file that defines the message.
*/
public void setLogMessageFromFile(String logMessageFromFile)
{
this.logMessageFromFile = logMessageFromFile;
}
/**
* Returns whether no module program should be executed on the server.
*/
public boolean isNoModuleProgram()
{
return noModuleProgram;
}
/**
* Sets whether no module program should run on the server
*/
public void setNoModuleProgram(boolean noModuleProgram)
{
this.noModuleProgram = noModuleProgram;
}
/** Getter for property toRevisionOrBranch.
* @return Value of property toRevisionOrBranch.
*/
public String getToRevisionOrBranch() {
return toRevisionOrBranch;
}
/** Setter for property toRevisionOrBranch.
* @param toRevisionOrBranch New value of property toRevisionOrBranch.
*/
public void setToRevisionOrBranch(String toRevBranch) {
this.toRevisionOrBranch = toRevBranch;
}
/**
* Returns the commit message.
*/
public String getMessage()
{
return message;
}
/**
* Sets the commit message.
*/
public void setMessage(String message)
{
this.message = message;
}
/**
* Indicates whether the commit should be forced even if there are no
* changes.
*/
public boolean isForceCommit() {
return forceCommit;
}
/**
* Sets whether the commit should be forced even if there are no changes.
*/
public void setForceCommit(boolean forceCommit) {
this.forceCommit = forceCommit;
}
/** Sets recursive (-R switch) or local (-l switch) behaviour.
*/
public void setRecursive(boolean recursive) {
this.recursive = recursive;
}
/** Returns recursive (-R switch) or local (-l switch) behaviour.
*/
public boolean isRecursive() {
return recursive;
}
}
|
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.