Projects/Tools/CSProjectGenerator/src/com/chilliworks/chillisource/csprojectgenerator/CSProjectGenerator.java
/**
	 * Updates the directory names of the directories at the given directory paths 
	 * to the project and package name given in the options.
	 * 
	 * @author Ian Copland
	 *
	 * @param in_options - The options with which to create the new project.
	 * @param in_filePaths - The array of directory paths that should have their
	 * directory names updated.
	 */
Updates the directory names of the directories at the given directory paths
to the project and package name given in the options.

@author Ian Copland

@param in_options - The options with which to create the new project.
@param in_filePaths - The array of directory paths that should have their
directory names updated.
Updates the directory names of the directories at the given directory paths to the project and package name given in the options . @author Ian Copland @param in_options - The options with which to create the new project . @param in_filePaths - The array of directory paths that should have their directory names updated .
private static void updateDirectoryNames(Options in_options, String[] in_directoryPaths)
	{
		String tempDirectoryPath = StringUtils.standardiseDirectoryPath(in_options.m_outputDirectory + k_tempDirectory);
		String tempProjectDirectory = StringUtils.standardiseDirectoryPath(tempDirectoryPath + k_templateProjectName);
		for (String currentDirectoryPath : in_directoryPaths)
		{
			Logging.logVerbose("Updating directory name: " + currentDirectoryPath);
			String newDirectoryPath = currentDirectoryPath.replace(k_templatePackageName, in_options.m_packageName);
			newDirectoryPath = newDirectoryPath.replace(k_templateProjectName.toLowerCase(), in_options.m_projectName.toLowerCase());
			newDirectoryPath = newDirectoryPath.replace(k_templateProjectName, in_options.m_projectName);
			String currentFullDirectoryPath = StringUtils.standardiseFilePath(tempProjectDirectory + currentDirectoryPath);
			String newFullDirectoryPath = StringUtils.standardiseFilePath(tempProjectDirectory + newDirectoryPath);
			if (FileUtils.renameDirectory(currentFullDirectoryPath, newFullDirectoryPath) == false)
			{
				cleanupTemp(in_options);
				Logging.logFatal("Failed to rename directory: " + newFullDirectoryPath);
			}
		}
	}
private static void updateDirectoryNames ( Options in_options , String [ ] in_directoryPaths ) { String tempDirectoryPath = StringUtils . standardiseDirectoryPath ( in_options . m_outputDirectory + k_tempDirectory ) ; String tempProjectDirectory = StringUtils . standardiseDirectoryPath ( tempDirectoryPath + k_templateProjectName ) ; for ( String currentDirectoryPath : in_directoryPaths ) { Logging . logVerbose ( "Updating directory name: " + currentDirectoryPath ) ; String newDirectoryPath = currentDirectoryPath . replace ( k_templatePackageName , in_options . m_packageName ) ; newDirectoryPath = newDirectoryPath . replace ( k_templateProjectName . toLowerCase ( ) , in_options . m_projectName . toLowerCase ( ) ) ; newDirectoryPath = newDirectoryPath . replace ( k_templateProjectName , in_options . m_projectName ) ; String currentFullDirectoryPath = StringUtils . standardiseFilePath ( tempProjectDirectory + currentDirectoryPath ) ; String newFullDirectoryPath = StringUtils . standardiseFilePath ( tempProjectDirectory + newDirectoryPath ) ; if ( FileUtils . renameDirectory ( currentFullDirectoryPath , newFullDirectoryPath ) == false ) { cleanupTemp ( in_options ) ; Logging . logFatal ( "Failed to rename directory: " + newFullDirectoryPath ) ; } } }
Updates the directory names of the directories at the given directory paths
 to the project and package name given in the options.
Updates the directory names of the directories at the given directory paths to the project and package name given in the options .