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] Derby plug-in for Eclipse
Date Tue, 16 Nov 2004 02:39:59 GMT
Hello all,

As per my earlier mail regarding the need for a Derby plugin for 
Eclipse,  the following are the suggested changes.

1) additions to the main 'build.xml'
2) a simple Java  file used in the plug-in build process

Using the above changes:
 - will serve as a permanent solution for building the plug-in
 - the plug-in build will always track the Derby versioning
 
To create a plug-in build (once the above changes are integrated):
- use  'ant' to compile all classes
- use 'ant plugin' to create the Derby plug-in zip

The 'derby_eclipse_plug-in.zip' will be created in the jars/insane 
directory along with all the other Apache Derby jars.
Eventually I suggest, Apache could have an update site for the Derby 
plug-in where the latest version can be downloaded using the
Eclipse Update Manager.

Please review these changes and do let me know if there are any 
questions/suggestions.

Regards,
Rajesh

CHANGES:
==========
1) Additions to the main 'build.xml'

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<!-- =================================================================== -->
<!-- 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.plugin.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.major}.${plugin.minor}.${plugin.maint}"/>
   
    <property name="plugin.dir" value ="plugins"/>
    <property name="plugin.core.dir" value 
="org.apache.derby.core_${plugin.major}.${plugin.minor}.${plugin.maint}"/>
   
    <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"/>
        </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}/derby_eclipse_plug-in.zip" 
compress="true" basedir="${derby.jar.dir}/${plugin.tmp.dir}"/>
        <delete dir="${derby.jar.dir}/${plugin.tmp.dir}"/>
  </target>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

2) A simple Java  file used in the plug-in build process

The Java file DerbyEclipsePlugin.java can be placed in a 
org.apache.derbyBuild.plugin package under the java/build directory

Java file attached....

Mime
View raw message