I want to call a target from an other antfile (using <ant ...> , but I also want to add arguments to ant . (And I don't want to use exec). So my Question *Is there a way to call an ant target from an other build.file by using ant, and adding command line values to ant? *
I tried it that way, but it doesn't work.
I would like to call the target from the buildfile build.xml, with logging .
In order to pass command line args, you would have to start another JVM. The ant task doesn't do this. The property tag, as you specified it, passes a specific property (i.e. environment variable) into the ant call to be executed.
In order to do what you are trying to do, you probably need to use the ant exec task and invoke ant that way.