Skip to main content
1-Visitor
Mar 18, 2014 3:38 PM UTC
Solved

Empty folders are not checked in

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?

    khoppeAnswer
    15-Moonstone
    Mar 19, 2014 4:44 PM UTC

    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

    4 replies

    1-Visitor
    Mar 19, 2014 1:47 PM UTC

    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

    Translate
    khoppe15-MoonstoneAnswer
    15-Moonstone
    Mar 19, 2014 4:44 PM UTC

    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

    Translate
    1-Visitor
    Mar 20, 2014 12:51 PM UTC

    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

    Translate
    16-Pearl
    Mar 31, 2014 12:55 PM UTC

    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

    Translate