Add source files with particular extension to a war file generated by JDeveloper
Facts - Java
Monday, 09 August 2010 21:44

I wanted to use a YAML properties file and read it from a war file created with JDeveloper. The problem was that JDeveloper did not include my configuration file with extension yaml into my war file.

To get JDeveloper 11 to include a YAML configuration file from the src/META-INF directory into a war file follow these steps:

  • Go to Project by right clicking the mouse. Then choose Properties.
  • In the Properties screen choose Deployment.
  • Select your deployment profile and press Edit.
  • Then choose File Groups, WEB-INF/classes, Contributors and check Project Source Path.
  • Select Filters in file group WEB-INF/classes and check the yaml-file.
  • Press OK twice and save the project.