Administration Tools

org.topcased.service.projecttotemplate.infos.util
Class InfosTemplateProjectToTemplate

java.lang.Object
  extended by org.topcased.service.projecttotemplate.infos.util.InfosTemplateProjectToTemplate

public class InfosTemplateProjectToTemplate
extends java.lang.Object

InfosTemplateProjectToTemplate create a xml file template and a zip file (.xml + .zip) Transform a InfosTemplateProject in a xml file. Create a zip file with all files referenced like selected in InfosTemplateProject. InfosTemplateProjectToTemplate is used by InfosTemplateProject.


Constructor Summary
InfosTemplateProjectToTemplate(InfosTemplateProject infosTemplateProject, java.lang.String oldNameProject)
          Constructor
 
Method Summary
 boolean createTemplateProject(java.lang.String templatePath, java.lang.String zipFilePath)
          Create about the template project templatePath
 boolean createZipFile(java.lang.String pathSource, java.lang.String pathDestination)
          Create a zip file from the selected directory
 void createZipFileSelected(java.lang.String pathSource, java.lang.String pathDestination)
          Create a zip file from the selected directory and with files selected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfosTemplateProjectToTemplate

public InfosTemplateProjectToTemplate(InfosTemplateProject infosTemplateProject,
                                      java.lang.String oldNameProject)
Constructor

Parameters:
infosTemplateProject - : InfosTemplateProject which must transform in Template
Method Detail

createTemplateProject

public boolean createTemplateProject(java.lang.String templatePath,
                                     java.lang.String zipFilePath)
Create about the template project templatePath

Parameters:
templatePath - : path of the xml file (.xml)
zipFilePath - : path of the zip file (.zip)
Returns:
true if '.xml' files is created

createZipFile

public boolean createZipFile(java.lang.String pathSource,
                             java.lang.String pathDestination)
Create a zip file from the selected directory

Parameters:
pathSource - : path of the zip file to create(.zip)
pathDestination - : path of the directory to zip
Returns:
true if is '.zip' file is created

createZipFileSelected

public void createZipFileSelected(java.lang.String pathSource,
                                  java.lang.String pathDestination)
Create a zip file from the selected directory and with files selected

Parameters:
pathSource - : path of the zip file to create(.zip)
pathDestination - : path of the directory to zip

Administration Tools

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