Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-206

Setting the export file path works only for existing files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.49
    • 0.49
    • None
    • None

      I'm not sure if this is intended behavior.

      In Forge, I'm attempting to do the following to reset the export file path for FORGE-1556 :

            File forgeHome = OperatingSystemUtils.getUserForgeDir();
            File history = new File(forgeHome, "history");
            File alias = new File(forgeHome, "alias");
            File export = new File(forgeHome, "export");
            Settings newSettings = new SettingsBuilder(settings)
                     .historyFile(history)
                     .aliasFile(alias)
                     .setExportFile(export)
                     .create();
      

      The .setExportFile(export) invocation fails to register the new path of the export file (~/.forge/export), since it doesn't exist yet. This is an implementation detail in the{{SettingsImpl.setExportFile()}} method.

      Surprisingly enough, the default value of ~/.aesh_export also does not exist yet, but Aesh sets it as the default nevertheless. I therefore assume that this is an issue.

            spederse@redhat.com Stale Pedersen
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: