Examples of CatalogWriter


Examples of flex2.compiler.swc.catalog.CatalogWriter

          swcFeatures.setExternalDeps( true );
          break;
        }
      }
    
      CatalogWriter writer = new CatalogWriter(out, versions, swcFeatures,
                          components.values(),
                          libraries.values(),
                                              archive.getFiles().entrySet());
      writer.write();
      out.close();
      archive.putFile( CATALOG_XML, byteOut.toByteArray(), new Date().getTime() );
      archive.save();

      return ThreadLocalToolkit.errorCount() == 0;
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

    /**
     * Writes catalog.xml to the data directory.
     */
    private void setUpCatalog() {
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(datastoreParams, datastoreNamespacePrefixes, Collections
                .<String> emptySet());
        writer.coverageStores(new HashMap<String, Map<String, String>>(),
                new HashMap<String, String>(), Collections.<String> emptySet());
        writer.namespaces(namespaces);
        writer.styles(Collections.<String, String> emptyMap());
        try {
            writer.write(new File(data, "catalog.xml"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

     *
     * @throws IOException
     */
    protected void setUpCatalog() throws IOException {
        // create the catalog.xml
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(dataStores, dataStoreNamepaces, disabledDataStores);
        writer.coverageStores(coverageStores, coverageStoresNamespaces, disabledCoverageStores);
        writer.namespaces(namespaces);
        writer.styles(layerStyles);
        writer.write(new File(data, "catalog.xml"));
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

    /**
     * Writes catalog.xml to the data directory.
     */
    private void setUpCatalog() {
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(datastoreParams, datastoreNamespacePrefixes, Collections
                .<String> emptySet());
        writer.coverageStores(new HashMap<String, Map<String, String>>(),
                new HashMap<String, String>(), Collections.<String> emptySet());
        writer.namespaces(namespaces);
        writer.styles(layerStyles);
        try {
            writer.write(new File(data, "catalog.xml"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

     *
     * @throws IOException
     */
    protected void setUpCatalog() throws IOException {
        // create the catalog.xml
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(dataStores, dataStoreNamepaces, disabledDataStores);
        writer.coverageStores(coverageStores, coverageStoresNamespaces, disabledCoverageStores);
        writer.namespaces(namespaces);
        writer.styles(layerStyles);
        writer.write(new File(data, "catalog.xml"));
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

     *
     * @throws IOException
     */
    @SuppressWarnings("serial")
    protected void setUpCatalog() throws IOException {
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(new HashMap<String, Map<String, Serializable>>() {
            {
                put(DATASTORE_NAME, SampleDataAccessFactory.PARAMS);
            }
        }, new HashMap<String, String>() {
            {
                put(DATASTORE_NAME, SampleDataAccessData.NAMESPACE_PREFIX);
            }
        }, Collections.<String> emptySet());
        writer.coverageStores(new HashMap<String, Map<String, String>>(),
                new HashMap<String, String>(), Collections.<String> emptySet());
        writer.namespaces(new HashMap<String, String>() {
            {
                put(SampleDataAccessData.NAMESPACE_PREFIX, SampleDataAccessData.NAMESPACE_URI);
            }
        });
        writer.styles(Collections.<String, String> emptyMap());
        writer.write(new File(data, "catalog.xml"));
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

     *
     * @throws IOException
     */
    @SuppressWarnings("serial")
    protected void setUpCatalog() throws IOException {
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(new HashMap<String, Map<String, Serializable>>() {
            {
                put(DATASTORE_NAME, SampleDataAccessFactory.PARAMS);
            }
        }, new HashMap<String, String>() {
            {
                put(DATASTORE_NAME, SampleDataAccessData.NAMESPACE_PREFIX);
            }
        }, Collections.<String> emptySet());
        writer.coverageStores(new HashMap<String, Map<String, String>>(),
                new HashMap<String, String>(), Collections.<String> emptySet());
        writer.namespaces(new HashMap<String, String>() {
            {
                put(SampleDataAccessData.NAMESPACE_PREFIX, SampleDataAccessData.NAMESPACE_URI);
            }
        });
        writer.styles(Collections.<String, String> emptyMap());
        writer.write(new File(data, "catalog.xml"));
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

    /**
     * Writes catalog.xml to the data directory.
     */
    private void setUpCatalog() {
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(datastoreParams, datastoreNamespacePrefixes, Collections
                .<String> emptySet());
        writer.coverageStores(new HashMap<String, Map<String, String>>(),
                new HashMap<String, String>(), Collections.<String> emptySet());
        writer.namespaces(namespaces);
        writer.styles(Collections.<String, String> emptyMap());
        try {
            writer.write(new File(data, "catalog.xml"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.geoserver.data.CatalogWriter

     *
     * @throws IOException
     */
    protected void setUpCatalog() throws IOException {
        // create the catalog.xml
        CatalogWriter writer = new CatalogWriter();
        writer.dataStores(dataStores, dataStoreNamepaces, disabledDataStores);
        writer.coverageStores(coverageStores, coverageStoresNamespaces, disabledCoverageStores);
        writer.namespaces(namespaces);
        writer.styles(layerStyles);
        writer.write(new File(data, "catalog.xml"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.