Salesforce

Saving and Building a Project (Magic xpi 4.7)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Saving and Building a Project (Magic xpi 4.7)

Magic xpi saves the project definition files in XML format in the <My Documents>\Magic\projects\<project name>\<current project>\Source directory. When you are working on the project and want to save the changes that you made, go to the File menu and select Save (Ctrl+S) or Save All (Ctrl+SHIFT+S). Magic xpi will save the changes to the XML files. Magic xpi does not run the Checker for the Save option.

You can also save a copy of your existing project under a new name. To do this, go to the File menu and select Save Copy As. The renamed project will be saved in the same location as the original project. (Since version: 4.5)

When you want to deploy your project, you need to save the project as an executable file (.ibp). To do this, go to the Build menu and select one of the following options:

  • Build Solution: Uses a number of optimization rules on the generation process of the modified objects to create the executable file (.ibp). Magic xpi will save the project (only the modified objects), load the project files and run the Checker on the project level. If the Checker finds any errors, Magic xpi will not build the project. Note that when using the Build Solution option, the Magic xpi Checker does not check for variables that are not in use.

  • Rebuild Solution: Ignores the optimization rules. Magic xpi will save the project, load the project files and run the Checker on the project level. If the Checker finds any errors, Magic xpi will not build the project.

The Build menu also provides an additional option: Clean Solution. This option deletes the following files and folders from the <My Documents>\Magic\projects\<project name>\<current project> folder:

  • <project name>.ibp

  • mappergenerate

  • Temp

  • _opt

When building the project, if the Checker finds errors, an error message will appear. You can click the View Errors button to open the Checker Results dialog box.

  • When building a project, it is recommended not to open the Temp folder in the project's folder or any of the folders where Magic xpi is installed. This might interfere with the build process.

  • During the build process, the Studio generates a file called start.xml. (The StartProjectFileName property in the Magic.ini file defines the actual name.) The generated start.xml file is located in the Magic xpi installation folder, and holds the configurations that are used for the project startup. This XML file is based on a template that is located in the <My Documents>\Magic\projects\<project name>\<current project> folder. It is created only during the build process, and only if it does not already exist.

  • If you move the project to a different machine, you must modify the start.xml file to match the new project location and host name.

  • The "Abnormal Termination: your license has expired" error will be generated if you try to build a project with an expired license.dat file.

Related Topics

Reference
Attachment 
Attachment