Skip to main content
1-Visitor
March 18, 2014
Solved

Empty folders are not checked in

  • March 18, 2014
  • 3 replies
  • 2307 views

Out project contains empty folders that are used during a maven build but when I load the project to MKS Integrity these folders are ignored and not checked in.

Is there any way to allow empty folders to be checked in?

    Best answer by khoppe

    Hello,

    is it corect that during your Build creation you create additional structures, partly with files, in your local Sandbox area, and that you are using the function "AddMember" to introduce them into your server-located project?

    In this case you don't have any chance to create empty subprojects, because the AddMember Wizard requires at least one artifact in the directory you want to add as subproject. (AddMember)

    The creation of empty subprojects is limited to the function "CreateSubproject". If the structure is already the same, it should be possible to use a CLI-command "si createsubproject --createsubprojects --project=/Projects/test/project.pj --changePackageId=:none --hostname=SERVER --port=PORT -F STRUCTURE.txt"

    with a template structure in the text file STRUCTURE.txt

    After your build you can add all created files and you will have empty structures with only two commands.

    Nice try

    Klaus

    3 replies

    1-Visitor
    March 19, 2014

    Hello Yuri

    AFAIK the only way to add empty directory is to add the subprojects which is some work.

    Maybe you don't need to add empty directories:

    When you later add files contained in these directories you can use the option --createSubprojects automatically.

    In your build script you can create the subdirectories if not available.

    Best Regards

    Thierry

    khoppe15-MoonstoneAnswer
    15-Moonstone
    March 19, 2014

    Hello,

    is it corect that during your Build creation you create additional structures, partly with files, in your local Sandbox area, and that you are using the function "AddMember" to introduce them into your server-located project?

    In this case you don't have any chance to create empty subprojects, because the AddMember Wizard requires at least one artifact in the directory you want to add as subproject. (AddMember)

    The creation of empty subprojects is limited to the function "CreateSubproject". If the structure is already the same, it should be possible to use a CLI-command "si createsubproject --createsubprojects --project=/Projects/test/project.pj --changePackageId=:none --hostname=SERVER --port=PORT -F STRUCTURE.txt"

    with a template structure in the text file STRUCTURE.txt

    After your build you can add all created files and you will have empty structures with only two commands.

    Nice try

    Klaus

    1-Visitor
    March 20, 2014

    Thanks a lot.

    Subproject approach will be hard to implement; we would like to preserve the file system structure of the projects.

    I hope PTC will add the ability to have empty folders in the future releases

    16-Pearl
    March 31, 2014

    If this feature is of interest to you, please contact PTC Integrity Support to have your organization added to RFC 101120, via article CS84230.

    Regards,

    Kael