Execute my groovy script with ant or maven

后端 未结 3 1382
迷失自我
迷失自我 2021-01-02 10:12

I have the following:

  • 1 java class
  • 1 bat file (starts the groovy script)
  • 1 groovy file

All in the same folder.

Now I w

3条回答
  •  天命终不由人
    2021-01-02 11:07

    You can do this via Ant as shown with a full example here. See the Compiling and running with Ant section.

    You'll have to download ant, make sure the ANT_HOME and JAVA_HOME variables are set, and put the ANT_HOME/bin in your PATH.

    Once you have the build.xml in place, you can call ant at the command line which will run the build.xml

    More details on the Groovy ant task here

提交回复
热议问题