I saw the attribute fork="true"
in an ant <java>
task. What does it mean?
It causes the task to run in a different process, and a different Java virtual machine. From the docs:
fork: if enabled triggers the class execution in another VM (disabled by default)
Why this is useful: Some behavior and parameters require a separate JVM, run in a separate process. For example, your task might need a different classpath, more memory, or different JVM arguments. You might want the build to continue if the task fails or crashes. You might want to specify a timeout for the task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With