making it more fool proof, thanks to my colleagues.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13545 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-12-13 01:19:02 +00:00
1 parent 851319ab82
commit 2082197bb6
2 files changed
+4

No files matched your search

+3
View File
@@ -1047,6 +1047,9 @@ public final class FilePath implements Serializable {
public String validateAntFileMask(final String fileMasks) throws IOException, InterruptedException {
return act(new FileCallable<String>() {
public String invoke(File dir, VirtualChannel channel) throws IOException {
if(fileMasks.startsWith("~"))
return Messages.FilePath_TildaDoesntWork();
StringTokenizer tokens = new StringTokenizer(fileMasks,",");
while(tokens.hasMoreTokens()) {