Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC buildsystemtoolkit creates a new directory with the same name as the component

Recently, I upgraded rtc buildsystem toolkit from v4.0.5 to 5.0.2. But now I observe the workspace load has components created as folders, but creates a new directory with the same name as the component as nested folder. With 4.0.5, this behaviour was not there. How can I get rid of this in 5.0.2.

For example in 4.0.5, the workspace is as -

Root
    Component Folder 1
       File 1
       File 2
   Component Folder 2
      File 1
      File 2

But now with 5.0.2, the workspace is as below -
Root
    Component Folder 1
       Component Folder 1
          File 1
         File 2
   Component Folder 2
       Component Folder 2     
         File 1
         File 2

0 votes

Comments
Few queries:
  1. Is this happening when building using JBE or Jenkins integration?
  2. In the Jazz Source Control configuration of your build definition - is the delete directory before loading option selected? Also is create folders for components option selected?
  3. Do you have load rules specified in Jazz Source Control configuration?

Hi please see my answers -

  1. Is this happening when building using JBE or Jenkins integration? Jenkins integration
  2. In the Jazz Source Control configuration of your build definition - is the delete directory before loading option selected? Also is create folders for components option selected?   Delete Directory - Not checked. Create folder for components - checked
  3. Do you have load rules specified in Jazz Source Control configuration? Yes load rules are there. some of the load rules are as follows -
<?xml version="1.0" encoding="UTF-8"?>
<scm:sourceControlLoadRule version="1" xmlns:scm="http://com.ibm.team.scm">
    <parentLoadRule>
        <component name="App_Enterprise_Admin"/>
        <parentFolder repositoryPath="/"/>
        <sandboxRelativePath includeComponentName="true" includeRepositoryPath="true"/>
    </parentLoadRule>
    <parentLoadRule>
        <component name="App_Item_Configurator"/>
        <parentFolder repositoryPath="/"/>
        <sandboxRelativePath includeComponentName="true" includeRepositoryPath="true"/>
    </parentLoadRule>
    <parentLoadRule>
        <component name="Application_Addin"/>
        <parentFolder repositoryPath="/"/>
        <sandboxRelativePath includeComponentName="true" includeRepositoryPath="true"/>
    </parentLoadRule>
    <parentLoadRule>
        <component name="Build"/>
        <parentFolder repositoryPath="/"/>
        <sandboxRelativePath includeComponentName="true" includeRepositoryPath="true"/>
    </parentLoadRule>


Accepted answer

Permanent link

The change in behavior could be because of the fix for


I would suggest to unselect create folders for components and run the build once with "Delete directory before loading" option selected. This should get past the overwrite errors. After that you can turn off the "Delete directory before loading" option.

But if you have multiple build machines where the nested component name structure is loaded you might have to retain selection of the "Delete directory before loading" option for sometime until the loaded contents are cleared across all of them.

Geoffrey Clemm selected this answer as the correct answer

0 votes

Comments
Hi Sridevi, thanks a lot for your answer. Actually I just made and now it works as I needed. Thanks a lot for your help.
<sandboxRelativePath includeComponentName="false"

Yes, setting includeComponentName to false should also solve the duplicate folders issue. Glad that your issue is resolved!


One other answer

Permanent link
The nested folders could be created because create folders for components option is selected in the Jazz Source Control configuration and includeComponentName is also set to true in the load rules file.

Were the load rules configured before the upgrade? If so has there been any change after the upgrade? Also was the create folders for components always selected?


0 votes

Comments
Yes, the load rules are there before upgrade. The only change I did is change the toolkit path from 4.0.5 to 5.0. Yes, createfolders for components is always selected. Infact I disabled this after upgrade but I get overwrite errors. Do you know if there is any change w.r.t load rules in 5.0.2 compared to 4.0.5. Please help here

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 31 '19, 7:34 a.m.

Question was seen: 897 times

Last updated: Apr 02 '19, 11:24 p.m.

Confirmation Cancel Confirm