Dne úterý 7. května 2019 2:46:19 CEST, Damjan Jovanovic napsal(a):
> Hi
> 
> I am trying to develop some improvements to Java Free-Form projects, such
> as auto-detection of the Java version and sources classpath from the Ant
> file, but I am struggling to import Ant into the java/java.freeform module.
> 
> In fact, it seems NetBeans goes to great lengths to avoid ever using Ant
> APIs directly: in the whole repository, org.apache.tools.ant.Project is
> only ever imported in extide/o.apache.tools.ant.module/src-bridge.
> 
> Are NetBeans modules not allowed to use Ant directly? Why?

Hello Damjan,
I guess it is for historic reasons. In the early stages, when Ant was 
developed hectically, it wasn't very compatible from the Java API point of 
view. This separation might have been primarily a shield against incompatible 
changed.

The other aspect is that the Ant support can run with any installed version of 
Ant, not just the bundled one. I think.

-jt




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to