Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set -archiveProject trueto avoid flattening #225

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

dominik003
Copy link
Contributor

@dominik003 dominik003 commented Jan 9, 2024

Previously, the -archiveProject flag was set to false. As a result, the project imported from the T4C repository was made available as a simple directory, but all files of the project were flattened. This resulted in a java.nio.file.File.FileAlreadyExistsException exception when two images with the same name existed in different locations. This PR changes the -archiveProject flag to true, which ensures that the projects are passed as .zip files and their original structure is not changed. The archive is then simply unpacked, and as the original structure is retained using -archiveProject true, the previous unmessing step (i.e., moving images into a images and fragments into a fragments directory) is no longer necessary.

Resolves #151

dominik003 and others added 2 commits January 9, 2024 18:23
@dominik003 dominik003 enabled auto-merge January 9, 2024 17:51
@dominik003 dominik003 disabled auto-merge January 9, 2024 17:52
@dominik003 dominik003 merged commit d8493f1 into main Jan 9, 2024
18 checks passed
@dominik003 dominik003 deleted the fix-import-projects-as-archive-to-keep-structure branch January 9, 2024 17:52
@MoritzWeber0 MoritzWeber0 changed the title fix: Set -archiveProject trueto avoid flatten fix: Set -archiveProject trueto avoid flattening Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use -archiveProject for TeamForCapella backups
2 participants