Skip to content

Commit

Permalink
added apendix c to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yfain committed Nov 22, 2013
1 parent 6c5d85a commit 27b4329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}`

Expand Down
6 changes: 3 additions & 3 deletions ch6_5_tools.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

Expand All @@ -422,15 +422,15 @@ 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 <<Fig6-6>>) 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_.

To ensure that you did everything right, just enter in your browser the URL http://localhost:8080/extjs-4.2, and you should see the welcome screen of Ext JS.

[[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.

Expand Down

0 comments on commit 27b4329

Please sign in to comment.