Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

How can I write a batch script (Windows) that will download the latest Craftbukkit Build and put it in a certain directory whenever I run it?

So has anyone overcome the problem of updating Bukkit without a lot of hassle?

PS: Bonus points to anyone that can automatically update plugins too.

share|improve this question
    
you'll need an application to do the actual download, like curl/wget on 'nix systems. and it should probably be on serverfault. –  ewanm89 Jul 2 '12 at 19:47
    
I use whet for windows, and I will probably write a batch script to automate the process, but the problem is tht the websites are not always the same, say www.dl.bukkit.org/latest-dev-build –  Jeffrey Lin Jul 4 '12 at 0:08
2  
dl.bukkit.org/latest-rb/craftbukkit.jar is always latest recommended. –  ewanm89 Jul 4 '12 at 12:35
2  
dev builds are generated every night (though July the 4th seems missing, possibly it didn't successfully build), there is no guarantee it'll even run let alone the plugins will work (dl.bukkit.org/latest-dev/craftbukkit-dev.jar). These are then promote these to beta for testing when the feel like it, things are still likely to be broken, but it'll at least run (dl.bukkit.org/latest-beta/craftbukkit.jar). Finally after enough testing they promote these to recommended, for production servers this is recommended (dl.bukkit.org/latest-tb/craftbukkit.jar) –  ewanm89 Jul 5 '12 at 13:38
1  
Thanks, seeing how nobody else answered this question, you could post this as an answer and I will accept it. Haven't had problems with the dev builds yet though. –  Jeffrey Lin Jul 5 '12 at 16:13

2 Answers 2

up vote 0 down vote accepted

On linux I'm using wget and you can use it too even on Windows, try i.e. "complete package ..." from here. Then write some batch file which you can call by Windows task scheduler (don't forget to -O wget parameter). For this automatic updating use only RB (recommended build), anyway you must restart your server. For plugins updating you can call reload from the server or restart again (see this).

share|improve this answer
    
btw. I'm using just my downloaders and applying plugins and server manually - for better control... –  dmnc Jul 11 '12 at 21:06
    
Works fine, answer accepted –  Jeffrey Lin Sep 3 '12 at 17:24
    
and yes, +1 for server control, however, it takes up a lot of time –  Jeffrey Lin Sep 26 '12 at 0:38

Well, there is a plugin if I recall correctly for that. Something like this: Craft bukkit up to date.

The video here, has a Windows batch script for updating the server:Auto update bukkit

share|improve this answer
1  
Thanks, I will check it out. As for CraftBukkitUptoDate, I have tried thAt, but it does not work well with some batch scripts that I engineered. How about plugins? –  Jeffrey Lin Jul 11 '12 at 17:57
    
pff, I don't think you can program that, I maybe can write a program that gets the latests version of bukkit, I will see. When its ready, I will let you know something, so you can use it ;). –  Arno Jul 11 '12 at 18:11
    
Okay, thanks anyway –  Jeffrey Lin Jul 11 '12 at 18:18
    
Found something, its an autoupdater: code.google.com/p/panychulla-linux/source/browse/trunk/bukkit/… but you will need to compile it. –  Arno Jul 11 '12 at 18:23
    
If I understand the code correctly, it should download a new version. –  Arno Jul 11 '12 at 18:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.