My comments inline:<br><br>
<div class="gmail_quote">On Fri, Nov 6, 2009 at 10:48 PM, Ramesh Reddy <span dir="ltr">&lt;<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Sanjay,<br><br>I checked out the projects and built using Eclipse RCP Plugin<br>development version. All these worked fine. Once I have the plug-ins<br>
compiled I right clicked in the &quot;core&quot; project and asked it run as<br>&quot;eclipse&quot; application.<br><br>It came up with new eclipse which has &quot;cdk&quot; new project wizard. Which is<br>by way very neat. I typed in the name of the project and package and it<br>
created a new project with the name &quot;connector-xxx&quot; and copied all the<br>loopback classes. This is very good start.<br><br>For the next steps we should do something like below. Say we have the<br>below as the sample class<br>
<br>/**<br>�* License<br>�*/<br>public class LoopbackConnector extends Connector{<br><br>� � � �public Connection getConnection(){<br>� � � � � � � �//TODO: fill in the code<br>� � � �}<br>}<br><br>then we need to make this into a template such as<br>
<br>/**<br>�* ${License}<br>�*/<br>public class ${project-name}Connector extends Connector{<br><br>� � � �public Connection getConnection(){<br>� � � � � � � �//TODO: fill in the code<br>� � � �}<br>}<br><br><br>where the &quot;loopback&quot; code is only used to drive the initial &quot;template&quot;<br>
then we derive the actual code by replacing the variables in those<br>templates. These variables can be eclipse defined or we can come up with<br>some. so, once the variable replacement is done the code will look as<br>actual java code. This should be the function of the wizard. We do not<br>
need to take all methods as is from &quot;looback&quot; code either, we just need<br>to put in connector-api required method stubs.<br>&gt;&gt; Sanjay: This will be a pretty easy change. Please attach the template files in the format you want; I shall replace the existing ones with yours and fill in the $ substitutions. Let me know the $License substitution; I can have it in properties file to get picked up.<br>
</blockquote>
<div>�</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">2) Let&#39;s only maintain one version of the &quot;cdk&quot; in the svn repository<br>for now. As we talked before we really need to point this plugin to a<br>
&quot;teiid&quot; install somewhere on the disk and it should resolve it. Or on<br>the wizard we can ask the user to point to a CDK distribution, that way<br>we do not have to have these in the SVN at all. Keeping these in SVN is<br>
verbose.<br>&gt;&gt;Sanjay: That&#39;s the next plan I have anyway. I would propose to keep the plugin functionality as is and also be able to pick up �from a directory. In that way, both options will be at disposal. You may then choose not to have cdk-dist-plugin.<br>
</blockquote>
<div>�</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">3) &quot;ra.xml&quot; need to be treated same way as template. This needs to live<br>in &quot;src/main/rar/META-INF/ra.xml&quot;.<br>
&gt;&gt;Sanjay: Will it have substitution ? If it does, send me the template and the substituions that needs to be used.<br></blockquote>
<div>�</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">4) Then we need to bundle this project into a RAR file. Where the format<br>looks like<br><br>� � � � � �connector-custom.rar<br>
� � � � � � � �\--connector-custom.jar<br>� � � � � � � �\--dependencies-1.jar<br>� � � � � � � �\--dependencies-2.jar<br>� � � � � � � �\META-INF<br>� � � � � � � � � ra.xml<br>We need to write a some kind of &quot;export&quot; function of this. If we do not<br>
want write custom &quot;export&quot; may be we can just use eclipse &quot;maven&quot;<br>plug-in to build this for us. All that takes is invoking a &quot;run-as&quot; on<br>the pom.xml, which may be sufficient. Or there may be eclipse plugin to<br>
build a RAR file?<br>&gt;&gt;Sanjay: I think having a eclipse menu would be much better to build the RAR. What would be these connector-custom.jar, dependencies-1.jar, etc ? Won&#39;t the jar contain the compiled classes ? Where should be this jar kept ? A build directory ?<br>
</blockquote>
<div>�</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Let me know what you think?<br><br>Thanks again for all your help.<br><font color="#888888"><br>Ramesh..<br>
<br></font></blockquote></div><br>