If odd things go wrong when you run this task, set forktrue to use. A far better solution is available on the apache ant page that paramaterises all the directories etc and is a more general and practical answer. Executes a Java class within the running (Apache Ant) VM or forks another VM if specified. This article discusses on how to execute a batch file or shell script using Ant.The article details about using exec command with an example code.We will write an Ant build script, which identifies the current operating system(OS) and based on the OS detected either a batch file or a shell script is executed. It is designed and developed by Apache Software Foundation and initially released on 19 July 2000. Ant is a Java library and a software tool used for automate software build processes such as compile, run, test and assemble Java application. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications. The main known usage of Ant is the build of Java applications. I know this is ancient, but I had a great deal of problems getting Aroonalok's answer to work due to the difficulty with assuming everything is in the root directory. Apache Ant ( A nother N eat T ool) is an open source project started by Apache Software Foundation. Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |