Examples of LegacyConfigurationImporter


Examples of org.geoserver.config.util.LegacyConfigurationImporter

    protected void loadGeoServer(GeoServer geoServer) throws Exception {
      //look for legacy services.xml
      File f = resourceLoader.find( "services.xml" );
      if ( f != null ) {
          //load configuration
          LegacyConfigurationImporter importer = new LegacyConfigurationImporter();
          importer.setConfiguration(geoServer);
          importer.imprt( resourceLoader.getBaseDirectory() );
      }
      else {
          LOGGER.warning( "No configuration file found.");
      }
    }
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

            // data directory to the new
            GeoServerPersister p = new GeoServerPersister( resourceLoader, xp );
            geoServer.addListener( p );
           
            //import old style services.xml
            new LegacyConfigurationImporter(geoServer).imprt(resourceLoader.getBaseDirectory());
           
            geoServer.removeListener( p );
           
            //rename the services.xml file
            f.renameTo( new File( f.getParentFile(), "services.xml.old" ) );
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

        catch(Exception e) {
            throw new RuntimeException( e );
        }
       
        //load configuration
        LegacyConfigurationImporter importer = new LegacyConfigurationImporter();
        importer.setConfiguration(geoserver);
       
        try {
            importer.imprt( resourceLoader.getBaseDirectory() );
        }
        catch (Exception e) {
            throw new RuntimeException( e );
        }
       
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

   
    protected void setUp() throws Exception {
        GeoServer gs = new GeoServerImpl();
        gs.setFactory( new GeoServerFactoryImpl(gs) );
       
        importer = new LegacyConfigurationImporter( gs );
        importer.imprt(DataUtilities.urlToFile(getClass().getResource("services.xml")).getParentFile());
    }
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

            // data directory to the new
            GeoServerPersister p = new GeoServerPersister( resourceLoader, xp );
            geoServer.addListener( p );
           
            //import old style services.xml
            new LegacyConfigurationImporter(geoServer).imprt(resourceLoader.getBaseDirectory());
           
            geoServer.removeListener( p );
           
            //rename the services.xml file
            f.renameTo( new File( f.getParentFile(), "services.xml.old" ) );
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

   
    protected void setUp() throws Exception {
        GeoServer gs = new GeoServerImpl();
        gs.setFactory( new GeoServerFactoryImpl(gs) );
       
        importer = new LegacyConfigurationImporter( gs );
        importer.imprt(DataUtilities.urlToFile(getClass().getResource("services.xml")).getParentFile());
    }
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

    protected void readConfiguration(GeoServer geoServer, XStreamPersister xp) throws Exception {
      //look for legacy services.xml
      File f = resourceLoader.find( "services.xml" );
      if ( f != null ) {
          //load configuration
          LegacyConfigurationImporter importer = new LegacyConfigurationImporter();
          importer.setConfiguration(geoServer);
          importer.imprt( resourceLoader.getBaseDirectory() );
      }
      else {
          LOGGER.warning( "No configuration file found.");
      }
    }
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

    protected void readConfiguration(GeoServer geoServer, XStreamPersister xp) throws Exception {
      //look for legacy services.xml
      File f = resourceLoader.find( "services.xml" );
      if ( f != null ) {
          //load configuration
          LegacyConfigurationImporter importer = new LegacyConfigurationImporter();
          importer.setConfiguration(geoServer);
          importer.imprt( resourceLoader.getBaseDirectory() );
      }
      else {
          LOGGER.warning( "No configuration file found.");
      }
    }
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

            // data directory to the new
            GeoServerPersister p = new GeoServerPersister( resourceLoader, xp );
            geoServer.addListener( p );
           
            //import old style services.xml
            new LegacyConfigurationImporter(geoServer).imprt(resourceLoader.getBaseDirectory());
           
            geoServer.removeListener( p );
           
            //rename the services.xml file
            f.renameTo( new File( f.getParentFile(), "services.xml.old" ) );
View Full Code Here

Examples of org.geoserver.config.util.LegacyConfigurationImporter

    @Before
    public void setUp() throws Exception {
        GeoServer gs = new GeoServerImpl();
        gs.setFactory( new GeoServerFactoryImpl(gs) );
       
        importer = new LegacyConfigurationImporter( gs );
        importer.imprt(DataUtilities.urlToFile(getClass().getResource("services.xml")).getParentFile());
    }
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.