Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24536 invoked from network); 9 Dec 2004 19:18:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 19:18:06 -0000 Received: (qmail 10604 invoked by uid 500); 9 Dec 2004 19:18:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10573 invoked by uid 500); 9 Dec 2004 19:18:04 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 10558 invoked by uid 99); 9 Dec 2004 19:18:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from web81604.mail.yahoo.com (HELO web81604.mail.yahoo.com) (206.190.37.121) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 09 Dec 2004 11:18:03 -0800 Message-ID: <20041209191759.61378.qmail@web81604.mail.yahoo.com> Received: from [129.33.49.251] by web81604.mail.yahoo.com via HTTP; Thu, 09 Dec 2004 11:17:59 PST X-RocketYMMF: levitj Date: Thu, 9 Dec 2004 11:17:59 -0800 (PST) From: Jeff Levitt Reply-To: jlevitt@mutagen.net Subject: [doc] Creating an eclipse doc plugin for Derby To: Derby Dev MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N OK, for the people who asked, here is the process I followed to successfully set up a doc plugin in Eclipse for Derby. First, I am assuming based on Rajesh's post on the main Derby eclipse plugin name that a corresponding doc plugin name would be: org.apache.derby.doc Please let us all know if this is incorrect. For now, I will use that plugin name, and from now on I will refer to it as the "Derby plugin." These instructions also assume that you have created xhtml output for the Getting Started Guide from the DITA files, as well as an xml nav tree file from the same source. Please see my previous posts on creating all this output using saxon. So: 1. Download Eclipse. I recommend the Websphere Help System implementation since it has batch files that I will refer to later for starting and stopping the help system. Download the Websphere Help System version of Eclipse at: Windows: http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-12-15+11%3A44%3A17.805174R&S_TACT=104CBW71&S_CMP=&s= Linux: http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-07-30+12%3A39%3A33.410270R&S_TACT=104CBW71&S_CMP=&s= Note that the rest of these instructions were written against the Windows version of eclipse... 2. Create an install.ini file in the main eclipse install directory if it doesnt already exist. The install.ini file should contain the following two lines (modify the existing one if the file already exists): feature.default.id=org.apache.derby.doc feature.default.application=org.eclipse.ui.workbench 3. Create a directory named "org.apache.derby.doc" in the plugins directory within the eclipse install. This directory will now be refered to as the "Derby plugin." 4. Zip up the xhtml output that you created from the dita source. Name the zip file doc.zip. Include any css files you wish to use. Place this zip file in the Derby plugin. 5. Place the XML nav tree file that you output from the DITA source into the Derby plugin next to the doc.zip file. If you followed my previous posts and used my batch files, this XML file is probaby called getstartmap.xml, so I will call it that for this example. 6. Create a file called plugin.xml and also place it in the Derby plugin. This file should contain the following lines: Note that we would just add the other books to this file when they are available in DITA as well. 7. Thats it! Find the directory in your eclipse install that contains the WebSphere_help_start.bat file an run it. This batch file is in the directory that also contains the eclipse directory. You should soon see a browser window spawn with the infocenter. Dont forget to run the WebSphere_help_end.bat file after you are through to end the eclipse process. We would have to add a welcome page to any infocenter we create, but thats quite easy, and could contain links to the PDF's, whitepapers, etc. For now though, the spawned infocenter will either have a Websphere welcome page or simply be blank. Also, you'll find other batch files with the Websphere Help System besides the WebSphere_help_start.bat and WebSphere_help_end.bat files. Use the IC_start.bat and IC_end.bat set of files for starting a local server packaged in the eclipse install that will display the infocenter online through a port that you can specify by altering that batch file. Please let me know if I can help anyone with this if you run into any problems trying this out!