Can I exclude source files from Google App Engine deployment in Java?

In my current Google Apps project, I have set up two source folders, src for production code and test for junit tests, etc. Can I specify that only the src folder is deployed and the test folder is still available for local testing?


source to share

1 answer

From a row <resource-files>

in the Syntax table :


Files and directories matching templates will not be loaded or available for your application code. However, these files and directories will still be available to your application when running on your local development server. For more information, see Including and excluding files .


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


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



All Articles