ラベル Google の投稿を表示しています。 すべての投稿を表示
ラベル Google の投稿を表示しています。 すべての投稿を表示

2009年10月20日火曜日

indexesの設定(GAE-J)

Google App Engine for JAVA のindexesの設定方法がわかったので備忘録として残しておく。

わたしはIDEをeclipseでといいますか、ほとんどがEclipseをご使用のことでしょう。
さてファイル作成手順です。
ファイル→新規(N)→表題なしのテキスト・ファイル→ブランクのファイルの新規作成を行います。
[php]

autoGenerate="false">





[/php]

その後、↑上のソースコードをコピペします。
今度は保存。

ファイル→別名保管→”親フォルダを入力または選択(E):"
に現在作成中のEclipseのディレクトリの
"WEB-INF/"の下に"datastore-indexes.xml"という名前で
"ファイル名(F):"を入力し、OKボタンを押下する。

そしてDeployす。

するとどうでしょう。
このようなメッセージがコンソール上に現れると成功です!!
Compiling module org.osrk.nextschool.App_nextschool
Compiling 6 permutations
Permutation compile succeeded
Linking into C:\Users\SEIJI\workspace\app-nextschool\war
Link succeeded
Compilation succeeded -- 11.986s
Creating staging directory
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
Cloning 31 static files.
Cloning 55 application files.
Uploading 2 files.
Uploaded 1 files.
Uploaded 2 files.
Deploying new version.
Will check again in 1 seconds
Will check again in 2 seconds
Will check again in 4 seconds
Closing update: new version is ready to start serving.
Uploading index definitions.
Deployment completed successfully