java:infocenter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:infocenter [2014/04/15 17:52] – rlunaro | java:infocenter [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== InfoCenter -- Let's go for the third attempt ====== | + | ====== InfoCenter -- Four and final attempt ====== |
- | I always | + | Eventually |
- | I find this very useful in order to get some documentation available and with a search engine, for a documentation of a corporate website or for instance for documenting | + | ===== Step 1: download |
+ | This guy: | ||
- | ===== First step: install | + | http:// |
- | [[http:// | + | have done all the staff of isolating the infocenter as an standalone application for us. So the only thing we have to do is download the jar file who has provided and install it in a tomcat directory. |
- | * Go to [[http://www.eclipse.org/downloads]] and locate the eclipse platform runtime library | + | Then we have to start tomcat and point our browser |
- | * To create an infocenter | + | |
- | To start the infocenter you must run an specific program that is documented [[http:// | ||
- | <code bash> | + | ===== Step 2: Adding your onw data to the existing data ===== |
- | # | + | |
- | # launcher.sh | + | |
- | # | + | |
- | #!/bin/sh | + | |
- | if [ -z " | + | The help documentation is stored with the plugin information, |
- | command=start | + | |
- | else | + | |
- | command=$1 | + | |
- | fi | + | |
- | eclipsehome=/ | + | **Adding our own content is easy:** |
- | pluginshome=$eclipsehome/ | + | |
- | classpath=$pluginshome/ | + | |
- | classpath=$classpath:$pluginshome/ | + | |
- | classpath=$classpath: | + | |
- | port=8081 | + | |
- | java -classpath $classpath org.eclipse.help.standalone.Infocenter \ | + | **3.1** Move to the plugins directory (in my case '' |
- | | + | |
- | | + | <code bash> |
- | -Dorg.eclipse.help.HELP_DATA=$eclipsehome/ | + | $ mkdir com.supermanhamuerto.doc-1.0.0 |
</ | </ | ||
- | As you might see, you have to provide this line: | + | I've called this directory upon this website, but you can pick up whatever name you want. |
- | <code bash> | + | **3.2** Create a '' |
- | eclipsehome=/ | + | |
- | </ | + | |
- | With the correct one of your configuration and these lines: | + | <code xml> |
+ | <?xml version=" | ||
+ | <plugin | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | < | ||
+ | <toc file=" | ||
+ | </ | ||
+ | </ | ||
- | <code bash> | ||
- | classpath=$pluginshome/ | ||
- | classpath=$classpath: | ||
- | classpath=$classpath: | ||
</ | </ | ||
- | With the correct versions of your eclipse | + | Of course, |
+ | **3.3** create this '' | ||
- | ===== Second step: run your own infocenter with the help documents of eclipse ===== | + | <code xml> |
- | + | <?xml version=" | |
- | Let's run our own command and see if the infocenter starts, but now with the default contents. | + | <toc label="La tortilla de patatas" |
- | + | <topic label=" | |
- | <code bash> | + | </ |
- | $ launcher.sh | + | |
</ | </ | ||
- | As it is said [[http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fua_help_setup_preferences.htm|here]], | + | Obviously, |
+ | **3.4** And finally provide this '' | ||
- | AQUI ME QUEDO; FALTA PANTALLAZO | + | My directory has the following files: |
+ | <code bash> | ||
+ | ~/ | ||
+ | plugin.xml | ||
+ | </ | ||
- | Point your browser to [[http:// | + | After this, just wait until tomcat rescans |
- | + | ||
- | But... How can I put my own data??? | + | |
- | + | ||
- | http:// | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ====== InfoCenter -- Second Try and Failed ====== | + | |
- | + | ||
- | ===== Resume of achievements ===== | + | |
- | + | ||
- | Doesn' | + | |
- | + | ||
- | * http:// | + | |
- | * http:// | + | |
- | + | ||
- | ===== Introduction ===== | + | |
- | + | ||
- | I run into several problems in the first attempt to create an infocenter for myself. As you may know, the " | + | |
- | + | ||
- | The problem in the first approximation (to empty the eclipse and installing a plugin with my help contents) is that it is not easy to delete the contents of eclipse. [[InfocenterFirstTry|You can learn here from my own errors]]. | + | |
- | + | ||
- | But alas! There is a posibility to run the infocenter as a web application. At the end, the infocenter | + | |
- | + | ||
- | **Such solution exists**, and better than that, is backed up by eclipse. See this: | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | I will detail here the steps I've done to achieve such a high end: | + | |
- | + | ||
- | I've used the eclipse helios version in a Windows XP platform. I don't if the platform affect to the result, but just to be sure.... | + | |
- | + | ||
- | ===== To the point ===== | + | |
- | + | ||
- | I've assumed that eclipse is installed in the directory ECLIPSE_HOME. | + | |
- | + | ||
- | You have to identify the version of eclipse you are running. To do so, the usual eclipse -> about eclipse. Take those "Build id:" numbers that appear. In may case are of the form " | + | |
- | + | ||
- | ==== Locate the resources needed ==== | + | |
- | + | ||
- | You will need to point your browser to the equinox download site: [[http:// | + | |
- | + | ||
- | - Locate the version of equinox sdk that more closely matches with your version of eclipse. In my case, 3.5.2, because is the only one of 2010. | + | |
- | - Download all the package " | + | |
- | - Unzip the contents and locate the jar files you need | + | |
- | - Reserve them for later use | + | |
- | + | ||
- | As the document says, locate the jar file " | + | |
- | + | ||
- | Copy it to another directory and uncompress it((To uncompress, just rename it from .jar -> .jar.zip) and extract all the files)). | + | |
- | + | ||
- | You will find a directory web-archive. Under web-archive, | + | |
- | + | ||
- | Import it as a project in eclipse. Here are the steps, no so well commented in the eclipse documentation: | + | |
- | + | ||
- | * File -> Import | + | |
- | * Select " | + | |
- | * In the window that appears, select " | + | |
- | + | ||
- | A new project | + | |
- | + | ||
- | Following the instructions, | + | |
- | + | ||
- | Now, you have to move the file '' | + | |
- | + | ||
- | And then, you have to move the file '' | + | |
- | + | ||
- | ==== Creating a WAR file ==== | + | |
- | + | ||
- | All the contents under '' | + | |
- | + | ||
- | * Copy the '' | + | |
- | * Point my browser to http:// | + | |
+ | You should see your new content by refreshing the browser: | ||
+ | {{ : | ||
Line 154: | Line 76: | ||
- | ~~DISCUSSION~~ | + | ~~DISQUS~~ |
java/infocenter.1397584339.txt.gz · Last modified: 2022/12/02 21:02 (external edit)