String subst for PERL_EXECUTABLE

2008-10-28
2013-05-20
  • Kenneth Olwing

    Kenneth Olwing - 2008-10-28

    Hi,

    I'd like to request a minor fix so that the pref PERL_EXECUTABLE can make use of string variable substitution. This would help me in better abstracting exactly which perl to use, and which may have very varying paths to it on different machines, OS'es and circumstances.

    A quick look gives that PerlEditorPlugin.getPerlExecutable() should be the place; code from the top of my head...

    public String getPerlExecutable() {
        String s = getPreferenceStore().getString(PreferenceConstants.DEBUG_PERL_EXECUTABLE);
        return VariablesPlugin.getStringVariableManager().performStringSubstitution(s);
    }

    Would consider adding this?

    TIA,

    ken1

     
    • Jan Ploski

      Jan Ploski - 2008-10-28

      The proposed location is not correct (getPerlExecutable must return the literal preference value). Anyway, I implemented it in 0.6.27.

       
      • Kenneth Olwing

        Kenneth Olwing - 2008-10-28

        Ok, I didn't do an exhaustive attempt to find exactly how it was used figuring you would immediately know the best how and where...

        Thumbs up, thanks!

        ken1

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks