This project has been migrated from Apache Ant to Gradle while maintaining identical build output and cross-platform compatibility.
- Java 21 or later
- Gradle 9.0 or later installed on the system
gradle dist— Build complete distribution (default task)gradle clean— Clean build artifactsgradle jar— Build only the JAR filegradle distclean— Remove only thedistdirectorygradle forceClean— Force clean all artifacts including.classfiles
Important: Run all commands from the project root directory.
gradle distgradle clean dist- Always Clean Builds: Every build starts fresh with no caching
- Cross-Platform: Automatically detects Windows/Unix and copies appropriate scripts
- Modular Runtime: Creates custom JRE with jlink in
dist/bin/
The dist/ directory contains:
bin/— Custom JRE with java executablelib/— Required JAR filescatalog/,srx/,xmlfilter/— Configuration fileslicenses/,LICENSE— License information- Platform-specific scripts (
.shor.cmd)
| Ant Command | Gradle Equivalent |
|---|---|
ant dist |
gradle dist |
ant clean |
gradle clean |
ant compile |
gradle jar |
ant distclean |
gradle distclean |
- Efficient File Copying: Uses glob patterns instead of copying files individually
- Better Task Dependencies: Improved build orchestration with
mustRunAfter - Enhanced Cleanup: Automatic removal of temporary directories
- Modern Tooling: Better IDE integration and plugin ecosystem
- Cross-Platform jlink: Automatic path separator detection