This file is indexed.

/usr/share/psychtoolbox-3/PsychJava/AddPsychJavaPath.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function AddPsychJavaPath

% Add Psychtoolbox directories containing Java classes to the path
% which MATLAB searches for Java classes.  The MATLAB Java path is separate
% from the path searched for .m and mex functions.
%
% PsychtJavaPaths updates the MATLAB Java path lazily, detecting first
% whether the MATLAB paths have already been changed before making changes.
%
% AddPsychJavaPath is called by Psychtoolbox functions which depend on
% Psychtoolbox Java classes; It should be unnecessary to use it within your
% own programs.    
%
% see also: PsychJava, IsPsychJavaPathSet

% HISTORY
% 6/20/2006  awi    Wrote it.  Uses function javaaddpath as suggested by Mario.


% We use IsPsychJavaPathSet to retain state between invocations because use
% of javaaddpath erases global and persistent state within the function
% from which it is called.  This is presumably bug in MATLAB (version
% 7.0.4.352 (R14) Service Pack 2).


if ~IsPsychJavaPathSet
    path_PsychtoolboxVersion= which('PsychtoolboxVersion');
    path_PsychBasic= fileparts(path_PsychtoolboxVersion);
    path_PsychtoolboxRoot= fileparts(path_PsychBasic);
    path_PsychJava= fullfile(path_PsychtoolboxRoot, 'PsychJava');
    %check to see if it is the static path before adding it to the dynamic
    %path
    staticPath=javaclasspath('-static');
    if ~any(strcmp(staticPath, path_PsychJava))
        javaaddpath(path_PsychJava)
    end
    IsPsychJavaPathSet(1);
end




% persistent PSYCH_ARE_JAVA_DIRECTORIES_IN_MATLAB_JAVA_PATH;
% 
% 
% if isempty(PSYCH_ARE_JAVA_DIRECTORIES_IN_MATLAB_JAVA_PATH)
%     path_PsychtoolboxVersion= which('PsychtoolboxVersion');
%     path_PsychBasic= fileparts(path_PsychtoolboxVersion);
%     path_PsychtoolboxRoot= fileparts(path_PsychBasic);
%     path_PsychJava= fullfile(path_PsychtoolboxRoot, 'PsychJava');
%     javaaddpath(path_PsychJava);
%     PSYCH_ARE_JAVA_DIRECTORIES_IN_MATLAB_JAVA_PATH=1;
% end