Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-78

change *.pgk suffix to something else

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: Project management

      Description

      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:

      1. When opening a project look for a .pkg file

        a. If found: use .pkg to load the project

        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:

      1. When opening a project look for a .pkg file

        a. If found: use .pkg to load the project

        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

        Attachments

          Activity

            People

            • Assignee:
              polle polle
              Reporter:
              mik Michael K├Âlling
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: