I move a lot between several PCs and I have hard time to deal with source code At first, I have tried to use a sync software that works over FTP... but some PC have a really bad internet connexion and it has screwed up my code several time I know CVS and Versionning but it seem that you can only install it on a private server. (And I don't want to use something like google code or sourceforge for every little test project I do)

Is here any software like versionning that can be install on a PHP server ?

I solve this problem by doing everything from a (fast) mobile disk. That includes JRE, Eclipse, workspace... and everything else.

I did this but I was always thwarted when a new computer gave the USB stick a different drive mapping, say B: instead of G: or whatever. Since Ant is used to build projects in netbeans (and eclipse?), and Ant uses drive-dependent commands which screws up my builds... Is there a way around this?

dont know about versionning over php but as said before there is probably low price and/or freeSVN server, I am a bit paranoid and preferabily use SVN aswell as mirror folder on two separated hard drives as a low cost raid 1 software solution...

I have netbeans + java + svn on my pen. With a little bit of config file hacking, netbeans can be set to use relative paths (so your configs are on a directory adjoining or netbeans itself contained on another dir).

Then i just copy this directory to the computer i am using and use it from there (i hardcode the jdk to the pen - since pens have the same names).

It can even work on linux too since netbeans uses a bash script, and you can point it to another config file.

Then i put my projects on google code and the local copies on the pen somewhere, and copy the dir to the desktop to run it (much faster, less harsh on the pen)

It's a little bit irritating when i need to update the ide, or installing plugins or accept certificates/passwords (run from the pen) but it works ok.

A source control system is the best solution (i.e. Subversion), either by running it yourself or provided by one of the many free project hosting sites.

But another suggestion is to get a GMail account and then install GMail Drive on all the machines. It's a shell extension that makes your GMail account look like just another a networked folder. You can then just drag and drop source-code in and out from the folder as though it's a file server.

Forget GMail drive, I think I've found exactly what you need. Windows Live Mesh. Only in beta, but it's 5gb of online storage space which will automatically upload and backup marked folders to it. It will also sync the content of these folders across multiple PCs for you, plus online access through the website.

As someone doing the same thing. Working between the 3 machines at home, a laptop and 2 machines at work plus the cluster, I use git. I would recommend using a decentralized version control in this situation as svn(what i tried first) really doesn't like it if 2 different versions are out of sync. Merging is a pain, and often doesn't work. I had problems with the repository getting corrupted.

So i use git. When i work on something on the train on the laptop, where i forgot to update from my "central server", i just pull when i get an internet connection and 99.9% I get a clean merge. I often end up with 2-3 versions of little changes that i just forgot. I do a full pull push just before release to ensure everything is there. (or do a fetch diff to just check). The other thing i like about git is i get a clean directory to work in. I don't need eclipse to support git. Its completely transparent. While SVN and CVS where not.

If you use windows however git may not be the best tool since it has poor windows support. However there are other decentralized version control tools out there that work pretty good too. I would never recommend centralized version control anymore. Note i am the ONLY developers working on this code, and decentralized rocks. But i still have a "central" server that I push and pull from. I use dynDNS so i can access it anywhere, but there are public git servers around too.

cheers Detl0r, defender of the integrator.

I have no special talents. I am only passionately curious.--Albert Einstein

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