An ant based Hybris development boiloerplate with automations.
- Java SDK Version >= v8
ANT_HOME
defined in System environment variables (version >= 1.9.0).ANT_OPTS
defined in System environment variables (OPTIONAL), e.g.-Xmx512m -Dfile.encoding=UTF-8
.HYB_BIN_DIR
defined and appointed to your local Hybrisbin
package by the following orders:- passed in by CLI.
- defined in System environment variables.
- defined in
.env
(ignored by.gitignore
).
git clone https://github.com/jimzhan/hybris.git && cd hybris
ant bootstrap
bootstrap
will first try load .env
from ${basedir}
to provide additional settings supports, then pre-defined Hybris packages will be copied into bin
folder. Two settings profiles will be generated under config
folder afterward:
config/develop
- settings profile for development (default), generated via Hybrisdevelop
template.config/testing
- settings profile for online testing, generated via Hybrisproduction
template.
NOTE you generate new settings profile using following command:
ant createConfig -DHYBRIS_CONFIG_DIR=`pwd`/config/<profile> -Dinput.template=<develop or production>
startHybrisServer
- starts Hybris server at the foreground (default) or background (via-Dmode=start
, synonym to tomcat arguments).stopHybrisServer
- stops Hybris server at the background (if any).
bootstrap
- create a new instance with multi settings profiles supports (develop/develop, testing/production).purge
- delete all generated data files and folders (data
,log
,roles
,temp
andvelocity.log
).
- simple, elegant and performant โค๏ธ
- first class integration with Hybris OOTB automations.
- fast and stable, especially comparing to Gradle ๐ฉ.
NOTE Hybris OOTB ant tasks remain the same.
- editor/IDE/GIT settings.
- Hybris OOTB ant tasks integrations.
- Multi settings profiles supports.
- daemon server supports.
- create new settings profile.
- checkstyle integration (pre-build).
- running server detections.