Questions tagged [antcall]

Apache Ant task that calls another target within the same buildfile.

antcall official documentation.

7 questions
9
votes
6 answers

Antcall: Call nested ant target from another file

I have two ant files: 1) Main file 2) Utilities file
user1518048
  • 451
  • 2
  • 5
  • 4
5
votes
3 answers

Ant: How to test if a target exist (and call it not if it doesn't)?

I have a set of build files, some of them calling others -- importing them first. End of line builds may have or may not have a specific target (e.g. "copyother"). I want to call it from my main build file if that target is defined within the…
Vladimir Dyuzhev
  • 18,130
  • 10
  • 48
  • 62
2
votes
1 answer

Any way of parametrizing whether or not to append inner elements in ant?

I am writing an ant file for compiling a flex project (but this question may apply to non-flex ant scripts as well). I had several targets there that look like this:
yonix
  • 11,665
  • 7
  • 34
  • 52
2
votes
1 answer

Preventing ant dependencies to be called multiple times in parallel

Background: I have a build process that compiles java code and builds two jars using the compiled classes (each jar a different subset, with some classes appearing in both). Now, I was required that the users to be able to build each jar separately,…
yossiz74
  • 889
  • 1
  • 9
  • 16
2
votes
1 answer

Ant-contrib : AntCallback always returns same value

My problem is; When I call an antcallback function more than one, It returns the same value always. Check out the following code :
akdora
  • 893
  • 1
  • 9
  • 19
1
vote
1 answer

scriptlla concurrency issues?

I use "antcall" scriptlla concurrent invocations, but appear "javax.mail. Management InstanceNotFoundException". I set up 10 concurrent, sometimes can be 10, sometimes only a few can rise.
Mott Lui
  • 13
  • 2
1
vote
0 answers

How to continue if any of the antcall fails?

I am trying to run an ANT script. In which I am calling multiple targets.