New Web Project with Existing Sources Wizard: Existing Sources and Libraries The New Web Project with Existing Sources wizard creates a new standard project from an existing web application source folder. You open the New Web Project with Existing Sources wizard by opening the New Project wizard and selecting the Web Project with Existing Sources template from the Web category. Your existing web application source does not have to adhere to any particular directory structure. You specify the locations of the configuration files, libraries, and source roots. The only requirement is that the module contain a valid web.xml deployment descriptor. In the Existing Sources and Libraries page, you specify the following properties:
The IDE does not convert deployment descriptors for unsupported application servers to the Sun Java System Application Server deployment descriptors. There are external tools you can use for this purpose.
The IDE only scans this folder once when you create the project. After the project is created, adding JAR files to this folder outside the IDE does not add them to the module's classpath. You have to add them manually through the Libraries tab of the module's Project Properties dialog box.
If you have a source root that needs to be used by several projects, you should create a separate project for the source root and set up compilation dependencies between the projects. When you click Finish, the folder specified as the Location property is used to determine where the web pages, Java sources and libraries are found. The project is created on your computer and opened in the IDE. You can view its logical structure in the Projects window and its file structure in the Files window. -- Wagner R. Santos |