Search code examples
javaant

How can I get the number of availableProcessors in Ant


I would like to get the number of availableProcessors from with my Ant build script (i.e. value that is returned from Runtime.getRuntime().availableProcessors(). Is there an existing property that contains this value or do I have to write a custom ant task?


Solution

  • write your custom ant task, is simple as write a class