db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kartha <kar...@Source-Zone.Org>
Subject [PATCH] creating Derby plug-in for Eclipse
Date Wed, 08 Dec 2004 01:49:09 GMT
Hello all,

Based on the suggestions from the mailing list, following are the 
changes/proposals:

- create a new package  - org.apache.derbyBuild.eclipse, under the 
java/build, for placing all Eclipse plug-in related classes
- the package name for the Derby plug-in will be: 
org.apache.derby.core_<major>.<minor>.<maint> (example: 
org.apache.derby.core_10.1.0).
   This is based on the naming convention used normally for Eclipse 
plug-ins.
- the plugin.xml file will show the correct version of the Derby build 
present in the package with the appropriate build number
   (shows up under Help  - About Eclipse Platform - Plug-in Details)   
example: 10.1.0.0_v111184
- the zip file created for the DerbyEclipse will have the name: 
derby_core_plugin_<major>.<minor>.<maint>.zip (example: 
derby_core_plugin_10.1.0.zip)
- the current packaging includes derby.jar, derbynet.jar and 
derbytools.jar. The locale jars for Derby are not included yet, any 
suggestions ?

Also, please find the 'svn diff' of the build.xml and the latest 
DerbyEclipsePlugin.java file - under the org.apache.derbyBuild.eclipse 
package, attached
with the above suggested changes. I have  added comments to the java file.

Please send your views/suggestions on the above.

Regards,
Rajesh


CHANGES:
----------------------------------------------------------------------------------------------------------------------------
svn diff:
========
Index: build.xml
===================================================================
--- build.xml   (revision 111184)
+++ build.xml   (working copy)
@@ -591,6 +591,45 @@
   </target>

 <!-- 
=================================================================== -->
+<!-- Eclipse Plugin                                                     -->
+<!-- 
=================================================================== -->
+  <target name="plugin" depends= "buildjars">
+       <echo message="Begining Derby Eclipse plugin build"/>
+       <property name="plugin.tmp.dir" value ="plugintmp"/>
+       <mkdir dir="${derby.jar.dir}/${plugin.tmp.dir}"/>
+
+       <java classname="org.apache.derbyBuild.eclipse.DerbyEclipsePlugin">
+               <arg value="${derby.jar.dir}/${plugin.tmp.dir}"/>
+               <classpath>
+                       <pathelement path="${out.dir}"/>
+               </classpath>
+       </java>
+
+       <property 
file="${derby.jar.dir}/${plugin.tmp.dir}/plugintmp.properties"/>
+       <echo message="Derby Eclipse plugin build: 
${plugin.derby.version.build.number}"/>
+
+       <property name="plugin.dir" value ="plugins"/>
+       <property name="plugin.core.dir" value 
="${plugin.derby.core}_${plugin.derby.version}"/>
+
+       <mkdir 
dir="${derby.jar.dir}/${plugin.tmp.dir}/${plugin.dir}/${plugin.core.dir}"/>
+
+       <copy 
todir="${derby.jar.dir}/${plugin.tmp.dir}/${plugin.dir}/${plugin.core.dir}">
+               <fileset dir="${derby.jar.dir}" includes="derby*.jar" 
excludes="derbyLocale*.jar"/>
+       </copy>
+       <copy 
todir="${derby.jar.dir}/${plugin.tmp.dir}/${plugin.dir}/${plugin.core.dir}">
+               <fileset dir="${derby.jar.dir}/${plugin.tmp.dir}" 
includes="plugin*.xml"/>
+       </copy>
+
+       <delete 
file="${derby.jar.dir}/${plugin.tmp.dir}/plugintmp.properties"/>
+       <delete file="${derby.jar.dir}/${plugin.tmp.dir}/plugin.xml"/>
+
+       <!-- ZIP to create the final Derby plug-in -->
+
+       <zip 
zipfile="${derby.jar.dir}/${plugin.derby.core.zipfile}_${plugin.derby.version}.zip" 
compress="true" basedir="${d
erby.jar.dir}/${plugin.tmp.dir}"/>
+       <delete dir="${derby.jar.dir}/${plugin.tmp.dir}"/>
+  </target>
+
+<!-- 
=================================================================== -->
 <!--                               Jar 
targets                           -->
 <!-- 
=================================================================== -->

----------------------------------------------------------------------------------------------------------------------------

Mime
View raw message