JRebirth Plugin for Forge (legacy)
Historical JBoss Forge plugin documentation — kept for reference only.

#[[

JRebirth Plugin for Forge (legacy)

Legacy: This page documents the historical JBoss Forge plugin for JRebirth. Prefer the Maven archetype tutorial or cloning the sample module for new projects. The Forge plugin is no longer actively maintained for Java 25 / AF 12.

This project was an effort to create a plugin for Forge to work easily with JRebirth JavaFX Framework. It made scaffolding Maven + JavaFX + JRebirth projects easier from a Forge shell.

Prerequisite (historical)

  • A JDK supported by the Forge version you use
  • JBoss Forge
  • IDE that supports Maven (Eclipse, NetBeans, IntelliJ etc.)

Installing (historical)

  • Run the forge
  • Type following command in forge shell to install the plugin forge git-plugin https://github.com/JRebirth/forge-jrebirth-plugin.git
  • Some simple flow using the jrebirth > new-project –named jrebirthsample > jrebirth setup > jrebirth ui-create –name Intro > jrebirth resource-create –all > jrebirth color-add-web –name window_background –hex CCCCCC > jrebirth app-config –key developerMode –value true > jrebirth app-config –key developerMode > jrebirth service-create –name RestCall

Commands

JRebirth executable command jrebirth. Add following sub commands.

  • setup - Installs basic dependency for JRebirth.(core, JAVA_HOME javafx runtime, slf4j).
    • Setup also creates jrebirth.properties, MainApp, and resource folders for fonts, images and styles.
    • setup --module presentation - adds Presentation module to your project
  • ui-create - Creates Model, View and Controller classes for given name. Use --name to provide name. --controllerGenerate - default true - Creates Controller --beanGenerate - default true - Created Bean --fxmlGenerate - default false - Create FXML

NOTE: For best practice, above command creates sub-package and classes inside ui.[name] or ui.fxml.[name] package in top level package.

  • command-create - Creates Command class for given name. Use --name to provide name.
  • service-create - Creates Service class for given name. Use --name to provide name.
  • resource-create - Creates Resource class for given name. Use --name to provide name.
    • --all - default true - Creates all resource for the application.
    • --colorGenerate - default false - flag - Creates Color
    • --fontGenerate - default false - flag - Creates Font
    • --imageGenerate - default false - flag -Creates Image

NOTE: For best practice, above command creates the classes inside command, service or resource package in top level package.

  • color-add-web - Creates a constant in Color resource interface using colorname/value --name - Color constant name --hex - Color indicated by hexa decimal value

  • app-config - updates the jrebirth.properties file

    • --key - use *tab* to see all the keys you can update.
    • --value - sets value to a key
    • --showAll - default false - flag -Displays all the properties value of the app.

NOTE: If you provide only the key then it will display the value of the key. If key is new it sets a new key.

]]#