NetBeans code synchronisation - netbeans

How can I sync code between my pc and my laptop. I'm using NetBeans for developing most of my projects. Now, I upload .zip ( or use dropbox ), but it is so annoying always to make a new project in NetBeans and add the source. Can't I just save the project on my PC and the project automatically synchronise to my laptop?

It's time for you to use Git or SubVersioN or CVS, and possibly Maven.
All these versioning systems and project management system (Maven) are supported by NetBeans IDE.

Ideally you want to use Revision (source) Control
There are plenty of free SVN services out there (see: https://stackoverflow.com/questions/59791/free-online-private-svn-repositories )
Working with SVN through netbeans is a breeze.

Related

Whereabouts would I find the source code for the CVS team integration in eclipse?

I've looked at a lot of the git repositories, but I'm not sure which one to start with (and they're fairly large, so I want to avoid scanning 25 gig of data). Where would I find the code to handle CVS and Subversion integration?
You can browse all of the git repositories at http://git.eclipse.org/c/ . The one you want is http://git.eclipse.org/c/platform/eclipse.platform.team.git/ (cloning URLs are shown at the bottom).
You can install the core Eclipse source including the CVS code in to Eclipse from Help > Install New Software. Work with http://download.eclipse.org/eclipse/updates/4.3 for Eclipse 4.3 (Kepler) and choose Eclipse SDK. You can also download this as base Eclipse install (which is what I usually do).
Once you have this installed open Preferences > Plug-in Development and check Include all plug-ins from target in Java search. Once this is set the things like Navigate > Open Type and all the Java searches will include all the Eclipse source code.
Where the SVN code is depends on which SVN code you are using.
Update 2022: as illustrated by gitlab.eclipse.org/eclipsefdn/helpdesk issue 1100, and issue 915, everything is in the process to be transferred to GitHub.
The old (2014-2021) git.eclipse.org/c/platform/eclipse.platform.team.git/ would therefore be soon (Q2 2022) be found under https://github.com/eclipse-platform.
https://github.com/eclipse-platform/eclipse.platform.team

How to make Tortoise recognize project checkout originaly using Eclipse Plugin for SVN?

On Windows 7, I have been using Tortoise for Subversion. I am also using Eclipse plugin for Subversion. I am using both of them interchangeably for making commits or updates to the project files. But on another system, I have same setup, Tortoise doesn't recognize the folders/files as SVN which are checked out using Eclipse.
I wonder, how can I fix this?
My experiences with Eclipse Subversion plugins (Subclipse, Subversive) and other clients (command line client, Tortoise, RapidSVN) ranges from "just work" to "destroyed workspaces". One time, a simple svn info on a Eclipse workspace changed all the meta data in a way, that Eclipse lost the project's connection to SVN.
The disk layout format depends on the connector type and its version.
Mabye the best bet is to use JavaHL as the plugin connector because it uses the same native libraries as Tortoise and the command line client.
Currently my personal policy is to use only one kind of SVN client for a workspace.
More or less recently format of SVN working copy has changed. Could it be that Eclipse plugin and TortoiseSVN use different formats? The latest version of TortoiseSVN uses the new format, it may make sense to check this for Eclipse plugin.
Make sure both your Eclipse plugin (are you using Subclipse? Subversive? another plugin?) and TortoiseSVN are based on the same version of Subversion. Any time Subversion release a new veresion (for example, from 1.5 to 1.6, or 1.6 to 1.7) they tend to modify the svn working copy format in such a way it's not recognized by SVN clients based on older versions.
For example, see the 1.6 release notes for more information.

Select > Upload FTP Solution for Eclipse

in Netbeans, you can select a file on the project explorer and upload it directly to the ftp and it finds where to upload properly (amongst the folders and sub-folders,since the remote project is the copy of local project with the same folder, sub-folders and etc.) which provides quick solution when working on both local and remote.
I am wondering whether the same functionality is also available on Eclipse? I don't need anything complicated. This feature is what I only need. So if you know such plugin and how to use it, please enlighten me.
I am using Eclipse for PHP, my version of Eclipse is PDT
Aptana Studio 3 (standalone or plugin) has FTP download/upload functionality. And much more.
Eclipse has a Build in FTP. Go Windows->Open Perspective ->Other->Remote System Explorer.Create New Connection . Right Click on Explorer->New Connection ->FTP.
Note:(For Eclipse Helios and above)

Local Eclipse plugin repo for a team

what would be a preferred solution for hosting a small local plugin repository with a couple of our own plugins?
the team is using RAD7, which is Eclipse 3.2 based
we cannot upgrade RAD to 7.5.5 yet, so all Ganymede/Galileo repo tools cannot be used, i guess
You could do like eclipse.org, and zip the plugins.
With a small team, unzipping the plugins onto the local file system is sufficient.

Need to setup Subversion in my local box

I am using Windows7 and I do lot of Java coding in Eclipse. But I dont have a version control system. I have heard of Subversion being a very popular VCS, so I would like to set it in my local box. Can you please give me some pointers on where to start/look at?
I would like to checkin/checkout files using Eclipse. Please guide me.
Thanks
If you're on windows it's difficult not to go with VisualSVN. As for Eclipse you can get an eclipse plugin here
Subclipse http://subclipse.tigris.org/ is a plugin for eclipse that allows you to checkout / in files inside of the eclipse IDE.
It doesn't get SVN set up on your machine, you'll need to install svn and set up a repository first, but the integration with eclipse is nice to have.
If you're the only person who needs to access the repository, you can create a svn repository on your filesystem and you won't need to install and run a server.
http://vincenthomedev.wordpress.com/2007/10/15/setup-svn-local-repository-step-by-step/
Subclipse is a great SVN plugin for Eclipse, you might also find TortoiseSVN very handy as well. Both are very easy to use.
First, you'll need a Subversion repository, which can either be a remote server on the internet (google "free subversion repository"), or a server running locally on your machine, or a machine on your lan. For the last one, you can use VisualSVN Server.
Once with a SVN repository setup, you have to install a SVN client to work with it. I recommend TortoiseSVN for general stuff, but I'm pretty sure Eclipse has SVN support builtin, so once you've setup a repository server, you just have to configure the client on Eclipse to connect to it.