Examples of copyResourceToFile()


Examples of org.openstreetmap.osmosis.core.util.ResourceFileManager.copyResourceToFile()

   
    // Copy the template configuration file into the working directory.
    if (configFile.exists()) {
      throw new OsmosisRuntimeException("Config file " + configFile + " already exists.");
    }
    resourceFileManager.copyResourceToFile(getClass(), CONFIG_RESOURCE, configFile);
   
    // Create the data directory.
    dataDirectory = new File(workingDirectory, DATA_DIRECTORY);
    if (dataDirectory.exists()) {
      throw new OsmosisRuntimeException("Data directory " + dataDirectory + " already exists.");
View Full Code Here

Examples of org.openstreetmap.osmosis.core.util.ResourceFileManager.copyResourceToFile()

    configFile = new File(workingDirectory, CONFIG_FILE_NAME);
   
    if (configFile.exists()) {
      throw new OsmosisRuntimeException("Config file " + CONFIG_FILE_NAME + " already exists.");
    }
    resourceFileManager.copyResourceToFile(getClass(), CONFIG_RESOURCE, configFile);
  }
 
 
  /**
   * {@inheritDoc}
 
View Full Code Here

Examples of org.openstreetmap.osmosis.core.util.ResourceFileManager.copyResourceToFile()

    newTimestampFile = new File(workingDirectory, TSTAMP_NEW_FILE_NAME);
   
    if (configFile.exists()) {
      throw new OsmosisRuntimeException("Config file " + CONFIG_FILE_NAME + " already exists.");
    }
    resourceFileManager.copyResourceToFile(getClass(), CONFIG_RESOURCE, configFile);
   
    if (timestampFile.exists()) {
      throw new OsmosisRuntimeException("Timestamp file " + TSTAMP_FILE_NAME + " already exists.");
    }
   
View Full Code Here

Examples of org.openstreetmap.osmosis.core.util.ResourceFileManager.copyResourceToFile()

    if (CONFIG_FILE.exists()) {
      throw new OsmosisRuntimeException("Config file " + CONFIG_FILE + " already exists.");
    }
    resourceFileManager = new ResourceFileManager();
    resourceFileManager.copyResourceToFile(getClass(), CONFIG_RESOURCE, CONFIG_FILE);

    if (!DATA_DIR.exists()) {
      if (!DATA_DIR.mkdir()) {
        throw new OsmosisRuntimeException("Unable to create directory " + DATA_DIR);
      }
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.