About projects

Projects contain resources such as ColdFusion components, interfaces, and CFML pages that you can use to develop ColdFusion applications.

Each project is stored in a default workspace. The workspace stores your projects and other metadata. The preferred workspace location is the ColdFusion document root

You can associate a project with a ColdFusion server. By doing so, you can test the project before final deployment.

Note:

To preview files in your project using a web browser, ensure that you have set your project location to the ColdFusion document root.

To do any CFML development in ColdFusion Builder, you first create a ColdFusion project. To know more about creating a project in ColdFusion Builder, see Creating a ColdFusion project.

Creating a ColdFusion project

The Project Builder wizard guides you through the steps of creating a ColdFusion project.

Enter project information

  1. Right-click in the Navigator area and click New > ColdFusion Project.

  2. In the Project Builder wizard, specify the project name.

  3. To change the default project location, deselect Use Default Location.

  4. Click Next to specify the ColdFusion server details.

Enter server details

  1. Select a server from the Server pop-up menu. If you have not configured a ColdFusion server, then click Add Server to add a server. For more information about setting up a ColdFusion Server, see Adding ColdFusion servers.

    Note:

    If the project is in the server web root, then the Sample URL box is automatically populated with the server URL. For example, http://127.0.0.1:8500/eval, where 127.0.0.1 is the server host, 8500 is the port number, and eval is the project name.

  2. Specify your preview settings to use an external web browser by selecting a web browser installed on your computer. The internal browsers are selected, by default.

  3. Click Next.

Add existing sources

  1. In this step, you can:

    • Link existing resources folder to the project.
    • Select previously configured applications with the current project.
  2. Click Add to select the folder to link to the project.

  3. Click Finish to build a new ColdFusion project.

For more information about linking resources, see Link to resources outside the workspace.

Configure properties for projects and servers

You can use the Properties dialog box in ColdFusion Builder to configure project properties and server settings.

To open this dialog box, right-click the project in the Navigator view and select Properties.

Configure project properties

  1. Select ColdFusion Project from the left pane of the Properties dialog box. You can add and remove external projects as links here.

Configure variable mappings

You use variable mappings to provide Code Assist for component variables that are not defined in the file being edited or in the included files.

  1. In the Properties dialog box, you see a tree-view structure on the left. Select ColdFusion Variable Mappings.

  2. Click New.

  3. In the Variable Name field, specify the name of the variable to map, for example, application.cfc1

  4. In the Mapped To field, enter the fully qualified name of the project variable, for example, com.adobe.mycfcs.cfc1

Configure server settings

  • To open the ColdFusion Server Settings page, select ColdFusion Server Settings in the left pane of the Properties dialog box.
  • To create a ColdFusion Server instance, use the Servers pop-up menu.If you have already configured a server instance, you can assign it to your ColdFusion project. For more information about creating a server instance, see Adding ColdFusion servers.

Add ColdFusion pages, interfaces, and components

ColdFusion Builder provides wizards that guide you through the creation of ColdFusion pages, interfaces, and components.

Create a ColdFusion page

  1. Right-click the ColdFusion project in the Navigator.

  2. Click New > ColdFusion Page.

  3. In the New ColdFusion Page wizard, specify a name for the ColdFusion (CFM) page.

  4. Click Finish.

Create a ColdFusion component

  1. Right-click the ColdFusion project in the Navigator.

  2. Click New > ColdFusion Component.

  3. In the New ColdFusion Component wizard, specify the following:

    • Component name
    • Hint to identify the component (optional).
    • Any component that you want to extend.
    • Any interface that you want to implement.
  4. Select the output type to be true or false.

  5. Click Next.

  6. Click Add to specify the component property details, such as the property name, display name, hint, and default value.

  7. Enter or select a property type from the Type drop-down list.

  8. (optional) Select Add Getter and select its access type from the Access drop-down list.

  9. (optional) Select Add Setter and select its access type from the Access drop-down list.

  10. Click OK to return to the New ColdFusion Component wizard.

  11. To add functions to the ColdFusion component, click Add Function.

  12. In the New Function wizard, specify the functions details, such as the function name, display name, hint, access type, return type, roles, and output type.

  13. Click OK.

  14. To add arguments to the selected function, click Add Argument.

  15. In the New Function Argument dialog box, specify the argument name, display name, hint, argument type, and the default value of the argument.

    Note:

    The options for the argument type are the same as the argument type options for ColdFusion Interface.

  16. Click OK.

  17. Click Finish to create a ColdFusion component (CFC file).

    Note:

    You can use Outline View to navigate through the functions and tags that you add to your ColdFusion page or ColdFusion component.

