From: Svjatoslav Agejenko Date: Sat, 21 Sep 2024 02:48:04 +0000 (+0300) Subject: Maintenance fixes X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=113e3dde79d737d53825227f4d81ba64ea0d3313;p=quake2.git Maintenance fixes --- diff --git a/pom.xml b/pom.xml index 8558741..e501f28 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ eu.svjatoslav javainspect - 1.6 + 1.7 @@ -120,7 +120,7 @@ svjatoslav.eu Svjatoslav repository - http://www2.svjatoslav.eu/maven/ + https://www3.svjatoslav.eu/maven/ diff --git a/src/main/java/lwjake2/VisualizeCode.java b/src/main/java/lwjake2/VisualizeCode.java index 921598b..b7ed8b1 100644 --- a/src/main/java/lwjake2/VisualizeCode.java +++ b/src/main/java/lwjake2/VisualizeCode.java @@ -4,14 +4,14 @@ import eu.svjatoslav.inspector.java.structure.ClassGraph; public class VisualizeCode { public static void main(String[] args) { - final ClassGraph graph = new ClassGraph(); - - graph.addProject("."); - - graph.setKeepDotFile(true); - - graph.hideOrphanedClasses(); - - graph.generateGraph("Quake source"); +// final ClassGraph graph = new ClassGraph(); +// +// graph.addProject("."); +// +// graph.setKeepDotFile(true); +// +// graph.hideOrphanedClasses(); +// +// graph.generateGraph("Quake source"); } } diff --git a/tools/debug b/tools/debug index 8482fc9..8af39f8 100755 --- a/tools/debug +++ b/tools/debug @@ -28,15 +28,11 @@ while true; do # enable debugging export DEBUG_OPTIONS="-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000,server=y,suspend=n" - # enable JRebel - export REBEL_BASE="$HOME/.jrebel" - export JREBEL_OPTS="-agentpath:/opt/jrebel/libjrebel64.so -Drebel.project.path=`pwd`" - # enable LWJGL native libraries export LWJGL_OPTS="-Djava.library.path=target/natives" # define Maven options - export MAVEN_OPTS="-Xmx4000m $DEBUG_OPTIONS $JREBEL_OPTS $LWJGL_OPTS" + export MAVEN_OPTS="-Xmx4000m $DEBUG_OPTIONS $LWJGL_OPTS" mvn compile exec:java -Dexec.mainClass="lwjake2.LWJake2" diff --git a/tools/open with IntelliJ IDEA b/tools/open with IntelliJ IDEA index de9bae5..304bf94 100755 --- a/tools/open with IntelliJ IDEA +++ b/tools/open with IntelliJ IDEA @@ -1,18 +1,54 @@ #!/bin/bash -# -# This is a helper bash script that starts IntelliJ with the current project. -# Script is written is such a way that you can simply click on it in file -# navigator to run it. -# -# -# Script assumes: -# -# + GNU operating system -# + IntelliJ is installed and commandline launcher "idea" is enabled. -# +# This script launches IntelliJ IDEA with the current project +# directory. The script is designed to be run by double-clicking it in +# the GNOME Nautilus file manager. + +# First, we change the current working directory to the directory of +# the script. + +# "${0%/*}" gives us the path of the script itself, without the +# script's filename. + +# This command basically tells the system "change the current +# directory to the directory containing this script". cd "${0%/*}" + +# Then, we move up one directory level. +# The ".." tells the system to go to the parent directory of the current directory. +# This is done because we assume that the project directory is one level up from the script. cd .. -setsid idea . &>/dev/null +# Now, we use the 'setsid' command to start a new session and run +# IntelliJ IDEA in the background. 'setsid' is a UNIX command that +# runs a program in a new session. + +# The command 'idea .' opens IntelliJ IDEA with the current directory +# as the project directory. The '&' at the end is a UNIX command that +# runs the process in the background. The '> /dev/null' part tells +# the system to redirect all output (both stdout and stderr, denoted +# by '&') that would normally go to the terminal to go to /dev/null +# instead, which is a special file that discards all data written to +# it. + +setsid idea . &>/dev/null & + +# The 'disown' command is a shell built-in that removes a shell job +# from the shell's active list. Therefore, the shell will not send a +# SIGHUP to this particular job when the shell session is terminated. + +# '-h' option specifies that if the shell receives a SIGHUP, it also +# doesn't send a SIGHUP to the job. + +# '$!' is a shell special parameter that expands to the process ID of +# the most recent background job. +disown -h $! + + +sleep 2 + +# Finally, we use the 'exit' command to terminate the shell script. +# This command tells the system to close the terminal window after +# IntelliJ IDEA has been opened. +exit