# wlwBuild Command

Builds an application into an EAR file for deployment to a production server. Optionally, this command can build a single project into a JAR file, provided the project type does not include web application resources.

## Syntax

wlwBuild
[-p <project-name>]
[-od <output-directory>]
[-of <output-file>]
[-scp <server-classpath>]
[-f <build-properties-file>]
[- clean]
[-incremental]
[<application-file>.work]

## Arguments

-p, -project

Specifies the name of the project in the application that should be built. If this flag is omitted, the entire application will be built.

-od, -outputdirectory

Specifies the directory where the output EAR file will be placed. If this flag is omitted, the EAR is placed in the application's root directory.

-of, -outputfilename

Specifies the name of the file that should be produced.

-scp, -serverclasspath

Specifies the server classpath to use in the build. Defaults to the classpath of the application's selected server. This flag is required if the the application's server's home directory cannot be found.

-f, -file

Specifies the property file containing build options. The property file should use the full names of the flags above, e.g., "-serverclasspath=C\:bea\weblogic...".

-clean

Cleans all previous build output for a single project or the full application.

-incremental

Builds Web and Web Service projects incrementally if the Use Incremental Build property for the project is set to true. If you are building the EAR file, this command is identical to the Build EAR (Incremental) menu command in the IDE. If you are building a single project, the project must be a Web or Web Service project; using this argument with another type of project will result in an error.

<application-file>.work

Specifies that application configuration parameters from the specified .work file should be used.

## Remarks

wlwBuild is located in the BEA_HOME\weblogic81\workshop directory.

Related Topics

Deploying Applications

How Do I: Call wlwBuild.cmd from an ANT build.xml file?

How Do I: Use a Custom Ant Build for a Project?