-1

Folks,

I need to run multiple instances of the same target in ant. i.e The deployed ant target should be able to accessible by many users and they should be able to execute the build in parallel.

Regards, Dhinesh.M

Dhinesh M
  • 21
  • 1
  • 3
  • If you have packed your executable in some jar file & distributed to different users/machine they will be able to run it based on command line you configure to run the target?. – user1587504 Nov 15 '13 at 13:23
  • Any details? What does "deployed ant target" mean? Inside a build file, you can `parallel` some `antcall`s to run the same target at the same time; or you can use `foreach` from ant-contrib if you have a list to process. But I guess you want to run multiple ant builds at the same time, do you? – Dante WWWW Nov 15 '13 at 17:16
  • See: http://stackoverflow.com/questions/10130052/how-do-i-stop-jumbling-of-output-from-multiple-ant-tasks-when-using-the-parallel and http://stackoverflow.com/questions/2158937/can-ant-launch-two-java-applications-concurrently/2180665#2180665 – Mark O'Connor Nov 15 '13 at 20:53
  • Thanks. I have a build file in a server / remote machine and I want many users to access it simultaneously. This is my requirement. Do we have any possibility ? – Dhinesh M Nov 18 '13 at 04:14

1 Answers1

0

This is possible with Client-Server mechanism. It has to be implemented via remoteant where the client invokes the ant target in the server. By this multiple users can access the same ant file and execute the build.

Dhinesh M
  • 21
  • 1
  • 3