Initial version for commandline launcher.
--- /dev/null
+#!/bin/bash
+
+(
+ # go to project root directory
+ cd ..
+
+ # This script installs JavaInspect into /opt/javainspect/ directory.
+ # It also enables javainspect command at the commandline.
+
+ # remove old installation (if any)
+ sudo rm -rf /opt/javainspect/
+
+ # compile new package
+ mvn clean package
+
+ # create installation directory
+ sudo mkdir -p /opt/javainspect/
+
+ # copy javainspect jar file to opt installation directory
+ sudo cp target/javainspect.jar /opt/javainspect/
+)
+
+# deploy launcher script to /usr/local/bin/javainspect
+sudo cp javainspect /usr/local/bin/
--- /dev/null
+#!/bin/bash
+#
+# Launcher script for JavaInspect utility:
+# http://www2.svjatoslav.eu/gitbrowse/javainspect/doc/
+#
+
+# Commandline parameters:
+# [JAR_FILE_PATH] [GRAPH_NAME] [[OPTIONS] ...]
+#
+#
+
+
+java \
+ -cp .:./example/target/myproject-0.0.jar:./target/javainspect-1.6-SNAPSHOT.jar \
+ eu.svjatoslav.inspector.java.Main \
+ ./example/src/main/java/ com.myproject.* myproject
it under the terms of version 3 of the [[https://www.gnu.org/licenses/lgpl.html][GNU Lesser General Public
License]] or later as published by the Free Software Foundation.
-- Program author:
+- Program authors:
- Svjatoslav Agejenko
- - Homepage: http://svjatoslav.eu
- - Email: mailto://svjatoslav@svjatoslav.eu
+ - Homepage: http://svjatoslav.eu
+ - Email: mailto://svjatoslav@svjatoslav.eu
+
+ - Tony Bargnesi
+ - GitHub fork for the project:
+ https://github.com/abargnesi/javainspect
- [[http://www.svjatoslav.eu/programs.jsp][other applications hosted at svjatoslav.eu]]
- BUG: Should not hide references if there are too many of them to classes if
referring classes are not visible anyway because of blacklist/whitelist rules.
Basically reference counting should exclude not visible classes.
-- FEATURE: replace internal java parser with: https://javaparser.org/
+- FEATURE: replace internal java parser in package
+ eu.svjatoslav.inspector.java.methods with: https://javaparser.org/
- FEATURE: integarte with [[http://plantuml.com/class-diagram][PlantUML]].
- FEATURE: add dark theme
- FEATURE: sort Class fields by alphabet
<artifactId>javainspect</artifactId>
<version>1.7-SNAPSHOT</version>
<packaging>jar</packaging>
- <name>Java inspect</name>
+ <name>JavaInspect</name>
<description>Utility to visualize Java code</description>
<organization>
<build>
+ <finalName>javainspect</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
import static java.io.File.separator;
import static java.lang.System.getProperty;
+/**
+ * This class acts as a commandline interface for JavaInspect.
+ */
public class Main {
public static void main(String[] args) {
if (args.length == 0) {
cg.whitelistClassGlob(packageGlob);
cg.setKeepDotFile(true);
cg.generateGraph(graphName);
-
- System.exit(0);
}
}
<artifactId>javainspect-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
- <name>Java inspect demo</name>
- <description>Demonstration project for Java inspect utility</description>
+ <name>JavaInspect demo</name>
+ <description>Demonstration project for JavaInspect utility</description>
<build>
<plugins>