Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5127

Axis2 Codegen plugin contains some wrong assumptions about the Axis2 codegen plugin path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • ide plugins
    • None

    Description

      In the Eclipse plugins, when we select the option of copy jars to code generated project option in the options wizard page, it tries to copy required jars included in the plugin using the following code.

      String eclipseHome = System.getProperty("user.dir");
      String pluginLibLocation = eclipseHome+File.separator+UIConstants.PLUGINS+
      File.separator+UIConstants.AXIS_CODEGEN_PLUGIN_FOLDER+
      File.separator+UIConstants.LIB;

      This means we assume the directory which the currently user is an Eclipse distribution. Therefore the users who are trying the plugin in self hosting mode via codebase will get a IO exception since the path refer by the above code is different from what they currently use. So proper fix would be to use Eclipse infrastructure to get the path.

      Attachments

        1. AXIS2-5127.patch
          1 kB
          Harshana Eranga Martin

        Activity

          People

            harshana05 Harshana Eranga Martin
            harshana05 Harshana Eranga Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: