Author: nickboldt
Date: 2011-12-03 18:54:45 -0500 (Sat, 03 Dec 2011)
New Revision: 36926
Modified:
trunk/central/README.localhost.testing.txt
Log:
update readme
Modified: trunk/central/README.localhost.testing.txt
===================================================================
--- trunk/central/README.localhost.testing.txt 2011-12-03 23:43:42 UTC (rev 36925)
+++ trunk/central/README.localhost.testing.txt 2011-12-03 23:54:45 UTC (rev 36926)
@@ -1,25 +1,27 @@
To build/test/iterate locally:
-1. Run a web server locally, so you can access
central/site/target/site/jbosstools-directory.xml via an http:// URL
+0. Run a web server locally, so you can access
central/site/target/site/jbosstools-directory.xml via an http:// URL. You have many
options for this. Here's one:
-To run a server locally, you have many options. Here's one:
-
su
cd /tmp; wget -nc
http://elonen.iki.fi/code/nanohttpd/NanoHTTPD.java
- javac NanoHTTPD.java; java NanoHTTPD -d /path/to/central/site/
+ javac NanoHTTPD.java; java NanoHTTPD -d /path/to/parent/folder/for/central/
-1. edit
central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/configurators/DefaultJBossCentralConfigurator.java
+1. edit
central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/configurators/DefaultJBossCentralConfigurator.java
to set a new path for JBOSS_DISCOVERY_DIRECTORY_3_3_0_XML:
- set a new path for JBOSS_DISCOVERY_DIRECTORY_3_3_0_XML, pointing at
http://localhost/target/site/jbosstools-directory.xml as per the example above
+ private static final String JBOSS_DISCOVERY_DIRECTORY_3_3_0_XML =
"http://localhost/central/site/target/site/jbosstools-directory.xml"; // for
testing on localhost
-2. build in central/ folder using `mvn clean install`
+2. build central/ folder:
-4. verify the directory.xml file is generated, and http-accessible:
+ cd /path/to/central; mvn clean install
- firefox
http://localhost/target/site/jbosstools-directory.xml
+3. verify the directory.xml file is generated, and http-accessible:
-5. verify central/site/target/site/jbosstools-directory.xml points at the updated version
of the o.j.t.central plugin in /path/to/central/site/target/site/plugins/
+ firefox
http://localhost/central/site/target/site/jbosstools-directory.xml
-6. install updated o.j.t.central plugin into new Eclipse instance from
http://localhost/target/site/
+4. verify central/site/target/site/jbosstools-directory.xml points at the updated version
of the o.j.t.central plugin in /path/to/central/site/target/site/plugins/
+5. install updated o.j.t.central plugin into new Eclipse instance from
http://localhost/central/site/target/site/ (or local file:// path if you prefer). Restart
when prompted.
+6. Change central/plugins/org.jboss.tools.central/plugin.xml, then repeat steps 2-5.
+
+