String function ( @ NotNull String arg0 ) { return findAbsolutePathOnMac ( arg0 ) ; }
alters the passed in exe path to increase probability of exe file success finding when spawning an external process . modifications are performed iff the passed in exe path is a basename i.e. it does n't contain slashes . e.g. `` java '' , `` git '' or `` node '' . the motivation behind this modification is as follows . when exe path is a basename , processbuilder #start searches for the executable file in the original pathenvironment variable i.e. system.getenv `` path '' . the problem is that on macosx original path value can be different than the path value in terminal see environmentutil #getenvironmentmap . concode_field_sep Logger LOG concode_elem_sep String PATH_ENV_VAR_NAME concode_field_sep List<File> doFindExeFilesInPath concode_elem_sep File findInOriginalPath concode_elem_sep File findInPath concode_elem_sep File findInPath concode_elem_sep File findInPath concode_elem_sep File findInPath concode_elem_sep String findAbsolutePathOnMac concode_elem_sep List<File> findAllExeFilesInPath concode_elem_sep List<File> findAllExeFilesInPath concode_elem_sep List<File> findExeFilesInPath