Cloud Tools for Eclipse で使用するための Eclipse プロジェクトの構成
Cloud Tools for Eclipse では、Eclipse、Ant、Maven、Gradle、またはその他のシステムのいずれで構築されていても、既存の Java App Engine アプリケーションがサポートされます。Google Plugin for Eclipse(GPE)プロジェクトを変換することもできます。
プロジェクトを変換するには:
まだ Eclipse を使用していない場合は、他の Java アプリケーションの場合と同じように、Eclipse にプロジェクトをインポートします。
- たとえば、Maven プロジェクトがある場合、[File] > [Import...] > [Existing Maven Projects] ウィザードを使用します。
Eclipse でプロジェクトを開いたら、Package Explorer または Project Explorer でプロジェクトを選択します。
コンテキスト メニューを開き、[Configure] > [Convert to App Engine Project] を選択します。
変換プロセスがプロジェクトに及ぼす影響
Cloud Tools for Eclipse により、プロジェクトに以下の変更が行われます。
App Engine スタンダード ファセットが適用され、プロジェクトを App Engine プロジェクトとして認識し、関連するメニュー項目を表示できるようになります。
web.xml
ファイルと appengine-web.xml
ファイルがまだない場合は、それらを含む WEB-INF
フォルダを作成します。
App Engine スタンダード環境でサポートされているバージョンの Servlet API と JSP API が、プロジェクトのクラスパスに追加されます。
前の GPE プロジェクトから従来の GPE ファセットが削除されます。この変換は一方向です。プロジェクトを簡単に GPE プロジェクトに変換して戻すことはできません。
次のステップ
- Cloud Tools for Eclipse にプロジェクトが正常に移行されたため、使用可能なツールとリソースについてさらに学習します。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-01-25 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"わかりにくい"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"情報またはサンプルコードが不正確"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"必要な情報 / サンプルがない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]