plugins/org.wso2.developerstudio.eclipse.docker.distribution/src/org/wso2/developerstudio/eclipse/docker/distribution/ui/wizard/DockerProjectCreationWizard.java
/**
	 * Copy the docker file to project directory if not exists.
	 * 
	 * @throws IOException
	 * @throws CoreException
	 */
Copy the docker file to project directory if not exists.


Copy the docker file to project directory if not exists .
private void copyDockerFile() throws IOException, CoreException {
		IFile dockerFile = project.getFile("Dockerfile");
		File newFile = new File(dockerFile.getLocationURI().getPath());
		if (!newFile.exists()) {
			URL url = new URL(
					"platform:/plugin/org.wso2.developerstudio.eclipse.docker.distribution/DockerFile/Dockerfile");
			if (newFile.createNewFile()) {
				InputStream inputStream = url.openConnection().getInputStream();
				OutputStream outputStream = new FileOutputStream(newFile);
				IOUtils.copy(inputStream, outputStream);
			}
		}
	}
private void copyDockerFile ( ) throws IOException , CoreException { IFile dockerFile = project . getFile ( "Dockerfile" ) ; File newFile = new File ( dockerFile . getLocationURI ( ) . getPath ( ) ) ; if ( ! newFile . exists ( ) ) { URL url = new URL ( "platform:/plugin/org.wso2.developerstudio.eclipse.docker.distribution/DockerFile/Dockerfile" ) ; if ( newFile . createNewFile ( ) ) { InputStream inputStream = url . openConnection ( ) . getInputStream ( ) ; OutputStream outputStream = new FileOutputStream ( newFile ) ; IOUtils . copy ( inputStream , outputStream ) ; } } }
Copy the docker file to project directory if not exists.
Copy the docker file to project directory if not exists .
// Creating the new docker file