commandlinecodegen ディレクトリで build.properties ファイルを見つけます。
メモ帳などのテキストエディタを使用してこのファイルを開きます。内容は次のとおりです。
commandline.rep.url=http://host:port/repositoryname commandline.rep.user= commandline.rep.pass= commandline.rep.dir=localrepository commandline.rep.projectName= commandline.rep.projectDeployName= commandline.rep.projectDeploymentTag= commandline.rep.projectBranchName= |
表 1–1 の説明に従ってプロパティーの値を入力します。
commandlinecodegen ディレクトリでコマンド行プロンプトから次のコマンドを発行して、commandline codegen を実行します。
ant -propertyfile build.properties "-D{propertyname1}={propertyvalue1}" "-D{propertyname2}={propertyvalue2}" … "-D{propertynameN}={propertyvalueN}" |
プロパティーファイルとコマンド行プロパティーを組み合わせて使用する場合は、プロパティーファイルに指定されているプロパティーよりもコマンド行プロパティーが優先されます。優先させるプロパティーだけを指定する必要があります。