plugins/org.wso2.developerstudio.eclipse.docker.distribution/src/org/wso2/developerstudio/eclipse/docker/distribution/ui/wizard/ContainerProjectCreationWizard.java
/**
	 * Create new deployment.toml file in the project directory if not exists.
	 * 
	 * @throws IOException
	 *             An error occurred while writing the file
	 */
Create new deployment.toml file in the project directory if not exists.

@throws IOException
An error occurred while writing the file
Create new deployment . toml file in the project directory if not exists . @throws IOException An error occurred while writing the file
private void copyDeploymentTomlFile() throws IOException {
		IFile tomlFile = project.getFile(DockerProjectConstants.DEPLOYMENT_TOML_FILE_NAME);
		File newFile = new File(tomlFile.getLocationURI().getPath());
		if (!newFile.exists()) {
			try {
				Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);
				URL fileURL = bundle.getEntry(DockerProjectConstants.DEPLOYMENT_TOML_FILE_PATH);
				File deploymentFile = null;
				URL resolvedFileURL = FileLocator.toFileURL(fileURL);
				URI resolvedURI = new URI(resolvedFileURL.getProtocol(), resolvedFileURL.getPath(), null);
				deploymentFile = new File(resolvedURI);
				FileUtils.copy(deploymentFile, newFile);
			} catch (URISyntaxException e) {
				log.error("An error occurred generating a deployment.toml file: ", e);
			}
		}
	}
private void copyDeploymentTomlFile ( ) throws IOException { IFile tomlFile = project . getFile ( DockerProjectConstants . DEPLOYMENT_TOML_FILE_NAME ) ; File newFile = new File ( tomlFile . getLocationURI ( ) . getPath ( ) ) ; if ( ! newFile . exists ( ) ) { try { Bundle bundle = Platform . getBundle ( Activator . PLUGIN_ID ) ; URL fileURL = bundle . getEntry ( DockerProjectConstants . DEPLOYMENT_TOML_FILE_PATH ) ; File deploymentFile = null ; URL resolvedFileURL = FileLocator . toFileURL ( fileURL ) ; URI resolvedURI = new URI ( resolvedFileURL . getProtocol ( ) , resolvedFileURL . getPath ( ) , null ) ; deploymentFile = new File ( resolvedURI ) ; FileUtils . copy ( deploymentFile , newFile ) ; } catch ( URISyntaxException e ) { log . error ( "An error occurred generating a deployment.toml file: " , e ) ; } } }
Create new deployment.toml file in the project directory if not exists.
Create new deployment . toml file in the project directory if not exists .