0

Is it possible "and how if you know", to schedule the execution of an ant task? For example, i want my build.xml to be executed every 5 hours or every day at a certain time? I have been looking around but no solution found

Thank you

martin clayton
  • 76,436
  • 32
  • 213
  • 198
JBoy
  • 5,398
  • 13
  • 61
  • 101

3 Answers3

3

For very simple requirements, I'd echo the use of cron.

If the reason for running ANT is to periodically perform a master build of your project's code, then you're effectively following a practice called "Continuous Integration". In that case I'd highly recommend running a continuous integration server, such as Jenkins.

Jenkins is a very useful piece of software, easy to install and can become your automation framework for more than just building your code.

Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185
0

Just use cron and call ant.sh from it.

Alex Gitelman
  • 24,429
  • 7
  • 52
  • 49
0

If you are working on a windows environment, you can use the "task scheduler" and set the interval. If you are working in unix/linux, you may use cron for scheduling your job.

Vivek Viswanathan
  • 1,968
  • 18
  • 26