Skip to main content Skip to complementary content

Customizing the folder-level build script templates

Based on the global build script templates, you can add and customize script templates for Jobs and Routes folder by folder under the Build > Maven > Setup custom scripts by folder node.

The build script templates added for a folder apply to all Jobs or Routes in that folder and all its sub-folders except those with their own build script templates set up.

About this task

The following example shows how to add and customize the POM script template for building standalone Jobs from Jobs in the CA_customers folder.

Procedure

  1. From the menu bar, click File > Edit Project properties to open the Project Settings dialog box.
  2. Expand the Build > Maven > Setup custom scripts by folder > Job Designs > CA_customers nodes, and then click the Standalone Job node to open the relevant view, from which you can add script templates or delete all existing templates.
    Standalone Job configuration in the Project Settings dialog box.
    Information noteNote:

    Depending on the license you are using, the project settings items in your Talend Studio may differ from what is shown above.

  3. Click the Create Maven files button to create script templates based on the global templates for standalone Jobs.
  4. Select the script template you want to customize, pom.xml in this example, to display the script code in the code view. Modify the script code in the text panel and click Apply and Close to finish your customization.
    >
    POM script configuration in the Project Settings dialog box.

    Once the build script templates are created for a folder, you can also go to the directory where the XML files are stored, <studio_installation_directory>\workspace\<project_name>\process\CA_customers in this example, and directly modify the XML file of the template you want to customize. Your changes will affect all Jobs in the folder and in all sub-folders except those with their own script set up.

    Information noteWarning: If you are working in a remote project and if you modify an XML file directly, your changes will not be automatically committed to the version control system. To make sure your changes are correctly committed, we recommend that you customize the script templates in Project Settings of Talend Studio instead.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!