Hi Nirmal,

You might want to take a look at derby-3652-10-aa-SignatureChecker.diff, attached to DERBY-3652. That's the patch which added the SignatureChecker tool. That patch added the new tool to run.java so that derbyrun would recognize it.

The tool's name looks a little wordy to me. How about something shorter like PlanExporter?

Thanks,
-Rick

Nirmal Fernando wrote:
Hi All,

I want to add the new tool that we're developing in DERBY-4587 <https://issues.apache.org/jira/browse/DERBY-4587> to Derbytools.jar. So what I did is displayed by following diff.

Index: tools/java/xercesImpl.jar
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: tools/jar/tools.properties
===================================================================
--- tools/jar/tools.properties (revision 926144)
+++ tools/jar/tools.properties (working copy)
@@ -27,4 +27,6 @@
 derby.module.Attribute=org.apache.derby.iapi.reference.Attribute
 derby.module.cslook=org.apache.derby.tools.dblook
 derby.module.sysinfo=org.apache.derby.tools.sysinfo
+derby.module.exportqueryplanasxml=org.apache.derby.tools.exportqueryplanasxml
 derby.module.SignatureChecker=org.apache.derby.tools.SignatureChecker
+

This is successfully adding the tool to Derbytools.jar. Is there any other things to be done such as editing a xml file?

Thanks.
--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Reply via email to