# Java App Engine Rules for Bazel
Attributes | |
---|---|
name |
Name, required
A unique name for this rule. |
jars |
List of labels, required
List of JAR files that will be uncompressed as the code for the Web Application. If it is a `java_library` or a `java_import`, the JAR from the runtime classpath will be added in the `lib` directory of the Web Application. |
data |
List of files, optional
List of files used by the Web Application at runtime. This attribute can be used to specify the list of resources to be included into the WAR file. |
data_path |
String, optional
Root path of the data. The directory structure from the data is preserved inside the WebApplication but a prefix path determined by `data_path` is removed from the the directory structure. This path can be absolute from the workspace root if starting with a `/` or relative to the rule's directory. It is set to `.` by default. |
Attributes | |
---|---|
name |
Name, required
A unique name for this rule. |
data |
List of labels, optional
List of files used by the Web Application at runtime. Passed to the appengine_war rule. |
data_path |
String, optional
Root path of the data. Passed to the appengine_war rule. |
**kwargs |
see java_library
The other arguments of this rule will be passed to build a `java_library` that will be passed in the `jar` arguments of a appengine_war rule. |