You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Nirmal Fernando <ni...@gmail.com> on 2010/07/02 01:18:20 UTC
Adding a new tool to the Derbytools.jar
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.
Re: Adding a new tool to the Derbytools.jar
Posted by Nirmal Fernando <ni...@gmail.com>.
Ok, Bryan thanks, I've already added to derbytools.jar.
On Mon, Jul 5, 2010 at 8:38 PM, Bryan Pendleton
<bp...@gmail.com> wrote:
>> Do I need to add the new tool to derbyrun.jar as well or adding only
>> to derbytools.jar would enough?
>
> I think it is sufficient for now to add it to derbytools.jar. This means
> that
>
> java -cp /path/to/derbyrun.jar org.apache.derby.tools.xml.PlanConverter
> <args>
>
> should work, and that seems fine for the time being.
>
> thanks,
>
> bryan
>
>
--
Best Regards,
Nirmal
C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
Re: Adding a new tool to the Derbytools.jar
Posted by Bryan Pendleton <bp...@gmail.com>.
> Do I need to add the new tool to derbyrun.jar as well or adding only
> to derbytools.jar would enough?
I think it is sufficient for now to add it to derbytools.jar. This means that
java -cp /path/to/derbyrun.jar org.apache.derby.tools.xml.PlanConverter <args>
should work, and that seems fine for the time being.
thanks,
bryan
Re: Adding a new tool to the Derbytools.jar
Posted by Nirmal Fernando <ni...@gmail.com>.
Hi,
Do I need to add the new tool to derbyrun.jar as well or adding only
to derbytools.jar would enough?
Thanks.
On Fri, Jul 2, 2010 at 8:36 PM, Nirmal Fernando <ni...@gmail.com> wrote:
> Thanks Rick for the reply.
>
>>
>> The tool's name looks a little wordy to me. How about something shorter like
>> PlanExporter?
>
> yeah...it's too long :(, I'll change to PlanExporter.
> If there's any objection please raise.
>
> Thanks.
>
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>
--
Best Regards,
Nirmal
C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
Re: Adding a new tool to the Derbytools.jar
Posted by Nirmal Fernando <ni...@gmail.com>.
Thanks Rick for the reply.
>
> The tool's name looks a little wordy to me. How about something shorter like
> PlanExporter?
yeah...it's too long :(, I'll change to PlanExporter.
If there's any objection please raise.
Thanks.
--
Best Regards,
Nirmal
C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
Re: Adding a new tool to the Derbytools.jar
Posted by Rick Hillegas <ri...@oracle.com>.
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.