src/main/java/com/cloudbees/jenkins/support/impl/NodeRemoteDirectoryComponent.java
@Restricted(NoExternalUse.class) // stapler
        @SuppressWarnings("unused") // used by Stapler
        public FormValidation doCheckIncludes(@AncestorInPath Computer computer, @QueryParameter String includes)
                throws IOException {
            Node node = computer.getNode();
            if (node == null || computer.isOffline()) {
                return FormValidation.ok();
            }

            FilePath rootPath = node.getRootPath();
            if (rootPath == null) {
                return FormValidation.ok();
            }
            
            return FilePath.validateFileMask(rootPath, includes, true);
        }
/**
         * Form validation for the ant style patterns to include.
         *
         * @param includes the ant style patterns
         * @return the validation results.
         */
Form validation for the ant style patterns to include.
@param includes the ant style patterns
@return the validation results.
Form validation for the ant style patterns to include . @param includes the ant style patterns @return the validation results .
@Restricted(NoExternalUse.class) 
        @SuppressWarnings("unused") 
        public FormValidation doCheckIncludes(@AncestorInPath Computer computer, @QueryParameter String includes)
                throws IOException {
            Node node = computer.getNode();
            if (node == null || computer.isOffline()) {
                return FormValidation.ok();
            }
            FilePath rootPath = node.getRootPath();
            if (rootPath == null) {
                return FormValidation.ok();
            }
            return FilePath.validateFileMask(rootPath, includes, true);
        }
@ Restricted ( NoExternalUse . class ) @ SuppressWarnings ( "unused" ) public FormValidation doCheckIncludes ( @ AncestorInPath Computer computer , @ QueryParameter String includes ) throws IOException { Node node = computer . getNode ( ) ; if ( node == null || computer . isOffline ( ) ) { return FormValidation . ok ( ) ; } FilePath rootPath = node . getRootPath ( ) ; if ( rootPath == null ) { return FormValidation . ok ( ) ; } return FilePath . validateFileMask ( rootPath , includes , true ) ; }
Form validation for the ant style patterns to include.
Form validation for the ant style patterns to include .
// stapler // used by Stapler