user1284665
user1284665

Reputation: 39

Can I exclude source files from google app engine deploy in Java

In my current google apps project I have set up two source folders, src for production code and test for junit tests and the like. Is there some way to specify that only the src folder is deployed, while the test folder is still available for local testing?

Upvotes: 3

Views: 2597

Answers (1)

dragonx
dragonx

Reputation: 15143

From the <resource-files> row in the Syntax table:

<exclude>

Files and directories matching patterns will not be uploaded or available to your application code. However, these files and directories will still be accessible to your application when running on the local Development Server. For more information, see Including and excluding files.

Example:

<resource-files>
  <include path="/**.xml" />
  <exclude path="/feeds/**.xml" />
</resource-files>

This example demonstrates how to designate all .xml files as resource files except those in the feeds/ directory and all of its subdirectories.

Upvotes: 6

Related Questions