Access Keys:
Skip to content (Access Key - 0)

Knowledgebase


Part Two: Create your Eclipse Project


Table of Contents

All caGrid services created with the Introduce Service Creation Toolkit have the required files to allow you to open them in Eclipse. In this article, we provide you with a base Eclipse project to get you started. 

The project is configured to use Ant as a build tool and Ivy for dependency management. Required caGrid jar files will be downloaded from the caGrid 1.3 Jar repository on http://software.cagrid.org . These Jars will be cached locally in order to avoid downloading the jars for each build. As a result, you will need to have Internet access to obtain the jars for each initial build after adding new caGrid Jars to your ivy.xml file. At this point in time (as of caGrid 1.3), caGrid does not provide complete support for proxied Internet connections. If you are behind a proxy, we require that you complete the rest of this guide on a development computer that is not behind a proxy.

Create an Eclipse Project

As a first step we will create a project in the Eclipse IDE.

  1. Open Eclipse and choose a workspace to use.
  2. From the menu bar, select the File -> Import entry.
  3. On the Import window
  4. In the resulting window, open the General entry and select Existing Projects into Workspace and click Next
  5. Select the radio button for Select archive file and browse to the caGridClient.zip file.
  6. The caGridClient project should appear in the projects box.
  7. Click Finish.
  8. Note: You may receive an error due to a missing "lib" directory. This is OK.
  9. You should now see the caGridClient Project in the Package Explorer.
  10. Open a command prompt, change directory to your caGridClient project location and type ant all to test the build.

Conclusion


You should now have the caGridClient project created and built.

References

The caGrid client archive includes a build that integrates with the caGrid Ivy repository. Ivy is a dependency management system that allows Grid application developers to easily integrate caGrid jars into their applications. It is worth your time to inspect the build.xml, ivy.xml, and dependencies-build.xml files. You can learn more about these files by reading the article entitled, Use caGrid Libraries in Your Application

Last edited by
William Stephens (876 days ago) , ...
Adaptavist Theme Builder Powered by Atlassian Confluence