|
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; import org.openide.util.NbBundle; import java.io.*; import java.util.*; import org.netbeans.lib.cvsclient.event.*; import org.netbeans.lib.cvsclient.command.*; import org.netbeans.lib.cvsclient.command.export.*; /** This class implements the cvs import command. * * @author mkleint */ public class FsExport extends CvsCommand { /** * The modules to checkout. These names are unexpanded and will be passed * to a module-expansion request. */ private String[] modules; /** * Whether to update recursively. */ protected boolean recursive = true; private boolean pruneDirectories; private KeywordSubstitutionOptions keywordSubstitutionOptions; /** Holds value of property exportByDate. */ private String exportByDate; /** Holds value of property exportByRevision. */ private String exportByRevision; /** Holds value of property exportDirectory. */ private String exportDirectory; /** Holds value of property useHeadIfNotFound. */ private boolean useHeadIfNotFound; /** Creates cvs export command. */ public FsExport() { super(); } /** * Gets the value of the recursive option. * @return true if recursive, false if not */ public boolean isRecursive() { return recursive; } /** * Sets the value of the recursive option. * @param r true if the command should recurse, false otherwise */ public void setRecursive(boolean r) { recursive = r; } /** * Returns the keyword substitution option. */ public KeywordSubstitutionOptions getKeywordSubstitutionOptions() { return keywordSubstitutionOptions; } /** * Sets the keywords substitution option. */ public void setKeywordSubstitutionOptions(KeywordSubstitutionOptions keywordSubstitutionOptions) { this.keywordSubstitutionOptions = keywordSubstitutionOptions; } /** * Set whether to prune directories. * This is the -P option in the command-line CVS. */ public void setPruneDirectories(boolean pruneDirectories) { this.pruneDirectories = pruneDirectories; } /** * Get whether to prune directories. * @return true if directories should be removed if they contain no files, * false otherwise. */ public boolean isPruneDirectories() { return pruneDirectories; } /** * Set the modules to export. * @param theModules the names of the modules to export */ public void setModules(String[] modules) { this.modules = modules; } public String[] getModules() { return modules; } /** Getter for property exportByDate. * @return Value of property exportByDate. */ public String getExportByDate() { return this.exportByDate; } /** Setter for property exportByDate. * @param exportByDate New value of property exportByDate. */ public void setExportByDate(String exportByDate) { this.exportByDate = exportByDate; } /** Getter for property exportByRevision. * @return Value of property exportByRevision. */ public String getExportByRevision() { return this.exportByRevision; } /** Setter for property exportByRevision. * @param exportByRevision New value of property exportByRevision. */ public void setExportByRevision(String exportByRevision) { this.exportByRevision = exportByRevision; } /** Getter for property exportDirectory. * @return Value of property exportDirectory. */ public String getExportDirectory() { return this.exportDirectory; } /** Setter for property exportDirectory. * @param exportDirectory New value of property exportDirectory. */ public void setExportDirectory(String exportDirectory) { this.exportDirectory = exportDirectory; } /** Getter for property useHeadIfNotFound. * @return Value of property useHeadIfNotFound. */ public boolean isUseHeadIfNotFound() { return this.useHeadIfNotFound; } /** Setter for property useHeadIfNotFound. * @param useHeadIfNotFound New value of property useHeadIfNotFound. */ public void setUseHeadIfNotFound(boolean useHeadIfNotFound) { this.useHeadIfNotFound = useHeadIfNotFound; } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
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.