Hello all,
I was wondering if anybody got a chance to review the patches I sent most recently, for creating the Derby Plug-in for Eclipse, and commit the changes. Please do
let me know, if there are any other changes needed.
Regards, Rajesh ----------------------------------------------------------------------------------------------------------------------- Rajesh Kartha wrote:
Hello,
I have
- updated the comments in the .java file
- changed the version entry in plugin.xml to be consistent with the Derby builds: example - 10.1.0.0 (111546M)
Following is the svn diff and also please find attached the modified DerbyEclipsePlugin.java file. Let me know, if there any further
changes are needed, else please update the codeline.
CHANGES: ------------------ svn diff: ----------- Index: build.xml =================================================================== --- build.xml (revision 111546) +++ 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 -->
<!-- =================================================================== -->
Regards, Rajesh
