I have a game I'm working on currently and I would like to make a lot of quick updates to it. The game is still in it's infancy but I would like to build it in front of the public. For example, some days I would be working on it 30 minutes but I would like to make those 30 minutes of work available for testing right away.

Currently, publishing something takes me a while. I'm working with eclipse. What I usually do is put all my classes files in some place with the resources, go with command line to that place build the jar specifying the entry point. Log into my ftp account, select the jar and upload it to my web site. And I write a simple applet tag for my website. It's not that long but it still takes a few minutes and it's boring work.

Is there a better/faster way to do it?

Recently I heard about Gradle and took a quick glance at it. It seems to be the thing that I need to build my jar and upload it in 1 click. Am-I right?

Yes, make yourself an Ant build script that can compile, jar and upload your game in a single task. Then it's a one-click operation. Eclipse has Ant support built in so you can run it within Eclipse as well.

Someone will probably be along in a moment to suggest you use Maven instead, which is essentially the same thing but more complicated.

Yes, make yourself an Ant build script that can compile, jar and upload your game in a single task. Then it's a one-click operation. Eclipse has Ant support built in so you can run it within Eclipse as well.

Someone will probably be along in a moment to suggest you use Maven instead, which is essentially the same thing but more complicated.

sry Orangy Tang, but can there be something more complicated then ANT?

with ANT one have to programm huge script files to do basic stuff,with maven you copy past 3 lines and change some parameters and you get a build which packs all dependencie together, zip, pack, sign and upload them to your ftpMAVEN!!!!

Spending even half a day on learning something like this will pay off big time! Not just on your hobby projects but pretty much in any job you will get as a software developer you will need to use these.

You're not going to want to overlay maven onto an existing eclipse project, since that'd not only force you to write a POM from scratch, you'd also have to override all the directory layouts. Just install the plugin from the eclipse marketplace (search for "maven"), restart eclipse, then when you create a new project, pick "Maven Project".

You can run goals from eclipse using the maven window, but I tend to use the command line for stuff that isn't build or test related.

I never understand this fuzz with ant for small Projects.Its fine when you have experience in ant anyhow or for a colaborative project, but why use something complicatedwhen you just want some build-commands to be executed linearily.

I found a settings.xml file in the conf folder. I guess it's that one!

Can I change the name ftp-repository for what I want here?

Those are your global settings that affect every project using that installation of maven. You can put it there, and it does make sense to put some deployment stuff there, but otherwise most stuff should go in pom.xml instead.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org