Open Ingo60 opened 9 years ago
installApp puts a runnable configuration in the build/dist dir. This is what I for example zip and provide as self-contained download of the FregeFX repl.
For -Xss you may want to use the applicationDefaultJvmArgs property. I will follow up with an example on how to set it after I tried it myself.
Dierk
sent from:mobile
Am 21.10.2015 um 19:45 schrieb Ingo Wechsung notifications@github.com:
I use the frege-repl project and was able to build it and I can run it with
./gradlew -q run This is fine so far. But now I want, for example, more stackspace for running repl. I can see with --info that java is just started with no -Xss option.
By the way, is there a way to save the command that "run" executes to some file, so that I can run it without the gradle-overhead? I could then also include my preferred options, like more stack size.
I tried installApp but it doesn't seem to do anything useful. Do I have to resort to copy+paste?
— Reply to this email directly or view it on GitHub.
What about copy+paste? Is there another way to get the command I need to run what I've build? If not, why? Since gradle seems to know this command.
The command is in the build/dist/bin/
Dierk
sent from:mobile
Am 21.10.2015 um 20:43 schrieb Ingo Wechsung notifications@github.com:
What about copy+paste? Is there another way to get the command I need to run what I've build? If not, why? Since gradle seems to know this command.
— Reply to this email directly or view it on GitHub.
This is how I run REPL via Gradle from frege-repl project:
frege-repl$ ./gradlew --no-daemon --console plain :frege-repl-core:run
We can get the command that gradle invokes by adding --info
flag:
frege-repl$ ./gradlew --info --no-daemon --console plain :frege-repl-core:run
It displays the command just before launching the REPL along with other console output:
Starting process 'command '/bin/jdk1.8.0_25/bin/java''. Working
directory: /workspace/frege-repl/frege-repl-core Command:
/bin/jdk1.8.0_25/bin/java -Dfile.encoding=UTF-8 -Duser.country=US
-Duser.language=en -Duser.variant -cp
/workspace/frege-repl/frege-repl-core/build/classes/main:/workspace/frege-repl/frege-repl-core/build/resources/main:/.m2/repository/org/frege-lang/frege-interpreter-core/1.3-SNAPSHOT/frege-interpreter-core-1.3-SNAPSHOT.jar:/workspace/frege-repl/frege-repl-nativedeps/build/libs/frege-repl-nativedeps-1.4-SNAPSHOT.jar:/.m2/repository/jline/jline/2.13/jline-2.13.jar:/.m2/repository/org/frege-lang/frege-interpreter-java-support/1.3-SNAPSHOT/frege-interpreter-java-support-1.3-SNAPSHOT.jar:/.gradle/caches/modules-2/files-2.1/org.frege-lang/frege/3.23.370-g898bc8c/e04bdfbecbae9bde78e3b0246a01954864aa12f4/frege-3.23.370-g898bc8c.jar:/.m2/repository/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar:/.m2/repository/org/eclipse/jdt/core/compiler/ecj/4.2.2/ecj-4.2.2.jar
frege.repl.FregeRepl
Successfully started process 'command '/bin/jdk1.8.0_25/bin/java''
Welcome to Frege 3.23.370-g898bc8c (Oracle Corporation Java
HotSpot(TM) 64-Bit Server VM, 1.8.0_25)
frege>
I use the frege-repl project and was able to build it and I can run it with
This is fine so far. But now I want, for example, more stackspace for running repl. I can see with --info that java is just started with no -Xss option.
By the way, is there a way to save the command that "run" executes to some file, so that I can run it without the gradle-overhead? I could then also include my preferred options, like more stack size.
I tried
installApp
but it doesn't seem to do anything useful. Do I have to resort to copy+paste?