Create a ColdFusion interface

  1. Right-click the ColdFusion project in the Navigator.

  2. Click New > ColdFusion Interface.

  3. In the New ColdFusion Interface wizard, specify the interface name, hint, and display name.

  4. To extend another interface, browse or specify the name of the CFC.

  5. Click Add Functions to add a function and specify its details, such as the function name, function hint, return type, roles, and output (true or false).

  6. Click Add Arguments to specify the arguments for the selected function. Enter or select an argument type from the Type drop-down list.

  7. Click Finish to create a ColdFusion interface.

Add other files

You can also add the following types of files to your ColdFusion project:

  • .html
  • .js
  • .css
  • .lxr (lexer file)
  • .col (colorization file)
  • .sdoc (ScriptDoc file)
  • Untitled versions of the preceding files

In addition, you can create generic text files, folders, and projects. You add these files to a project much as you add ColdFusion pages or components. To add any of these files to a project, do the following:

  1. Right-click the project.

  2. Select New > Other.

  3. Expand Project Files to specify a filename or expand Untitled Files to create an untitled file.

  4. Select the file that you want to create.

    • If you are creating an untitled file, click Finish.
    • If you selected Project Files, click Next and specify the filename. Then click Finish.

Create CFM/CFC files outside the workspace

You can create CFM/CFC files outside the workspace using the File view.

  1. In the File view, right-click the local folder in which you want to create the CFM/CFC file.

  2. Select New > ColdFusion Page/ColdFusion Component/ColdFusion Interface and then specify the details.

Set Launch Page

You can designate a specific file as the Launch Page for your project. This page is loaded when you run/debug a file in the project.

  1. In the Navigator view, select the page to set as Start Page.

  2. Right-click the page and then select Set As Start Page.

To disable a page from being the Launch Page,

  1. In the Project View, right-click the project and then select Properties > ColdFusion Project.

  2. In the Start Page Setting, deselect Use Start Page.

Dynamically generate Start Page URL for framework applications using extensions

See Extension support for setting Launch Page----

Set URL Prefix

  1. In the Navigator view, select the project or folder for which you want to specify a URL prefix.

  2. Right-click the selected project or folder and select Set URL Prefix.

  3. Enter the URL for the selected resource.

Import, export, and delete projects

Import projects

You can import both ColdFusion and non-ColdFusion projects into ColdFusion Builder.

  1. Right-click in the Navigator view and select Import.

  2. In the Import wizard, select ColdFusion > Import Existing Projects.

  3. In the Import ColdFusion Project dialog box, browse and select the project location. A list of all projects is displayed.

  4. Click Refresh to search and refresh the project list.

  5. Select Show All Projects to display all non-ColdFusion and non-ColdFusion Builder projects in the same location.

  6. Select Add ColdFusion Nature To Non-ColdFusion Projects to apply ColdFusion Builder functionality, such as preview, editing, and debugging, to non-ColdFusion Builder projects.

  7. Select the appropriate projects and click Finish.

    Note:

    Importing a project retains the project properties including the server details, launching settings, browser details, application details, and linked folders.

Import code profiler data

  1. Once you download a profile as .json file, you can use ColdFusion Builder to import the profile and can debug further.

  2. In ColdFusion Builder, right-click on a project, click Import, and choose Import Code Profiler Data.

  3. Choose the .json file and click Finish.

  4. Right-click on the project, click Performance Monitoring Toolset Profiler > Run Performance Monitoring Toolset Profiler.

    Double-click any item to view the line in the file.

Export projects

