Hey, I’m trying to debug the latest commit from the master branch from Gradles GitHub.
I set the app’s working directory to my Gradle project and started the run task of my project, which involves launching a jsvc daemon.
For the first times it worked out, but suddenly my desktop began to crash and threw me back to the login screen.
But only if I set the --no-daemon option for the Gradle app.
The syslog doesn’t provide me with any helpful information though…
Using IntelliJ IDEA 2017.2
System Info:
Linux Mint 18.2 Cinnamon 64-bit
Cinnamon version: 3.4.4
Kernel version: 4.12.3-041203-generic
CPU: Intel Core i5-3210M
8 GB RAM
Graphics Card: Radeon HD 7500M/7600M Series
Any help is appreciated
build.gradle (partially):
File jsvcFile = file("./jsvc")
File buildJsvcFile = file("./buildJsvc.sh")
File pidFile = file("./jsvc.pid")
String mainClass = "my.MainClass"
// Launches the shell script that'll build jsvc (https://commons.apache.org/proper/commons-daemon/jsvc.html)
task jsvc (type: Exec) {
doFirst {
executable(buildJsvcFile)
}
}
// A clean will result in deleting the built jsvc exe
clean.delete(jsvcFile)
task run (dependsOn: [jar, jsvc], type: Exec) {
doFirst {
// Get the absolute path of all libraries
String classPath = project.configurations.compile.join(':')
executable(jsvcFile)
args("-server", "-debug", "-cp", classPath + ':' + jar.archivePath, "-nodetach", "-cwd", project.rootDir, "-outfile", "/proc/self/fd/1", "-errfile", "/proc/self/fd/2", "-pidfile", pidFile, "-procname", project.name, mainClass, "debug")
}
}