Difference between revisions of "Create a new reader project"

From RifidiWiki

Jump to: navigation, search
m (Reverted edits by Amesycyxa (Talk); changed back to last version by Stefan)
 
(17 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
If you start up a new Reader it is necessary to create a new Plugin Project for the new reader. This HowTo shows how to do this in Eclipse.
 
If you start up a new Reader it is necessary to create a new Plugin Project for the new reader. This HowTo shows how to do this in Eclipse.
  
== making a new Project in Eclipse ==
+
== Creating a new Project in Eclipse ==
 
First you need to set up your Eclipse Workspace. After that you can start creating a new Project by selecting the "File"-menu in the eclipse menubar.  
 
First you need to set up your Eclipse Workspace. After that you can start creating a new Project by selecting the "File"-menu in the eclipse menubar.  
  
Line 20: Line 20:
 
[[Image:NewPluginProject2.png|300px|thumb|left|enter the name for the project and select as target Equinox]]
 
[[Image:NewPluginProject2.png|300px|thumb|left|enter the name for the project and select as target Equinox]]
 
||
 
||
[[Image:NewPluginProject2.png|300px|thumb|left| Enter the Name of the Plug-in Provider]]
+
[[Image:NewPluginProject3.png|300px|thumb|left| Enter the Name of the Plug-in Provider]]
 
|}
 
|}
  
 +
==Add the project's dependencies==
 +
#Double click on the project's MANIFEST.MF file
 +
#Select the Dependencies tab
 +
#For new readers, add the following packages:
 +
*org.rifidi.emulator
 +
*org.rifidi.common.utilities
 +
*org.rifidi.services.tags
  
== add the project to the SVN Server ==
+
== Add the project to the SVN Server (Optional)==
  
If you already created a new Eclipse Plug-in Project you need to add it to the Subversion Server. This can be done by following these 5 steps.
+
If you are saving the project in the Rifidi SVN, you can do that from right inside eclipse using the subclipse plugin
 +
 
 +
If you already created a new Eclipse Plug-in Project you need to add it to the Subversion Server. This can be done by following these 4 steps.
 +
 
 +
# right click on the new Project and select "Team" -> "Share Project..."
 +
# select SVN as repository type
 +
# select the repository location
 +
# select the folder you want to save the project ()
 +
 
 +
Usually our projects are stored in the trunk of the subversion server. If you want to contribute you a new project with the name '''org.rifidi.emulator.reader.test''', the path would be:
 +
 
 +
'''http://[Address of Subversion]/rifidi/trunk/org.rifidi.emulator.reader.test'''
  
#
 
#
 
#
 
#
 
#
 
  
 
{| border="0" style="background:transparent;"
 
{| border="0" style="background:transparent;"
 
|-
 
|-
|
+
| [[Image:ShareProject1.png|300px|thumb|left| right click on the new Project and select "Team" -> "Share Project..." ]]
[[Image:ShareProject1.png|300px|thumb|left| Select the readertype]]
+
| [[Image:ShareProject2.png|300px|thumb|left| select SVN as repository type  ]]
||
+
|-
[[Image:ShareProject2.png||300px|thumb|left|enter the name of the reader and select the attributes]]
+
| [[Image:ShareProject3.png|300px|thumb|left| select the repository location]]
||
+
| [[Image:ShareProject4.png|300px|thumb|left| select the folder you want to save the project ()]]
[[Image:ShareProject3.png||300px|thumb|left| GPIO Settings (optional)]]
+
||
+
[[Image:ShareProject4.png||300px|thumb|left| GPIO Settings (optional)]]
+
||
+
[[Image:ShareProject5.png||300px|thumb|left| GPIO Settings (optional)]]
+
 
|}
 
|}

Latest revision as of 19:40, 26 November 2010

How to create a new Reader Project

If you start up a new Reader it is necessary to create a new Plugin Project for the new reader. This HowTo shows how to do this in Eclipse.

Creating a new Project in Eclipse

First you need to set up your Eclipse Workspace. After that you can start creating a new Project by selecting the "File"-menu in the eclipse menubar.

File -> New... -> Project

Now you will see the "New Project Wizard".

  1. create a new Eclipse Plug-in Project
  2. enter a name for the new Project and select as Target Platform Equinox
  3. enter the name of the Plug-in Provider and click the finish button
create a new "PluginProject" in Eclipse
enter the name for the project and select as target Equinox
Enter the Name of the Plug-in Provider

Add the project's dependencies

  1. Double click on the project's MANIFEST.MF file
  2. Select the Dependencies tab
  3. For new readers, add the following packages:
  • org.rifidi.emulator
  • org.rifidi.common.utilities
  • org.rifidi.services.tags

Add the project to the SVN Server (Optional)

If you are saving the project in the Rifidi SVN, you can do that from right inside eclipse using the subclipse plugin

If you already created a new Eclipse Plug-in Project you need to add it to the Subversion Server. This can be done by following these 4 steps.

  1. right click on the new Project and select "Team" -> "Share Project..."
  2. select SVN as repository type
  3. select the repository location
  4. select the folder you want to save the project ()

Usually our projects are stored in the trunk of the subversion server. If you want to contribute you a new project with the name org.rifidi.emulator.reader.test, the path would be:

http://[Address of Subversion]/rifidi/trunk/org.rifidi.emulator.reader.test


right click on the new Project and select "Team" -> "Share Project..."
select SVN as repository type
select the repository location
select the folder you want to save the project ()
Personal tools