My comments inline:<br><br>
<div class="gmail_quote">On Fri, Nov 6, 2009 at 10:48 PM, Ramesh Reddy <span dir="ltr"><<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>></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 "core" project and asked it run as<br>"eclipse" application.<br><br>It came up with new eclipse which has "cdk" 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 "connector-xxx" 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 "loopback" code is only used to drive the initial "template"<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 "looback" code either, we just need<br>to put in connector-api required method stubs.<br>>> 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's only maintain one version of the "cdk" in the svn repository<br>for now. As we talked before we really need to point this plugin to a<br>
"teiid" 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>>>Sanjay: That'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) "ra.xml" need to be treated same way as template. This needs to live<br>in "src/main/rar/META-INF/ra.xml".<br>
>>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 "export" function of this. If we do not<br>
want write custom "export" may be we can just use eclipse "maven"<br>plug-in to build this for us. All that takes is invoking a "run-as" on<br>the pom.xml, which may be sufficient. Or there may be eclipse plugin to<br>
build a RAR file?<br>>>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'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>