From 27b432970a083ab68dc9a2c5ad6c64b878e38d87 Mon Sep 17 00:00:00 2001 From: Yakov Fain Date: Fri, 22 Nov 2013 14:28:04 -0500 Subject: [PATCH] added apendix c to build.sh --- build.sh | 2 +- ch6_5_tools.asciidoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 63ad7d99..da1eb2f9 100755 --- a/build.sh +++ b/build.sh @@ -52,7 +52,7 @@ if [ "$1" = "html" ]; then makeDir $OUT_DIR # list all asciidoc files in the DOCS_DIR - adoc_files=(./acknowledgements.asciidoc ./appendix_a.asciidoc ./ch10_security.asciidoc ./ch11_responsive.asciidoc ./ch12_jquerymobile.asciidoc ./ch13_senchatouch.asciidoc ./ch14_hybrid.asciidoc ./ch1_advancedjs.asciidoc ./ch2_html.asciidoc ./ch3_mockup.asciidoc ./ch4_ajax_json.asciidoc ./ch5_jquery.asciidoc ./ch6_ext_js.asciidoc ./ch6_5_tools.asciidoc ./ch7_large_js_apps.asciidoc ./ch8_testdriven_js.asciidoc ./ch9_websockets.asciidoc ./Introduction.asciidoc ./ch_preface.asciidoc) + adoc_files=(./acknowledgements.asciidoc ./appendix_c_ide.asciidoc ./ch10_security.asciidoc ./ch11_responsive.asciidoc ./ch12_jquerymobile.asciidoc ./ch13_senchatouch.asciidoc ./ch14_hybrid.asciidoc ./ch1_advancedjs.asciidoc ./ch2_html.asciidoc ./ch3_mockup.asciidoc ./ch4_ajax_json.asciidoc ./ch5_jquery.asciidoc ./ch6_ext_js.asciidoc ./ch6_5_tools.asciidoc ./ch7_large_js_apps.asciidoc ./ch8_testdriven_js.asciidoc ./ch9_websockets.asciidoc ./Introduction.asciidoc ./ch_preface.asciidoc) convert `printf "%s " "${adoc_files[@]}" | cut -d " " -f 1-${#adoc_files[@]}` diff --git a/ch6_5_tools.asciidoc b/ch6_5_tools.asciidoc index 32b8303e..4b76638a 100644 --- a/ch6_5_tools.asciidoc +++ b/ch6_5_tools.asciidoc @@ -406,7 +406,7 @@ To create such a project select Eclipse menu File | New | Other | Web | Dynamic [[FIG6-4]] .Creating Dynamic Web Project in Eclipse -image::images/fig_06_04.png[image] +image::fig_06_04.png[image] Upon creation, this project will include several directories, and one of them will be called _WebContent_. This directory it serves as a document root of the Web server in Eclipse Dymamic Web Projects . This is the place to put your index.html and one of possible places to keep the Ext JS framework.Create a subdirectory _ext_ under _WebContent_ and copy there all files from the Ext JS distribution. The _app_ directory should also go under _WebContent_. @@ -422,7 +422,7 @@ To implement the first solution, right click on the properties of your project a [[FIG6-5]] .Solution 1: Excluding folders in Eclipse -image::images/fig_06_05.png[image] +image::fig_06_05.png[image] For the second solution, you'll need to add your Ext JS folder as a static Tomcat module. Double-click at the Tomcat name in the Servers view and then click on the bottom tab Modules. Then Click on Add External Web Module. In the popup window find the folder where your Ext JS is (in my computer it's inside the Library folder as in <>) and give it a name (e.g. /extjs-4.2). Now Tomcat will know that on each start it has to load year another static Web module known as /extjs-4.2. If you're interested in details of such deployment, open up the file server.xml located in your Eclipse workspace in the hidden directory _.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf_. @@ -430,7 +430,7 @@ To ensure that you did everything right, just enter in your browser the URL http [[FIG6-6]] .Solution 2: Adding Ext JS to Tomcat as a static module -image::images/fig_06_06.png[image] +image::fig_06_06.png[image] In both of these solutions you'll lose the Ext JS context sensitive help, but at least you will eliminate the long pauses caused by Eclipse internal indexing processes. Again, developing ExtJS code in WebStorm IDE or IntelliJ IDEA IDEs would spare you from all these issues because these IDE's are smart enough to produce context-sensitive help from an external JavaScript library.