Skip to content

Java tool to analyze JVM projects/solutions, enabling schema analysis and documentation generation.

License

Notifications You must be signed in to change notification settings

dendrodocs/java-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DendroDocs Java Tool

Maven Central Version Coverage Status

dev.dendrodocs.tool is a command-line tool for analyzing Java projects and generating structured JSON output. It forms an integral part of the DendroDocs ecosystem, providing an easy way to bridge the gap between your Java code and up-to-date, detailed documentation.

Features

A command-line tool that analyzes Java projects and produces a JSON file that follows the schema defined in the DendroDocs Schema repository.

Prerequisites

  • JDK 21 or newer.

Installation

To install dev.dendrodocs.tool, you can fetch it directly via Maven:

mvn dependency:get -Dartifact="dev.dendrodocs:tool:LATEST:jar"

This will download the tool and store it in your local Maven repository.

Usage

Once installed, you can run the tool using the following command, in PowerShell:

java -jar "$env:USERPROFILE\.m2\repository\dev\dendrodocs\tool\0.1.0\tool-0.1.0.jar" --project "G:\DendroDocs\java-tool\" --output "java-tool.json" --pretty

This command will analyze the Java project located at G:\DendroDocs\java-tool\, generate a pretty-printed JSON file named java-tool.json, and store it in the current directory.

Viewing the Output

To quickly preview the first few lines of the generated JSON output, use the following PowerShell command:

Get-Content -Path "java-tool.json" -Head 8

Output

[ {
  "FullName" : "dev.dendrodocs.tool.descriptions.ForEachDescriptionJsonTest",
  "Fields" : [ {
    "Name" : "mapper",
    "Modifiers" : 132,
    "Type" : "com.fasterxml.jackson.databind.ObjectMapper",
    "Initializer" : "new ObjectMapper()"
  } ],

This JSON output contains detailed descriptions of your Java classes, including fields, methods, types, and modifiers.

The DendroDocs Ecosystem

dev.dendrodocs.tool is part of the larger DendroDocs ecosystem. Explore DendroDocs to find more tools, libraries, and documentation resources that help you bridge the gap between your code and its documentation.

Contributing

Contributions are welcome! Please feel free to create issues or pull requests.

License

This project is licensed under the MIT License.

About

Java tool to analyze JVM projects/solutions, enabling schema analysis and documentation generation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Languages