I have a strange situation where I can build a project with ant without any errors on my development machine but when I push the exact same source to the production server I can’t get it to build on that side.
I get ‘cannot find symbol’ errors related to specific syntax.
I set up a git repo on the production server then cloned it. So I really don’t get how I could build it on my side but not the production server side, since I got the code from the production server in the first place, and it was running previously.
The code that causes the build to fail is not from the commit I pushed. I tried changing back to the master which has been unchanged since the original files were added to the repo and it still won’t build for the same reason.
So since I can’t start the server again without the build completing & the reason that it fails has to do with code unlikely to be used any time soon. Is it possible to get ant to continue to build ignoring errors? Or does anyone have an other ideas what the problem could be? (I need to get the server running again even if it’s unstable)
I have a strange situation where I can build a project with ant without
Share
If the same source is unable to compile on two different machines, that points to a difference in the environment settings between the two machines: either there are different libraries being compiled against on the two machines (which one would hope is not the case if you are using a tool like Ant, you should be specifying the exact libraries your code needs), or you are using different versions of the JDK to compile against.
I suggest resolving the environmental problems rather than hacking Ant to ignore errors.