Skip to content

jf17/jaguar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jaguar

A lightweight package manager and build tool for Java projects, similar to Maven or Gradle.

Features

  • Dependency Management: Download JAR dependencies from Maven repositories
  • Compilation: Compile Java source files with proper classpath handling
  • Packaging: Create JAR files with dependencies and manifest
  • Cross-platform: Support for Windows and Linux
  • Simple Configuration: XML-based project configuration

Installation

  1. Clone the repository
  2. Build the project: go build
  3. Set up environment variables (see Configuration section)

Configuration

Environment Variables

For Windows (create a batch file):

set JAGUAR-JAVA=C:\Program Files\Java\jdk-21\bin\java.exe
set JAGUAR-JAVAC=C:\Program Files\Java\jdk-21\bin\javac.exe
set JAGUAR-JAR=C:\Program Files\Java\jdk-21\bin\jar.exe

For Linux/macOS:

export JAGUAR-JAVA=/usr/bin/java
export JAGUAR-JAVAC=/usr/bin/javac
export JAGUAR-JAR=/usr/bin/jar

Project Structure

your-project/
├── src/main/java/          # Java source files
├── pom.xml                 # Dependencies (optional)
├── jaguar/project.xml      # Project configuration (auto-generated)
└── target/                 # Build output
    ├── classes/            # Compiled classes
    ├── dependency/         # Downloaded JARs
    └── build/              # Final JAR files

Usage

Available Commands

  • jaguar clean (alias: cln) - Clean target directory
  • jaguar compile - Compile Java source files
  • jaguar package (alias: p) - Package compiled classes into JAR
  • jaguar download (alias: d) - Download dependencies from POM
  • jaguar compile-package (alias: comp-p) - Compile and package
  • jaguar clean-package (alias: cln-p) - Clean, download, compile, and package
  • jaguar help - Show help information

Example Workflow

  1. Initialize project: Run jaguar help to create initial configuration
  2. Add dependencies: Create a pom.xml file (see example-pom.xml)
  3. Download dependencies: jaguar download
  4. Compile sources: jaguar compile
  5. Package JAR: jaguar package

Or use the combined command:

jaguar clean-package

Project Configuration

The jaguar/project.xml file is automatically created with default values:

<project>
    <groupId>ru.jf17.ide</groupId>
    <artifactId>Main</artifactId>
    <fileName>MyIDE</fileName>
    <version>1.0-SNAPSHOT</version>
</project>

Dependencies

Dependencies are defined in a standard Maven pom.xml file. Only compile scope dependencies are downloaded.

Status

This project is in active development. Current version supports basic Java project building and dependency management.

Testing

A test project is available at: https://github.com/jf17/jide

About

Yet another package manager for Java like Maven or Gradle.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors