# How Do I: Put an Application Under Source Control?

In a typical team development scenario multiple developers work on an application at the same time, using one code base that is put under configuration control. If you are developing an application in WebLogic Workshop, you can similarly put the application under configuration control. The contents of several folders in your application should either not be checked in or the local copies should be writable at all times for each developer. Whether or not a file should be put under configuration control depends on this basic rule:

If you generate the file in the application, don't put it under configuration control during development.

Specifically, the following files and folders should be given special consideration:

- The .workshop folder. The contents of this folder, located in the root of your application folder, are regenerated during each build. Therefore, never put the contents of this folder under configuration control.
- The META-INF folder. This folder is also located in the root of your application and similarly contains generated content that should not be put under configuration control.
- The WEB-INF folders. This folder will be located in the root of a web service, web portal or web application project. This folder contains several xml files that are generated and should not be put under configuration control. All other content in this folder, including the contents of its subfolders, should be put under configuration control.
- JAR libraries. If the JAR was generated in a different application and you add it as a library or a module to the current application, put it under configuration control. However, if you build the library in your application, do not put it under configuration control. Remember that JARs added as a module in the Modules folder of WebLogic Workshop's Application pane, physically end up in the root folder of your application, while JARs added as a library in the Libraries folder of WebLogic Workshop, physically end up in the APP-INF/lib folder
- The .work file. This file may among other things contain a reference to the physical location of the server home directory (this can be changed by going to the WebLogic Server setting in the Application Properties dialog). If this location is the same for all developers, it can be put under configuration control.

Related Topics

How Do I: Reuse Existing Java Code?

How Do I: Add an Existing Enterprise JavaBean to an Application?

How Do I: Create and Use a Java Control Within a Control Project?

How Do I: Use a Remote WebLogic Server During Development?