#434 Include Fan compilation in Ant build file

cjbaldoza Tue 20 Jan 2009

Hi Guys, thanks for having this cool language. We have an existing project and want to write a module using this language and integrate this. I just want to ask if how can I integrate the compilation of fan code to the existing Ant build file? Is this possible? I know there is a Build tool, can we integrate this or call this from the Ant build file? Thanks in advance and more power!

brian Tue 20 Jan 2009

Fan can compile to normal Java jar files with a pretty straight forward mapping to make it look like Java classes (assuming you don't use closures, etc). However to be honest, the effort and tools so far have been focused on Fan code calling Java code, not vise versa. So it would take a bit of hacking to get the tools like jstub in place to generate clean Java jars without a custom class loader. If possible, you might want to try Fan out first in an environment where Fan calls Java, but not Java calling Fan.

cjbaldoza Tue 20 Jan 2009

Thanks Brian for your reply. I got your point here. Btw, where can I get the jar file when running the jstub tool? I tried jstub <pod_file> but I can't find the pod_file.jar.

cjbaldoza Tue 20 Jan 2009

Don't mind my question. It's ok now and I can see now the jar file.

Login or Signup to reply.