src/main/java/com/cloudbees/jenkins/support/impl/AbstractItemDirectoryComponent.java
@Restricted(NoExternalUse.class) // stapler
        @SuppressWarnings("unused") // used by Stapler
        public FormValidation doCheckExcludes(@AncestorInPath AbstractItem item, @QueryParameter String excludes) {
            if (item == null) {
                return FormValidation.ok();
            }
            try {
                FileSet fs = new FileSet();
                fs.setDir(item.getRootDir());
                fs.setProject(new Project());
                fs.setExcludes(excludes);
                return FormValidation.ok();
            } catch (Exception e) {
                return FormValidation.error(e, "Could not parse the patterns");
            }
        }
/**
         * Form validation for the ant style patterns to exclude.
         *
         * @param excludes the ant style patterns
         * @return the validation results.
         */
Form validation for the ant style patterns to exclude.
@param excludes the ant style patterns
@return the validation results.
Form validation for the ant style patterns to exclude . @param excludes the ant style patterns @return the validation results .
@Restricted(NoExternalUse.class) 
        @SuppressWarnings("unused") 
        public FormValidation doCheckExcludes(@AncestorInPath AbstractItem item, @QueryParameter String excludes) {
            if (item == null) {
                return FormValidation.ok();
            }
            try {
                FileSet fs = new FileSet();
                fs.setDir(item.getRootDir());
                fs.setProject(new Project());
                fs.setExcludes(excludes);
                return FormValidation.ok();
            } catch (Exception e) {
                return FormValidation.error(e, "Could not parse the patterns");
            }
        }
@ Restricted ( NoExternalUse . class ) @ SuppressWarnings ( "unused" ) public FormValidation doCheckExcludes ( @ AncestorInPath AbstractItem item , @ QueryParameter String excludes ) { if ( item == null ) { return FormValidation . ok ( ) ; } try { FileSet fs = new FileSet ( ) ; fs . setDir ( item . getRootDir ( ) ) ; fs . setProject ( new Project ( ) ) ; fs . setExcludes ( excludes ) ; return FormValidation . ok ( ) ; } catch ( Exception e ) { return FormValidation . error ( e , "Could not parse the patterns" ) ; } }
Form validation for the ant style patterns to exclude.
Form validation for the ant style patterns to exclude .
// stapler // used by Stapler