Administration Tools

org.topcased.service.templatetoproject.infos.util
Class InfosTemplateProjectToInstallProject

java.lang.Object
  extended by org.topcased.service.templatetoproject.infos.util.InfosTemplateProjectToInstallProject

public class InfosTemplateProjectToInstallProject
extends java.lang.Object

InfosTemplateProjectToInstallProject install a project with all informations come from the class InfosTemplateProject. (All informations come from a template file (.xml)) InfosTemplateProjectToInstallProject is used by InfosTemplateProject.


Constructor Summary
InfosTemplateProjectToInstallProject(java.util.Map<java.lang.String,InfosDirectory> aMapInfosDirectory, java.util.Map<java.lang.String,InfosFile> aMapInfosFile, java.util.Map<java.lang.String,java.lang.String> aMapInfosVariable, java.lang.String aTemplatePathZipFile, java.lang.String aTemplatePathProject, java.lang.String oldNameProject)
          Constructor
 
Method Summary
 boolean installProject()
          Install the project.
 void openProjectInWorkSpace()
          Open project (templatePathProject) in the Workspace
 java.lang.String replaceVariableByValueInPathFile(java.lang.String path)
          This function search piece of string and replace it according to the values defined by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfosTemplateProjectToInstallProject

public InfosTemplateProjectToInstallProject(java.util.Map<java.lang.String,InfosDirectory> aMapInfosDirectory,
                                            java.util.Map<java.lang.String,InfosFile> aMapInfosFile,
                                            java.util.Map<java.lang.String,java.lang.String> aMapInfosVariable,
                                            java.lang.String aTemplatePathZipFile,
                                            java.lang.String aTemplatePathProject,
                                            java.lang.String oldNameProject)
Constructor

Parameters:
aMapInfosDirectory -
aMapInfosFile -
aTemplatePathZipFile -
aTemplatePathProject -
oldNameProject - : old project name
Method Detail

installProject

public boolean installProject()
Install the project. Create in the directory 'projectPath' the tree of the current project template. Unzip the Zip file (*.zip) define in InfosTemplateProject

Returns:
true if the project is correctly installed

openProjectInWorkSpace

public void openProjectInWorkSpace()
Open project (templatePathProject) in the Workspace


replaceVariableByValueInPathFile

public java.lang.String replaceVariableByValueInPathFile(java.lang.String path)
This function search piece of string and replace it according to the values defined by the user.

Parameters:
path - represents the path to process, to replace
Returns:
the new path replaced with the custom values

Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.