Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
a051ce6c
Commit
a051ce6c
authored
Jun 10, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(scripts): support spaces in java path for windows scripts (#686)
parent
40f19cce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
build.gradle
jadx-cli/build.gradle
+6
-1
build.gradle
jadx-gui/build.gradle
+2
-2
No files found.
jadx-cli/build.gradle
View file @
a051ce6c
...
...
@@ -19,5 +19,10 @@ applicationDistribution.with {
}
startScripts
{
defaultJvmOpts
=
[
'-Xms128M'
,
'-Xmx4g'
]
defaultJvmOpts
=
[
'-Xms128M'
,
'-Xmx4g'
,
'-XX:+UseG1GC'
]
doLast
{
def
str
=
windowsScript
.
text
str
=
str
.
replaceAll
(
'set JAVA_EXE=%JAVA_HOME%/bin/java.exe'
,
'set JAVA_EXE="%JAVA_HOME%/bin/java.exe"'
)
windowsScript
.
text
=
str
}
}
jadx-gui/build.gradle
View file @
a051ce6c
...
...
@@ -51,8 +51,8 @@ startScripts {
doLast
{
def
str
=
windowsScript
.
text
str
=
str
.
replaceAll
(
'java.exe'
,
'javaw.exe'
)
str
=
str
.
replaceAll
(
'"%JAVA_EXE%" %DEFAULT_JVM_OPTS%'
,
'start "jadx-gui" /B "%JAVA_EXE%" %DEFAULT_JVM_OPTS%
'
)
str
=
str
.
replaceAll
(
'"%JAVA_EXE%" %DEFAULT_JVM_OPTS%'
,
'start "jadx-gui" /B "%JAVA_EXE%" %DEFAULT_JVM_OPTS%'
)
str
=
str
.
replaceAll
(
'set JAVA_EXE=%JAVA_HOME%/bin/javaw.exe'
,
'set JAVA_EXE="%JAVA_HOME%/bin/javaw.exe"
'
)
windowsScript
.
text
=
str
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment