Projects/Tools/CSProjectGenerator/src/com/chilliworks/chillisource/csprojectgenerator/CSProjectGenerator.java
/**
	 * Copies Chilli Source into the project directory.
	 * 
	 * @author Ian Copland
	 * 
	 * @param in_options - The options with which to create the new project.
	 */
Copies Chilli Source into the project directory.

@author Ian Copland

@param in_options - The options with which to create the new project.
Copies Chilli Source into the project directory . @author Ian Copland @param in_options - The options with which to create the new project .
private static void copyChilliSource(Options in_options)
	{
		String tempDirectoryPath = StringUtils.standardiseDirectoryPath(in_options.m_outputDirectory + k_tempDirectory);
		String tempProjectDirectory = StringUtils.standardiseDirectoryPath(tempDirectoryPath + k_templateProjectName);
		String csSourcePath = StringUtils.standardiseDirectoryPath(getJarDirectoryPath(in_options) + k_csSourceDirectoryPath); 
		String csDestinationPath = StringUtils.standardiseDirectoryPath(tempProjectDirectory + k_csDestinationDirectoryPath);
		Logging.logVerbose("Copying Chilli Source into the project.");
		List<String> ignore = new ArrayList<>();
		Collections.addAll(ignore, "bin", "obj");
		if (FileUtils.copyDirectory(csSourcePath, csDestinationPath, ignore) == false)
		{
			cleanupTemp(in_options);
			Logging.logFatal("Could not copy Chilli Source into project.");
		}
		try
		{
			Path gitPath = Paths.get(csDestinationPath + ".git");
			if (Files.isDirectory(gitPath) == true)
			{
				FileUtils.deleteDirectory(gitPath.toString());
			}
			else
			{
				Files.deleteIfExists(gitPath);
			}
			Files.deleteIfExists(Paths.get(csDestinationPath + ".gitignore"));
		}
		catch (Exception e)
		{
			cleanupTemp(in_options);
			Logging.logFatal("Could not delete git remnants.");
		}
	}
private static void copyChilliSource ( Options in_options ) { String tempDirectoryPath = StringUtils . standardiseDirectoryPath ( in_options . m_outputDirectory + k_tempDirectory ) ; String tempProjectDirectory = StringUtils . standardiseDirectoryPath ( tempDirectoryPath + k_templateProjectName ) ; String csSourcePath = StringUtils . standardiseDirectoryPath ( getJarDirectoryPath ( in_options ) + k_csSourceDirectoryPath ) ; String csDestinationPath = StringUtils . standardiseDirectoryPath ( tempProjectDirectory + k_csDestinationDirectoryPath ) ; Logging . logVerbose ( "Copying Chilli Source into the project." ) ; List < String > ignore = new ArrayList < > ( ) ; Collections . addAll ( ignore , "bin" , "obj" ) ; if ( FileUtils . copyDirectory ( csSourcePath , csDestinationPath , ignore ) == false ) { cleanupTemp ( in_options ) ; Logging . logFatal ( "Could not copy Chilli Source into project." ) ; } try { Path gitPath = Paths . get ( csDestinationPath + ".git" ) ; if ( Files . isDirectory ( gitPath ) == true ) { FileUtils . deleteDirectory ( gitPath . toString ( ) ) ; } else { Files . deleteIfExists ( gitPath ) ; } Files . deleteIfExists ( Paths . get ( csDestinationPath + ".gitignore" ) ) ; } catch ( Exception e ) { cleanupTemp ( in_options ) ; Logging . logFatal ( "Could not delete git remnants." ) ; } }
Copies Chilli Source into the project directory.
Copies Chilli Source into the project directory .
//remove any remnants of the git project.