Skip to content

Move version and console history to .paper dir - #14104

Merged
kennytv merged 5 commits into
mainfrom
extra-files
Jul 26, 2026
Merged

Move version and console history to .paper dir#14104
kennytv merged 5 commits into
mainfrom
extra-files

Conversation

@kennytv

@kennytv kennytv commented Jul 26, 2026

Copy link
Copy Markdown
Member

No description provided.

@kennytv
kennytv requested a review from a team as a code owner July 26, 2026 09:10
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jul 26, 2026
@molor

molor commented Jul 26, 2026

Copy link
Copy Markdown

What about migration (moving from old directory to new) of existing files? Or, at least, automatic deletion of it... because after that they will become useless?

@molor

molor commented Jul 26, 2026

Copy link
Copy Markdown

Also, it would be very nice (at least for me and my team) if the default path to ".paper" directory could be changed via command line argument at server startup, i.e. -DPaper.cacheDirectory=... or --paper-cache-directory ... (similar to already existing --paper-settings-directory) <3

@lynxplay

Copy link
Copy Markdown
Contributor

Idk if a migration for any of these is too useful. Deletion sounds like a lot of effort for something server owners could just yank themselves if they cared. Additionally, we do not have that good of a tool to delete them once instead of every server start.

@lynxplay

Copy link
Copy Markdown
Contributor

Also, it would be very nice (at least for me and my team) if the default path to ".paper" directory could be changed via command line argument at server startup, i.e. -DPaper.cacheDirectory=... or --paper-cache-directory ... (similar to already existing --paper-settings-directory) <3

That would be a really nice addition when we are already creating a single source of truth for that in PaperCacheDir 👍

@kennytv

kennytv commented Jul 26, 2026

Copy link
Copy Markdown
Member Author

Sharing these two files between servers doesn't make any sense. The paperclip cache directory is off-topic here

@lynxplay

Copy link
Copy Markdown
Contributor

Sharing these two files between servers doesn't make any sense

I was mostly thinking directly piping the cache dir into a tmp folder so my root dir stays even leaner.

@lynxplay

Copy link
Copy Markdown
Contributor

Fwiw, upcoming paperclip changes are going to be using this folder as well. In that regard, changing this dir makes less sense as the dir will exist anyway. Sharing them between servers is def not the goal of the cache dir (console and ver history for example).

Comment thread paper-server/src/main/java/io/papermc/paper/util/PaperCacheDir.java Outdated
Comment thread paper-server/src/main/java/io/papermc/paper/util/PaperCacheDir.java Outdated
@papermc-projects papermc-projects Bot moved this from Awaiting review to Delayed approval in Paper PR Queue Jul 26, 2026
@kennytv
kennytv merged commit 57d665e into main Jul 26, 2026
7 checks passed
@kennytv
kennytv deleted the extra-files branch July 26, 2026 12:51
@github-project-automation github-project-automation Bot moved this from Delayed approval to Merged in Paper PR Queue Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants