How do you automate your build process with Java?
Previously, I was using a shareware text editor (with IDE-like syntax highlighting) called Textpad for writing code. To automate the build process, I started using Ant. That works fine except that I still have to use a freeware program called Inno Setup for creating the installer program for a game. And then I have to open up an FTP program to upload it to my website.
The FTP step isn’t such a big deal though since I have to post to the news page and edit version numbers when I upload a new version of program anyways.
Now, I’m using Eclipse to write code. It provides Ant support, but whenever I use Ant it screws up Eclipse’s build. And vice versa. The same thing happens when I use Ant outside of Eclipse. It’s easy to clean up their class files, but it’s annoying.
Optimally, what I would like to have is the following options within Eclipse: Run and Release. Run works fine, but there’s nothing like the Release option. What I want the Release option to do is create a demo and full version of the game (including the JVM) and package them in installer programs automatically. Uploading the files to my website automatically would be nice too, but I’m not that picky.
Does anyone else do something like this? Should I just use the Eclipse compilation and Ant script for the Release option? Is there some way to automate the installer packaging? Maybe I could just write a short Java program that opens up the Inno Setup scripts and changes the version number to update the version, but I would still need some way to compile the scripts with Inno Setup from within Ant.