alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

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 global option settings
 * @author mkleint
 */
public class FsGlobalOptions {

    private String[] variables;
    
    /**
     * Whether to make checked out files read only (read/write is the default)
     */
    private boolean checkedOutFilesReadOnly = false;
    
    /**
     * The CVS root to use
     */
    private String cvsRoot;
    
    /**
     * Whether to use Gzip
     */
    private boolean useGzip = true;
    
    /**
     * performs the command but doesn't change any files.
     */
    private boolean doNoChanges = false;
    
    /** 
     * Supresses logging of teh command in CVSROOT/history in the repository. 
     */
    private boolean noHistoryLogging = false;
    
    
    /** Creates new FsGlobalOptions instance.
     */    
    protected FsGlobalOptions() {
    }
    
    /**
     * Are checked out files read only
     * @return the answer
     */    
    public boolean isCheckedOutFilesReadOnly()
    {
        return checkedOutFilesReadOnly;
    }
    
    /**
     * Set whether checked out files are read only. False is the default.
     * @param readOnly true for readonly, false for read/write (default)
     */
    public void setCheckedOutFilesReadOnly(boolean readOnly)
    {
        checkedOutFilesReadOnly = readOnly;
    }
    
    /**
     * Get the CVS root
     * @return the CVS root value, e.g. :pserver:user@host@/usr/local/cvs
     */
    public String getCVSRoot()
    {
        return cvsRoot;
    }
    
    /**
     * Set the CVS root
     * @return the value of CVS to use
     */
    public void setCVSRoot(String root)
    {
        cvsRoot = root;
    }
    
    /**
     * Set whether to use Gzip for file transmission/reception
     * @param useGzip true if gzip should be used, false otherwise
     */
    public void setUseGzip(boolean useGzip)
    {
        this.useGzip = useGzip;
    }
    
    /** 
     * Get whether to use Gzip
     * @return true if Gzip should be used, false otherwise
     */
    public boolean isUseGzip()
    {
        return useGzip;
    }
    
    /** Getter for property doNoChanges.
     * @return Value of property doNoChanges.
     */
    public boolean isDoNoChanges() 
    {
        return doNoChanges;
    }
    
    /** Setter for property doNoChanges.
     * @param doNoChanges New value of property doNoChanges.
     */
    public void setDoNoChanges(boolean doNoChanges) 
    {
        this.doNoChanges = doNoChanges;
    }
    

        
    /** Getter for property noHistoryLogging.
     * @return Value of property noHistoryLogging.
     */
    public boolean isNoHistoryLogging() 
    {
        return noHistoryLogging;
    }
    
    /** Setter for property noHistoryLogging.
     * @param noHistoryLogging New value of property noHistoryLogging.
     */
    public void setNoHistoryLogging(boolean noHistoryLogging) 
    {
        this.noHistoryLogging = noHistoryLogging;
    }

    /**
     * Sets the cvs internal enviroment variables. 
     * It will clear any vrisables previously set.
     * @param variables array of strings in format "KEY=VALUE".
     */
    public void setCvsVariables(String[] variables) {
        this.variables = variables;
    }

    public String[] getCvsVariables() {
        return variables;
    }
    
    
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 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.