File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 65
65
patches/remove-db.diff
66
66
patches/nbjavac-not-required.diff
67
67
patches/l10n-licence.diff
68
+ patches/no-security-manager-allow.diff
68
69
</string >
69
70
<filterchain >
70
71
<tokenfilter delimoutput =" " >
109
110
<move file =" ${ lsp.build.dir } /platform/lib/nbexec" tofile =" ${ lsp.build.dir } /platform/lib/nbexec.sh" />
110
111
<replace file =" ${ lsp.build.dir } /bin/nbcode.sh" token =" /platform*/lib/nbexec" value =" /platform*/lib/nbexec.sh" />
111
112
<replace file =" ${ lsp.build.dir } /bin/nbcode.sh" token =" basename "$PRG"" value =" basename "$PRG" ".sh"" />
113
+ <replace file =" ${ lsp.build.dir } /platform/lib/nbexec.dll" token =" java.security.manager" value =" no.java.secur.manager" encoding =" ISO-8859-1" />
114
+ <replace file =" ${ lsp.build.dir } /platform/lib/nbexec64.dll" token =" java.security.manager" value =" no.java.secur.manager" encoding =" ISO-8859-1" />
112
115
<chmod file =" ${ lsp.build.dir } /bin/nbcode.sh" perm =" u+x" />
113
116
<chmod file =" ${ lsp.build.dir } /platform/lib/nbexec.sh" perm =" u+x" />
114
117
<chmod file =" ${ lsp.build.dir } /java/maven/bin/mvn.sh" perm =" u+x" />
Original file line number Diff line number Diff line change
1
+ diff --git a/platform/o.n.bootstrap/launcher/unix/nbexec b/platform/o.n.bootstrap/launcher/unix/nbexec
2
+ index 1d6ad6e530..228b37cbe2 100755
3
+ --- a/platform/o.n.bootstrap/launcher/unix/nbexec
4
+ +++ b/platform/o.n.bootstrap/launcher/unix/nbexec
5
+ @@ -192,7 +192,7 @@ fi
6
+ # rename old heap dump to .old
7
+ mv "${userdir}/var/log/heapdump.hprof" "${userdir}/var/log/heapdump.hprof.old" > /dev/null 2>&1
8
+
9
+ - jargs_without_clusters="$jargs -Djava.security.manager=allow"
10
+ + jargs_without_clusters="$jargs"
11
+ jargs="-Dnetbeans.dirs=\"${clusters}\" $jargs_without_clusters"
12
+
13
+ if [ -z "$cachedirspecified" ]; then
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ const extraLaunchOptions = [
53
53
"-J-XX:PerfMaxStringConstLength=10240" ,
54
54
"--locale" , l10n . nbLocaleCode ( ) ,
55
55
"--start-java-language-server=listen-hash:0" ,
56
- "--start-java-debug-adapter-server=listen-hash:0"
56
+ "--start-java-debug-adapter-server=listen-hash:0" ,
57
+ "-J-DTopSecurityManager.disable=true"
57
58
] ;
58
59
59
60
const prepareUserConfigLaunchOptions = ( ) : string [ ] => {
You can’t perform that action at this time.
0 commit comments