Projects/Tools/CSProjectGenerator/src/com/chilliworks/chillisource/csprojectgenerator/CSProjectGenerator.java
/**
	 * updates the project and package name throughout the project.
	 * 
	 * @author Ian Copland
	 *
	 * @param in_options - The options with which to create the new project.
	 */
updates the project and package name throughout the project.

@author Ian Copland

@param in_options - The options with which to create the new project.
updates the project and package name throughout the project . @author Ian Copland @param in_options - The options with which to create the new project .
private static void updateProjectFiles(Options in_options)
	{
		String[] filesToUpdateContents = new String[]
		{
			"AppSource/App.cpp",
			"AppSource/App.h",
			"AppSource/State.cpp",
			"AppSource/State.h",
			"Content/BuildAll.bat",
			"Content/BuildAll.command",
			"Content/BuildAll.sh",
			"Content/AppResources/App.config",
			"Projects/iOS/" + k_templateProjectName + ".xcodeproj/project.pbxproj",
			"Projects/iOS/ProjectResources/" + k_templateProjectName + "-Info.plist",
			"Projects/Windows/" + k_templateProjectName + ".sln",
			"Projects/Windows/" + k_templateProjectName + ".vcxproj",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/build.gradle",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/settings.gradle",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/.idea/.name",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/.idea/modules.xml",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/app.iml",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/build.gradle",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/proguard-rules.pro",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/src/main/AndroidManifest.xml",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/src/main/CSAndroidManifest.xml",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/src/main/jni/Android.mk",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/src/main/jni/Application.mk",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/app/src/main/res/values/strings.xml",
			"Tools/Scripts/content_builder.py",
			"Tools/Scripts/file_system_utils.py",
			"Tools/Scripts/model_builder.py",
			"Tools/Scripts/text_builder.py",
			"Tools/Scripts/texture_atlas_builder.py",
			"Tools/Scripts/texture_builder.py"
		};
		updateFileContents(in_options, filesToUpdateContents);
		String[] filesToUpdateFileName = new String[]
		{
			"Projects/iOS/ProjectResources/" + k_templateProjectName + "-Info.plist",
			"Projects/Windows/" + k_templateProjectName + ".sln",
			"Projects/Windows/" + k_templateProjectName + ".vcxproj",
			"Projects/Android/" + k_templateProjectName.toLowerCase() + "/" + k_templateProjectName.toLowerCase() + ".iml"
		};
		updateFileNames(in_options, filesToUpdateFileName);
		String[] directoriesToUpdateDirectoryName = new String[]
		{
			"Projects/iOS/" + k_templateProjectName + ".xcodeproj",
			"Projects/Android/" + k_templateProjectName.toLowerCase()
		};
		updateDirectoryNames(in_options, directoriesToUpdateDirectoryName);
	}
private static void updateProjectFiles ( Options in_options ) { String [ ] filesToUpdateContents = new String [ ] { "AppSource/App.cpp" , "AppSource/App.h" , "AppSource/State.cpp" , "AppSource/State.h" , "Content/BuildAll.bat" , "Content/BuildAll.command" , "Content/BuildAll.sh" , "Content/AppResources/App.config" , "Projects/iOS/" + k_templateProjectName + ".xcodeproj/project.pbxproj" , "Projects/iOS/ProjectResources/" + k_templateProjectName + "-Info.plist" , "Projects/Windows/" + k_templateProjectName + ".sln" , "Projects/Windows/" + k_templateProjectName + ".vcxproj" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/build.gradle" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/settings.gradle" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/.idea/.name" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/.idea/modules.xml" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/app.iml" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/build.gradle" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/proguard-rules.pro" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/src/main/AndroidManifest.xml" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/src/main/CSAndroidManifest.xml" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/src/main/jni/Android.mk" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/src/main/jni/Application.mk" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/app/src/main/res/values/strings.xml" , "Tools/Scripts/content_builder.py" , "Tools/Scripts/file_system_utils.py" , "Tools/Scripts/model_builder.py" , "Tools/Scripts/text_builder.py" , "Tools/Scripts/texture_atlas_builder.py" , "Tools/Scripts/texture_builder.py" } ; updateFileContents ( in_options , filesToUpdateContents ) ; String [ ] filesToUpdateFileName = new String [ ] { "Projects/iOS/ProjectResources/" + k_templateProjectName + "-Info.plist" , "Projects/Windows/" + k_templateProjectName + ".sln" , "Projects/Windows/" + k_templateProjectName + ".vcxproj" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) + "/" + k_templateProjectName . toLowerCase ( ) + ".iml" } ; updateFileNames ( in_options , filesToUpdateFileName ) ; String [ ] directoriesToUpdateDirectoryName = new String [ ] { "Projects/iOS/" + k_templateProjectName + ".xcodeproj" , "Projects/Android/" + k_templateProjectName . toLowerCase ( ) } ; updateDirectoryNames ( in_options , directoriesToUpdateDirectoryName ) ; }
updates the project and package name throughout the project.
updates the project and package name throughout the project .