-
Notifications
You must be signed in to change notification settings - Fork 6
DevEnvironmentInstall
cedelis edited this page Oct 16, 2015
·
1 revision
These instructions assume you will be using Eclipse and Windows.
- If you do not already have a compatible version of Java installed (any version from 1.6.0_25 and up, including version 7), download and install the Sun JDK from Java SE Downloads.
- If you do not already have eclipse installed, download the Eclipse IDE for Java Developers from Eclipse Downloads. Unzip the archive to your directory of choice. There isn't an installer so you may wish to create a shortcut from eclipse.exe to somewhere more convenient.
- If you do not already have Subversion installed, download and install Subversion from the Apache Subversion Binary Package page. There are several distributions for Windows. The instructions will assume the use of the version maintained by
CollabNet
. Download the version titledCollabNet
Subversion Command-Line Client v1.6.17 (for Windows) fromCollabNet
's website. - Download the binary archive of the Apache Maven build tool from http://maven.apache.org/download.html. For Toolkit version 1.1 you will need maven version 2.2.1 or later; for later Toolkit versions you will need maven version 3.0 or later. Unzip the archive to your directory of choice. Next we will need to make two changes to your Windows Environment variables (these instructions are also in the Maven README). Right click on My Computer or Computer depending on your version of Windows and select Properties. In the Window that appears click Advanced System Settings or the Advanced tab. Finally, in the new window that appears select Environment Variables....
- In the area under System variables select the Variable Path. Edit it, and at the very end, you will append a semicolon and then add the full path to the bin directory of the maven archive you just unzipped. If you put the archive in your Program Files directory it might look something like this: c:\program files\apache-maven-2.2.1\bin
- Next we need to add a new system variable JAVA_HOME to point to your JDK. Select New...", enter the name JAVA_HOME and put in the path to your JDK. It might look something like this: _c:\Program Files\Java\jdk1.7.0_
- Finally, you may need to reboot for the changes to take effect.
- Next checkout the source code for the Toolkit core (on which your connector will be built). NOTE that the source code tab on the project assumes a different repository layout than we are using. From the command line, navigate to the directory you would like the core source code to be downloaded to. Using svn checkout the code: svn checkout http://xcncip2toolkit.googlecode.com/svn/core/trunk . (Note the '.' at the end of that command, which tells svn to put the files in the current directory.) This will create several directories, e.g. binding, common, service, etc. in your current directory. When the download completes issue the command mvn install. When this completes you have successfully built the core and the war file will be in the dummy/web/target directory.
- If the source code for the connector that you want to build already exists, check that out in the manner similar to the core except you will want to browse the source tree to get the correct path to the trunk of the respective connector. One important thing to remember is that you must check out the code using https and a valid google username, otherwise google code will not allow you to check-in changes made to that working copy. For example, to download the III connector code you would issue the command svn checkout https://xcncip2toolkit.googlecode.com/svn/connectors/III/trunk/ III --username [email protected]
- To edit the connector code in Eclipse, in Eclipse click on File...Import. Select the maven folder->Existing Maven Projects and click next. Browse to the top level directory of your connector and select ok. Eclipse should find your connector's pom file. Hit Finish and a new project should have been created.
- Overview of NCIP Toolkit
- Services - Overview and Detail Notes
- Installation
- Configuration
- FAQs
- Testing and Test Bed
- Developer Information
- ILS Connector Developers Expectations
- Copyright and License Information
- Class Diagram for NCIP Toolkit
- How to add a new NCIP Service
- How to write an ILS Connector for an NCIP Service
- How to setup your development environment to develop a connector
- How to write an NCIP Initiator (client)
- Voyager connector project
- Millennium Connector Project
- Developer Meeting Minutes
- Release Notes