mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 00:25:58 +00:00
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:
1 parent
851319ab82
commit
2082197bb6
2 files changed
+4
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user