[BLUEJ-78] change *.pgk suffix to something else
The .pkg suffix clashes with Mac .pkg files. This means that we cannot create file associations. The suffix should be changed to .bluej. Also, see ticket BLUEJ-121.
We have to be a bit careful when transitioning to the new suffix. We did it in Greenfoot a while back, and one of the problems where that when you tried to open a project created with a newer version of Greenfoot in a previous version of Greenfoot, it wouldn't recognise it as a greenfoot project (because it expected a .pkg and not a .greenfoot)
For a few releases, we should have 2 project files with identical content. It would work like this:
In the transition versions of BlueJ:
When opening a project look for a .pkg file
bq. a. If found: use .pkg to load the project bq. b. If not found: use .bluej to load project 2. When saving project, save everything to both .pkg and .bluej
In old BlueJ version that doesn't support .bluej it will still have the .pkg file to use.
In future versions of BlueJ where we wont use .pkg:
When opening a project look for a .pkg file
bq. a. If found: use .pkg to load the project bq. b. If not found: use .bluej to load project 2. When saving project, save everything to .bluej, and iff .pkg exists, also save that
This way, if you get a project from someone else that is using an old .pkg-only version of BlueJ, you can still modify it, send it back to them, and they will be able to open it.
Remember: test if the teamwork stuff works with both .pkg and .bluej
Issue metadata
- Issue type: Task
- Priority: Low
- Fix versions: 2.5.0