How to tell ant to build using a specific javac executable?

前端 未结 4 1627
心在旅途
心在旅途 2020-12-15 07:47

How can I tell ant to use a specific javac executable from the command line?

I have an installation of gcj, built as part of gcc, within a library we di

4条回答
  •  -上瘾入骨i
    2020-12-15 08:24

    If you are using Ant 1.6 or higher, you can set the javac attribute fork="yes". This gives you the ability to specify the path of your executable when using jikes, jvc, gcj, sj, or whatever version of javac you are using.

      
    

提交回复
热议问题