Locate the file build.properties in your commandlinecodegen directory.
Open the file using a text editor such as Notepad. The contents are as follows:
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= |
Fill in the property values as described in Table 1–1 (optional properties may be left blank).
Run commandline codegen by issuing the following command from the command-line prompt in your commandlinecodegen directory:
ant -propertyfile build.properties |
Run commandline codegen by issuing the following command from the command prompt in your commandlinecodegen directory (see Table 1–1):
ant "-D(propertyname1)=(propertyvalue1)" "-D(propertyname2)= (propertyvalue2)" … "-D{propertynameN}={propertyvalueN}" |
When using the command-line properties method, you must specify values for all required properties. You also may specify values for any optional properties as is appropriate.
Locate the file build.properties in your commandlinecodegen directory.
Open the file using a text editor such as Notepad. The contents are as follows:
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= |
Fill in the property values as described in Table 1–1.
Run commandline codegen by issuing the following command from the command-line prompt in your commandlinecodegen directory:
ant -propertyfile build.properties "-D{propertyname1}={propertyvalue1}" "-D{propertyname2}={propertyvalue2}" … "-D{propertynameN}={propertyvalueN}" |
When using a combination of a property file and command-line properties, the command-line properties override those specified in the property file. You need to list only those properties that you want to override.