mil.dod.th.word.htm.doclet/src/org/udri/util/XSDAppender.java
public void writeXSDs(File resourcesDir) throws IOException {
        File[] subdirs = resourcesDir.listFiles(new FileFilter() {
            @Override
            public boolean accept(File arg0) {
                if (arg0.isDirectory()) {
                    return true;
                }

                return false;
            }
        });

        for (File subdir : subdirs) {
            // ignore hidden directories, like .svn, as well as non-directories
            if (subdir.getName().startsWith(".") || !subdir.isDirectory()) {
                continue;
            }

            // If the schema dir is in the predefined list of schemas, then
            // process it.
            for (String[] schemaDirs : SCHEMAS) {
                if (schemaDirs[0].equals(subdir.getName())) {
                    addXSDs(subdir, schemaDirs[1]);
                    break;
                }
            }
        }
    }
/**
     * Write the XSDs for each XSD in the resource dir. This assumes that XSDs
     * are included in subfolders within the resourcesDir
     */
Write the XSDs for each XSD in the resource dir. This assumes that XSDs
are included in subfolders within the resourcesDir
Write the XSDs for each XSD in the resource dir . This assumes that XSDs are included in subfolders within the resourcesDir
public void writeXSDs(File resourcesDir) throws IOException {
        File[] subdirs = resourcesDir.listFiles(new FileFilter() {
            @Override
            public boolean accept(File arg0) {
                if (arg0.isDirectory()) {
                    return true;
                }
                return false;
            }
        });
        for (File subdir : subdirs) {
            if (subdir.getName().startsWith(".") || !subdir.isDirectory()) {
                continue;
            }
            for (String[] schemaDirs : SCHEMAS) {
                if (schemaDirs[0].equals(subdir.getName())) {
                    addXSDs(subdir, schemaDirs[1]);
                    break;
                }
            }
        }
    }
public void writeXSDs ( File resourcesDir ) throws IOException { File [ ] subdirs = resourcesDir . listFiles ( new FileFilter ( ) { @ Override public boolean accept ( File arg0 ) { if ( arg0 . isDirectory ( ) ) { return true ; } return false ; } } ) ; for ( File subdir : subdirs ) { if ( subdir . getName ( ) . startsWith ( "." ) || ! subdir . isDirectory ( ) ) { continue ; } for ( String [ ] schemaDirs : SCHEMAS ) { if ( schemaDirs [ 0 ] . equals ( subdir . getName ( ) ) ) { addXSDs ( subdir , schemaDirs [ 1 ] ) ; break ; } } } }
Write the XSDs for each XSD in the resource dir.
Write the XSDs for each XSD in the resource dir .
// ignore hidden directories, like .svn, as well as non-directories // If the schema dir is in the predefined list of schemas, then // process it.