4/17/2023 0 Comments Apache ant parameters cmd![]() ![]() How to pass parameter to Ant scripts ?Īnt can access such variables directly ($ ). If you do not want to handle separate properties for each possible argument, I suggest you’d use: You can invoke either from the command line like this: Make sure to use the -Darg syntax if you ran this: then ant would try to run targets arg0 and arg1. Was this post helpful? Thanks for your feedback! How to invoke ant from the command line? To resolve this either place a character at the beginning of each line you don’t want to see or add an off” at the beginning of the batch file. The echo of the command you are having in your batch file is because by default echo is on. So calling it instead of ant.bat will generate the non recognized command error. AND in the ant directory there is an ant.bat and ant.cmd, but ant.cmd is not an windows batch file. So to call it from your batch file, call ant should be used. BUT, ant core (java code) is invoked from a bat file (ant.bat).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |