ステップ 3: 静的リソースを作成する
- http://download.cometd.org/cometd-2.2.0-distribution.tar.gz から CometD の圧縮され���アーカイブ (.tgz) ファイルをダウンロードします。
-
cometd-2.2.0-distribution.tar.gz から次の JavaScript ファイルを抽出します。
- cometd-2.2.0/cometd-javascript/common/target/cometd-javascript-common-2.2.0.war
- cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/jquery-1.5.1.js
- cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/json2.js
- cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/jquery.cometd.js
-
次のシェルコマンドを使用して、cometd-javascript-common-2.2.0.war から cometd.js を抽出します。
1cd cometd-2.2.0/cometd-javascript/common/target 2jar xvf cometd-javascript-common-2.2.0.war org/cometd.js -
[設定] から、[クイック検索] ボックスに「静的リソース」と入力し、[静的リソース] を選択して、抽出したファイルを次の名前で追加します。
ファイル名 静的リソース名 cometd.js cometd jquery-1.5.1.js jquery json2.js json2 jquery.cometd.js jquery_cometd