Martes, Mayo 17, 2011

Checking out subversion repositories from netbeans

1. Open up netbeans.
2. Make sure you have set-up subversion to point to csvn/bin folder in the Tools > Options > Miscellaneous > Versioning > Subversion in Netbeans.
3. Click Team > Subversion > Checkout
4. Input the repository url you want to check out, either a local or remote repository.
5. If required, a Username and Project Password is needed.
6. Click next and select the folder you want to check out.
7. Wait for netbeans to load then open the project.
8. Start coding, then right click the project then commit to put your changes to the repository. Right click the project then "update" if you want to update your local working copy to the latest revision or "update to" if you want to update from a specific revision.

Linggo, Mayo 15, 2011

Setting up Netbeans 7.0 and Subversion for Google Code

I admit project integration is the one thing I hate doing. I have been using dropbox for quite some time but it does not satisfy the integration I want. But then, I came across subversion two days ago and after researching dozens of  websites/blogs/forums here's what I learned. I used netbeans 7.0 in this. And you should have the OWNER/COMMITTER ROLE in your googlecode project.

NOTE: If you are working on a team, it is best if all of you will start with an integrated project.

1. Download and install subversion.

2. Create a new project in googlecode (This is not necessary when you are already participating in a project or owns a project in googlecode). When you're done go to Source tab in your new project and scroll down click "reset repository" and select the first option, then reset.

3. Open up netbeans, Go to Tools > Miscelleaneous > Versioning > Subversion. (As you can see there are other versioning frameworks available but I think subversion is the most simple.)

You should be on this window:


Click "browse" and navigate to the "bin" folder where you installed subversion. Click ok. Exit the window

4. Right click the project you are working on > versioning > subversion > import into subversion repository

5. In the repository url you can put a file url if you are working on a networked/local environment but since we want to put it in googlecode we must put a remote url (https://<yourproject>.googlecode.com/svn). Also add your authentication details. Input your google mail for the User and go back to your project page and navigate to Source tab, you should find a link "google.com password" in the content, click it and copy the generated password and paste it to the password tab in netbeans. Click next, specify a message for your first revision, select the files you want to import. Then finish.

6. Wait for netbeans to commit your project to googlecode. Go back to your googlecode project and navigate to Source > Changes. You must see the first revision for your project. Click r1 or r2 etc. and you should see the files in your project added into the revision.


7. Continue coding, and if you want to update your google repository then just right click your project in netbeans > versioning and Comit. And if you want to update your local working copy just right click your project in netbeans and Update. You can select the revision you want to update to by click "Update To".

Note: Just in case, you are using mysql workbench, logging to your database will have a conflict on python configurations regarding SSH Tunnel Manager. I don't know how to solve this so I just downloaded Mysql GUI Tools and i just used Workbench for data modelling.

I may have missed some parts. Sorry.
Here's my output for my current project http://code.google.com/p/cashmate/
Thanks for reading. :)
Dean.

Linggo, Mayo 8, 2011

Blog?

I am stucked right now... so i guess ill start blogging...