Configuring Eclipse Indigo to connect to Visual SVN for Blackberry Projects


Configuring Eclipse Indigo to connect to Visual SVN for
Blackberry Projects

Requirements:Your computer must meet all the following requirements before you install  the Blackberry Java Plug-in 1.1.
Eclipse Indigo for Java Developers  v3.7 (Use the latest version of Eclipse to avoid errors)
Java SE Development Kit (JDK) 6  update 14 or later (this will include JRE as well)
Windows PC with Pentium P4 or later ( I am using a Intel i3 64 bit processor)
Microsoft Visual C++ 2008 Redistributable Package (x86)
Microsoft Visual C++ 2008 Redistributable Package (x64)

Setting BlackBerry Java Plug-in for Eclipse options
Specify the BlackBerry update site
1. On the Help menu, click Install New Software.
2. In the Available Software dialog box, click Add.
3. In the Name field, type a name.
4. In the Location field, type
http://www.blackberry.com/developers/jar/win/java or http://www.blackberry.com/go/eclipseUpdate/mac/java. Note: Do not type this URL into your browser's address bar.
5. Click Next.
6. Accept the license and click on Finish.


Specify the default BlackBerry JRE 1. In Eclipse, on the Window menu, click Preferences.
2. Expand the Java item and click Installed JREs.
3. In the Installed JREs list, select the BlackBerry JRE that you want to use as the default runtime environment.
4. Click OK.
 
Specify the heap memory for Eclipse If you work with large or numerous projects, or if you use the profiler application when you debug a BlackBerry device application, you should start Eclipse with more than the default amount of heap memory or permanent generation memory. Memory between 512Mb and 768Mb is recommended.
Complete one of the following tasks:
Task Steps
Specify the amount of permanent generation memory in the eclipse.ini file. 1. Navigate to the directory where you installed Eclipse.
2. In the eclipse.ini file, change the following parameter:
--launcher.XXMaxPermSize
512m
Specify the amount of heap memory in the eclipse.ini file. 1. Navigate to the directory where you installed Eclipse.
2. In the eclipse.ini file, change the following parameter:
-Xmx512m


Turn on application preprocessingBy default, preprocessing is turned on automatically when you create or import a BlackBerry application project (you must restart Eclipse). You can turn on preprocessing for your applications manually by updating the Eclipse configuration file.
1. Browse to ...\\configuration (Windows), or .../BBEclipse/configuration (Mac OS), and open the config.ini file.
2. Add the following line to the config.ini file:
o osgi.framework.extensions=reference\:file\:net.rim.ejde.preprocessing.hook_1.3.0./
If you turn on preprocessing after you build a project, on the Project menu, you must clean the project before you build the project again.


Enable functionality similar to the BlackBerry Java Development Environment 1. Open the Eclipse workspace.
2. On the Window menu, select Preferences.
3. Expand the General item.
4. Select the Workspace item.
5. Clear the Build automatically option.
6. Clear the Refresh automatically option.
7. Select the Save automatically before build option.

Detect new versions of the BlackBerry Java Plug-in for Eclipse
When you start the BlackBerry Java Plug-in for Eclipse an update notification appears when a new version is available.
1. In Eclipse, on the Window menu, click Preferences.
2. In the left pane, click BlackBerry Java Plug-in.
3. In the right pane, select the Notify about upgrades check box.
4. Click OK.
 
Installing SVN plugin for EclipseStart Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In Work with select Indigo -
http://download.eclipse.org/releases/Indigo
and below select Collaboration, select everything collaboration.
Accept the License agreement and click on finish to complete the installation. After installation you will need to restart Eclipse.


Clean Connector Install
After the Eclipse IDE installs, choose ‘Restart Now’. For me the Subversive Connector Discovery window came right back up. If it doesn’t for you, try to create a new SVN Project. I chose my Subversive SVN connectors and clicked ‘Finish’ and presto the installation continues without error. Select connectors applicable to your platform (64 bit or 32 bit)
Accept the license and click finish. I hope this is helpful to anyone with a fresh install.


Connect to remote RepositoryI am using a Visual SVN Repository Server. I just created a user and a repository. I will now attempt to connect to the repository server using the http credentials of the user I created above.
Create a new connection and enter your repo location
To connect to a remote Subversion repository within Eclipse, select:
   Window
      Open Perspective
         Other
            SVN Repository Exploring

You should see a perspective that has an SVN Repository window on the left side and an SVN Resource History at the bottom of the right-hand side of the Eclipse window.

Find (by mouse hovering on the rightmost button under the "SVN Repository" heading) and then click the "Add SVN Repository" button. Alternatively, you could right-click in the "SVN Repository" view to open a context menu, then select New - Repository Location. Enter the following as a new repository location
First open your new SVN perspective. Find the little icon with a small plus sign on it up in the top right of the SVN Repositories pane and click it. You should see the following dialog box titled "New Repository Location".
As it turns out, there are a couple ways to connect to the repository here. Both of the following will work in the "URL" field:
http://IPaddress/svn/Blackberry
For User, and Password just type in your info, and click "Finish".

If you didn't get any error messages about the location not being valid or something you can move on to the next step. Unfortunately, this step is where you are likely to get hung up on the most. The only advice I can give is keep searching Google for more information.


Create a New or Import an Existing Project

Creating a New ProjectNow that you have your SVN connection set up properly, click back to your main workspace perspective. If you're creating a new project, right click its root folder, click Team -> Share Project... -> on the dialog that pops up, select your repository type (SVN), and click through the remaining options.

Importing an Existing ProjectIf you're checking out an existing project it's just as simple a process. From the toolbar, click File -> Import... -> in the dialog that pops up prompting you to "Select an import source:" select the one you just created (SVN) -> Project from SVN, click Next. "Use existing repository location:" should be checked by default, so select the "svn+ssh://..." path you just added, and click Next.

When you get to the screen above, click the Browse button, select your project folder and click OK. Then click Finish, and you're done.


 

No comments:

Post a Comment