Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
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?
Solved! Go to Solution.
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
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
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
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