Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java options? #24

Open
Ingo60 opened this issue Oct 21, 2015 · 4 comments
Open

Java options? #24

Ingo60 opened this issue Oct 21, 2015 · 4 comments

Comments

@Ingo60
Copy link
Member

Ingo60 commented Oct 21, 2015

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?

@Dierk
Copy link
Member

Dierk commented Oct 21, 2015

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 [email protected]:

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.

@Ingo60
Copy link
Member Author

Ingo60 commented Oct 21, 2015

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.

@Dierk
Copy link
Member

Dierk commented Oct 21, 2015

The command is in the build/dist/bin/

Dierk

sent from:mobile

Am 21.10.2015 um 20:43 schrieb Ingo Wechsung [email protected]:

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.

@mmhelloworld
Copy link
Member

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants