Repository navigation
First public release. gf is now stable, documented, and ready for general use against GlassFish 7 and 8.
Quick install
Pin to this version (recommended for scripts and CI):
curl -fsSL https://github.com/riyadomf/glassfish-hotswap-cli/releases/download/v1.0.0/gf -o gf
mkdir -p tools
curl -fsSL https://github.com/riyadomf/glassfish-hotswap-cli/releases/download/v1.0.0/HotSwap.java -o tools/HotSwap.java
chmod +x gfSee the README for full setup and daily-workflow docs.
Added
- Incremental Java compilation, only recompiles
.javafiles changed since the last successful build (~3-6s). - JDWP hot-swap via a custom JDI client (
tools/HotSwap.java). Redefines changed classes in-place without restarting the server. - UI file sync (
./gf ui),rsyncfor XHTML, CSS, JS, images, and JasperReports.jrxmltemplates into the exploded deployment. - One-command server lifecycle:
./gf run,start,stop,restart. - Automatic fallback to full Maven build + redeploy when hot-swap can't handle a structural change.
- Detection of attached IDE debuggers,
gf classesdefers to the IDE's hot-swap instead of fighting for the JDWP port. ./gf setup [--delete], idempotent GlassFish resource setup (JDBC connection pools, JNDI custom resources, optional JMS) driven bydb.propertiesandenv.properties.- Auto-sync of JNDI custom resources on
./gf deploy/./gf full, adding a key toenv.propertiesis enough. - Configurable JNDI namespace via
GF_JNDI_PREFIX(default:app). - Auto-detection of
mvnw/mvn, the Java release version frompom.xml, and Lombok on the classpath. - Cross-platform support for Linux and macOS.
- Claude Code skill (
.claude/skills/gf/) that exposes the whole workflow via the/gfslash command. - Sample configuration templates (
db.properties.sample,env.properties.sample) with inline guidance andchmod 600reminders. ensure_asadmin_readyprobe, every command that talks toasadminnow fails fast with actionable guidance (asadmin login/asadmin change-admin-password) when authentication is missing or invalid, instead of crashing silently underset -e. Mirrored insetup-glassfish-resources.sh.- Troubleshooting entry in the README for the
asadmin: Authentication failed for user: nullcase.
Changed
- Self-healing JDWP debug options in
domain.xmlon startup, so a broken debug config doesn't block./gf start. gf's own status lines (info/success/warn/error) are now bold, so they stand out from Maven's regular-weight[INFO]output streaming alongside.- All
asadmin deployinvocations now pass--upload=true, which makes deployments work whether the admin endpoint is anonymous-local or auth-protected withsecure-adminenabled. - Maven
clean packagebuilds incmd_deployandcmd_fullno longer use-q, build progress is visible to the user while they're waiting on it.
Fixed
find_app_name()now consultsasadmin list-applicationswhen the exploded directory is missing, catches "ghost" registrations.- Incremental
javacnow warns when neithermaven.compiler.releasenormaven.compiler.sourceis set, instead of silently using the system default. rsyncerrors in sync functions are surfaced as warnings instead of killing the script underset -e.ping-connection-poolfailures during resource setup no longer abort the rest of the setup.find_app_nameandcreate_custom_resourcesno longer swallowasadminerrors with2>/dev/null; underlying failures (auth, connectivity) now reach the user instead of producing empty results.