📄 antstarteamcheckout.java
字号:
* Gets the <CODE>serverPort</CODE> attribute. * * @return A string containing the port on the StarTeam server to use. * @see #setServerPort(int) */ public int getServerPort() { return serverPort; } /** * Sets the <CODE>projectName</CODE> attribute to the given value. * * @param projectName The StarTeam project to search. * @see #getProjectName() */ public void setProjectName(String projectName) { this.projectName = projectName; } /** * Gets the <CODE>projectName</CODE> attribute. * * @return The StarTeam project to search. * @see #setProjectName(String projectName) */ public String getProjectName() { return projectName; } /** * Sets the <CODE>viewName</CODE> attribute to the given value. * * @param viewName The view to find the specified folder in. * @see #getViewName() */ public void setViewName(String viewName) { this.viewName = viewName; } /** * Gets the <CODE>viewName</CODE> attribute. * * @return The view to find the specified folder in. * @see #setViewName(String viewName) */ public String getViewName() { return viewName; } /** * Sets the <CODE>folderName</CODE> attribute to the given value. To * search the root folder, use a slash or backslash, or simply don't set a * folder at all. * * @param folderName The subfolder from which to check out files. * @see #getFolderName() */ public void setFolderName(String folderName) { this.folderName = folderName; } /** * Gets the <CODE>folderName</CODE> attribute. * * @return The subfolder from which to check out files. All subfolders * will be searched, as well. * @see #setFolderName(String folderName) */ public String getFolderName() { return folderName; } /** * Sets the <CODE>username</CODE> attribute to the given value. * * @param username Your username for the specified StarTeam server. * @see #getUsername() */ public void setUsername(String username) { this.username = username; } /** * Gets the <CODE>username</CODE> attribute. * * @return The username given by the user. * @see #setUsername(String username) */ public String getUsername() { return username; } /** * Sets the <CODE>password</CODE> attribute to the given value. * * @param password Your password for the specified StarTeam server. * @see #getPassword() */ public void setPassword(String password) { this.password = password; } /** * Gets the <CODE>password</CODE> attribute. * * @return The password given by the user. * @see #setPassword(String password) */ public String getPassword() { return password; } /** * Sets the <CODE>targetFolder</CODE> attribute to the given value. * * @param targetFolder The target path on the local machine to check out to. * @see #getTargetFolder() */ public void setTargetFolder(String targetFolder) { this.targetFolder = targetFolder; } /** * Gets the <CODE>targetFolder</CODE> attribute. * * @return The target path on the local machine to check out to. * @see #setTargetFolder(String targetFolder) */ public String getTargetFolder() { return targetFolder; } /** * Sets the <CODE>force</CODE> attribute to the given value. * * @param force if true, it overwrites files in the target directory. By * default it set to false as a safeguard. Note that if the target * directory does not exist, this setting has no effect. * @see #getForce() */ public void setForce(boolean force) { this.force = force; } /** * Gets the <CODE>force</CODE> attribute. * * @return whether to continue if the target directory exists. * @see #setForce(boolean) */ public boolean getForce() { return force; } /** * Turns recursion on or off. * * @param recursion if it is true, the default, subfolders are searched * recursively for files to check out. Otherwise, only files * specified by <CODE>folderName</CODE> are scanned. * @see #getRecursion() */ public void setRecursion(boolean recursion) { this.recursion = recursion; } /** * Gets the <CODE>recursion</CODE> attribute, which tells * AntStarTeamCheckOut whether to search subfolders when checking out * files. * * @return whether to search subfolders when checking out files. * @see #setRecursion(boolean) */ public boolean getRecursion() { return recursion; } /** * Sets the <CODE>verbose</CODE> attribute to the given value. * * @param verbose whether to display all files as it checks them out. By * default it is false, so the program only displays the total number * of files unless you override this default. * @see #getVerbose() */ public void setVerbose(boolean verbose) { this.verbose = verbose; } /** * Gets the <CODE>verbose</CODE> attribute. * * @return whether to display all files as it checks them out. * @see #setVerbose(boolean verbose) */ public boolean getVerbose() { return verbose; } // Begin filter getters and setters /** * Sets the include filter. When filtering files, AntStarTeamCheckOut uses * an unmodified version of <CODE>DirectoryScanner</CODE>'s <CODE>match</CODE> * method, so here are the patterns straight from the Ant source code: * <BR> * <BR> * Matches a string against a pattern. The pattern contains two special * characters: <BR> * '*' which means zero or more characters, <BR> * '?' which means one and only one character. <BR> * <BR> * Separate multiple inlcude filters by <I>spaces</I> , not commas as Ant * uses. For example, if you want to check out all .java and .class\ * files, you would put the following line in your program: * <CODE>setIncludes("*.java *.class");</CODE> * Finally, note that filters have no effect on the <B>directories</B> * that are scanned; you could not check out files from directories with * names beginning only with "build," for instance. Of course, you could * limit AntStarTeamCheckOut to a particular folder and its subfolders * with the <CODE>setFolderName(String folderName)</CODE> command. <BR> * <BR> * Treatment of overlapping inlcudes and excludes: To give a simplistic * example suppose that you set your include filter to "*.htm *.html" and * your exclude filter to "index.*". What happens to index.html? * AntStarTeamCheckOut will not check out index.html, as it matches an * exclude filter ("index.*"), even though it matches the include filter, * as well. <BR> * <BR> * Please also read the following sections before using filters: * * @param includes A string of filter patterns to include. Separate the * patterns by spaces. * @see #getIncludes() * @see #setExcludes(String excludes) * @see #getExcludes() */ public void setIncludes(String includes) { this.includes = includes; } /** * Gets the patterns from the include filter. Rather that duplicate the * details of AntStarTeanCheckOut's filtering here, refer to these links: * * @return A string of filter patterns separated by spaces. * @see #setIncludes(String includes) * @see #setExcludes(String excludes) * @see #getExcludes() */ public String getIncludes() { return includes; } /** * Sets the exclude filter. When filtering files, AntStarTeamCheckOut uses * an unmodified version of <CODE>DirectoryScanner</CODE>'s <CODE>match</CODE> * method, so here are the patterns straight from the Ant source code: * <BR> * <BR> * Matches a string against a pattern. The pattern contains two special * characters: <BR> * '*' which means zero or more characters, <BR> * '?' which means one and only one character. <BR> * <BR> * Separate multiple exlcude filters by <I>spaces</I> , not commas as Ant * uses. For example, if you want to check out all files except .XML and * .HTML files, you would put the following line in your program: * <CODE>setExcludes("*.XML *.HTML");</CODE> * Finally, note that filters have no effect on the <B>directories</B> * that are scanned; you could not skip over all files in directories * whose names begin with "project," for instance. <BR> * <BR> * Treatment of overlapping inlcudes and excludes: To give a simplistic * example suppose that you set your include filter to "*.htm *.html" and * your exclude filter to "index.*". What happens to index.html? * AntStarTeamCheckOut will not check out index.html, as it matches an * exclude filter ("index.*"), even though it matches the include filter, * as well. <BR> * <BR> * Please also read the following sections before using filters: * * @param excludes A string of filter patterns to exclude. Separate the * patterns by spaces. * @see #setIncludes(String includes) * @see #getIncludes() * @see #getExcludes() */ public void setExcludes(String excludes) { this.excludes = excludes; } /** * Gets the patterns from the exclude filter. Rather that duplicate the * details of AntStarTeanCheckOut's filtering here, refer to these links: * * @return A string of filter patterns separated by spaces. * @see #setExcludes(String excludes) * @see #setIncludes(String includes) * @see #getIncludes() */ public String getExcludes() { return excludes; } /** * returns whether the StarTeam default path is factored into calculated * target path locations (false) or whether targetFolder is an absolute * mapping to the root folder named by folderName * * @return returns true if absolute mapping is used, false if it is not * used. * @see #setTargetFolderAbsolute(boolean) */ public boolean getTargetFolderAbsolute() { return this.targetFolderAbsolute; } /** * sets the property that indicates whether or not the Star Team "default * folder" is to be used when calculation paths for items on the target * (false) or if targetFolder is an absolute mapping to the root folder * named by foldername. * * @param targetFolderAbsolute <tt>true</tt> if the absolute mapping is to * be used. <tt>false</tt> (the default) if the "default folder" is * to be factored in. * @see #getTargetFolderAbsolute() */ public void setTargetFolderAbsolute(boolean targetFolderAbsolute) { this.targetFolderAbsolute = targetFolderAbsolute; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -