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

前端 未结 4 1636
心在旅途
心在旅途 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条回答
  •  悲&欢浪女
    2020-12-15 08:42

    I've done something similiar before, using the Ant Exec task. See http://ant.apache.org/manual/Tasks/exec.html

    It allows you to call a specific system command. In our case, we needed to call Delphi (don't ask) to build some DLL's for a particular project. The exec command would also allow you to call gcj instead of javac.

提交回复
热议问题