custom template demo - maxbalan/gradle-custom-init GitHub Wiki

#INTRO On this page you will find a list of demo commands to show how the custom template deployment works.

How to build a template from GitHub

For this demo there is a demo repository which can be used to deploy a few simple projects. If you looked in to the repository it has the following structure:

    * gradle-init
        * custom-template-demo
            * java
                * demo_1
                    * template
                    * script
                      

At this point I will assume you are familiar with How-To-Use and custom tempalte part of the documentation, fi you are not I will suggest you do that in order to understand next section, so lets assume we want to deploy project called demo_1 to a local directory called foo/custom_template_demo_1(replace it with a directory or a path in your system, it does not matter if the directory exists or not), then the command will look like this:

  • bash script

       sh ExecuteCustomInit.sh --project-type custom \
                               --project-target "foo/custom_template_demo_1" \
                               --custom-template "https://github.com/maxbalan/custom-template-demo.git" \
                               --custom-template-target "gradle-init/custom-template-demo/java/demo_1"
    
  • hitting plugin directly

       gradle --project-type custom \
              --project-target "foo/custom_template_demo_1" \
              --custom-template "https://github.com/maxbalan/custom-template-demo.git" \
              --custom-template-target "gradle-init/custom-template-demo/java/demo_1"