cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Empty folders are not checked in

ptc-5156654
1-Newbie

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?

1 ACCEPTED SOLUTION

Accepted Solutions
khoppe
14-Alexandrite
(To:ptc-5156654)

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

View solution in original post

4 REPLIES 4
tdalon
4-Participant
(To:ptc-5156654)

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

khoppe
14-Alexandrite
(To:ptc-5156654)

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

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

KaelLizak
14-Alexandrite
(To:ptc-5156654)

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


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Top Tags