This example code that accompanies the Design Pattern article was originally built with the Ant build tool on the Windows platform, but has since been migrated to using the Gradle build tool on MacOS.
After cloning this repository to your local workstation, change directory to the factory directory and build the application:
$ gradle clean build
$ ant clean build
Now executing the factory application:
$ gradle run
$ ant run
Please note that if you are using the Ant build tool on the Windows platform, you will need to add the required Java home directories in the build.properties and build.xml files. For example:
java.home=C:\jdk-11.jdk in the build.properties file is referenced as ${java.home} in the build.xml file.
Please don’t hesitate to contact either of us should you have any questions or issues.
- mike [at] redlich [dot] net
- barry [at] burd [dot] org