You can export files and folders from a ColdFusion Builder or non-ColdFusion Builder project to a designated location. However, for ColdFusion Builder projects, ColdFusion Builder functionality like server settings, preferences, and such are not exported.

  1. Right-click in the Navigator view and select Export.

  2. In the Export wizard, select ColdFusion > Export.

  3. In the Export Project dialog box, browse and select the location where you want to export the project.

  4. Click Select All to export all files and folders within the project, or click Filter Types to specify the files that you want to export.

  5. Click Finish to export your project to the designated location.

Delete projects

When you delete a project, you remove the project from the current workspace. You can also remove the project from your computer’s file system at the same time.

  1. Right-click in the Navigator view and select Delete.

  2. To remove the project from the workspace and the file system, select Delete Project Contents On Disk. The project is then permanently removed from the file system; you cannot undo the command.

Cloak projects and files

In ColdFusion Builder, you can cloak or hide files, file types, and folders from all synchronization, upload, download operations. This feature is useful if you have a large directory of files that you want to exclude from your synchronization or uploads.

You can cloak a file or folder in two ways:

  • Right-click the file or folder in the Navigator view and select Synchronize > Cloak this file type. To uncloak the file type, right-click the file or folder and select Synchronize > Uncloak this file type.
  • Set up your preferences to cloak certain file types, using wildcards and regular expressions by performing the following actions:
  1. Right-click the file or folder in the Navigator view and select Synchronize > Advanced Cloaking Preferences.

  2. In the Preferences dialog box, click the  icon.

  3. In the Ignore File/Folder dialog box, specify the file or folder name.

  4. Click OK. The specified file or folder is displayed in the list of files on which cloaking has been applied.

Link to resources outside the workspace

You can link to resources outside the project and workspace. This feature is useful when you have to use resources that are available on shared locations. The linked resource or the folder that contains linked resources appear as follows:

pm_linked_resources

Link to resources outside workspace

  1. In the Navigator view of ColdFusion Builder, right-click the project to add the linked resources to.

  2. Select the resource that you want to link. For example, if you want to link to a folder, select New > Folder.

  3. Enter a name for the resource that you are linking. If you do not enter a name, the default name of the resource is taken.

  4. Click Advanced.

  5. Select Link to folder in the file system. Enter or browse to the resource location.

  6. Click Finish to link the resource to your project.

Use path variables to link to resources

When you link to resources, you can define path variables instead of providing the full path to where the resource is stored. You can define a path variable and then set the path to the resource that you want to link to.

  1. In the Navigator view of ColdFusion Builder, right-click the project to add the linked resources to.

  2. Select the resource that you want to link. For example, if you want to link to a folder, select New > Folder.

  3. Enter a name for the resource that you are linking. If you do not enter a name, the default name of the resource is taken.

  4. Click Advanced.

  5. Select Link to folder in the file system. Enter or browse to the resource location.

  6. Click Variables.

  7. You can select an existing path variable or click New to create a path variable.

    Note:

    The list of existing resource variables is also available by selecting Window > Preferences from the main menu and then selecting General > Workspace > Linked Resources. You can edit and create linked resource variables using the Linked Resources dialog box.

  8. To create a path variable, enter a name for the resource and browse to or provide the full path to the resource. Click OK to add the path variable to the path.

  9. Click Finish to link the resource to your project.

Import and export projects using FTP

Importing a project from an FTP location

  1. Right-click the project in the Navigator and click Import.

  2. Click Remote Systems and choose Remote file system. Click Next.

    Remote file system
  3. Choose a filesystem from the drop-down list or browse to a folder from the list of connections.

    Browse for folder
  4. To create a connection, click New and choose FTP Only. Click Next to continue.

    Create FTP connection
  5. Enter username and password to continue. You can see all the files (cfc, cfm, and so on) of the directory listed in the dialog box. The files are ready for import. Choose or ignore the files you want to import.

    File listing
  6. To start importing the files, click Finish.

Exporting a project to an FTP location

  1. Right-click the project in the Navigator and click Export.

  2. Click Remote Systems and choose Remote file system. Click Next.

    Export_select remote system type
  3. Choose the project and the project files to export to a remote location.

    Export_export files
  4. To start exporting the files, click Finish.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy