Maintenance fixes master
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 21 Sep 2024 02:48:04 +0000 (05:48 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 21 Sep 2024 02:48:04 +0000 (05:48 +0300)
pom.xml
src/main/java/lwjake2/VisualizeCode.java
tools/debug
tools/open with IntelliJ IDEA

diff --git a/pom.xml b/pom.xml
index 8558741..e501f28 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,7 @@
         <dependency>
             <groupId>eu.svjatoslav</groupId>
             <artifactId>javainspect</artifactId>
-            <version>1.6</version>
+            <version>1.7</version>
         </dependency>
     </dependencies>
 
         <repository>
             <id>svjatoslav.eu</id>
             <name>Svjatoslav repository</name>
-            <url>http://www2.svjatoslav.eu/maven/</url>
+            <url>https://www3.svjatoslav.eu/maven/</url>
         </repository>
     </repositories>
 </project>
index 921598b..b7ed8b1 100644 (file)
@@ -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");
     }
 }
index 8482fc9..8af39f8 100755 (executable)
@@ -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"
     
index de9bae5..304bf94 100755 (executable)
@@ -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