2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
PropertyChanger
public
abstract
class
PropertyChanger
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.PropertyChanger
|
Android プロパティ ファイル内のアイテムを変更(または追加)するためのユーティリティ クラス
概要
パブリック メソッド |
static
File
|
changeProperties(File original, properties)
Android プロパティ ファイル内のアイテムを変更(または追加)するユーティリティ関数。元のプロパティ ファイル内のプロパティの値が変更されます。
|
パブリック コンストラクタ
PropertyChanger
public PropertyChanger ()
パブリック メソッド
changeProperties
public static File changeProperties (File original,
properties)
Android プロパティ ファイル内のアイテムを変更(または追加)するユーティリティ関数。元のプロパティ ファイル内のプロパティの値が変更されます。新しい項目が追加されます。呼び出し元は、元のファイルと変更後のファイルの両方の一時ファイルを適切にリサイクルする責任があります。
パラメータ |
original |
File : 元のプロパティ ファイル |
properties |
: 変更または追加するプロパティ |
戻り値 |
File |
新しいプロパティ ファイルのパス |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# PropertyChanger\n===============\n\n\n`\npublic\n\n\nabstract\nclass\nPropertyChanger\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.PropertyChanger |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA utility class for changing (or adding) items in an Android property file\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[PropertyChanger](../../../../../../reference/tradefed/com/android/tradefed/util/PropertyChanger.html#PropertyChanger())`() ` |\n\n| ### Public methods ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static File` | ` `[changeProperties](../../../../../../reference/tradefed/com/android/tradefed/util/PropertyChanger.html#changeProperties(File,%20\u003cany\u003e))`(File original, ` properties) A utility function to change (or add) items in an Android property file Properties that are in the original property file will have its value modified. |\n\nPublic constructors\n-------------------\n\n### PropertyChanger\n\n```\npublic PropertyChanger ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### changeProperties\n\n```\npublic static File changeProperties (File original, \n properties)\n```\n\nA utility function to change (or add) items in an Android property file\n\nProperties that are in the original property file will have its value modified. New ones\nwill be appended. Caller is responsible for properly recycling temporary files, both original\nand the modified.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-------------------------------------------|\n| `original` | `File`: the original property file \u003cbr /\u003e |\n| `properties` | : the properties to change or add \u003cbr /\u003e |\n\n| Returns ||\n|--------|--------------------------------------|\n| `File` | path to the new property file \u003cbr /\u003e |"]]