final IPath configPath = resolveConfigPath(project, config.getStringProperty(IJSFFacetInstallDataModelProperties.CONFIG_PATH));
try {
// do not overwrite if the file exists
if (!configPath.toFile().exists()) {
final IWorkspaceRunnable op = new IWorkspaceRunnable(){
public void run(final IProgressMonitor monitor_inner) throws CoreException{
jsfUtil.createConfigFile(configPath);
project.refreshLocal(IResource.DEPTH_INFINITE, monitor_inner);
}
};
op.run(monitor);
}
} catch (final CoreException e) {
JSFCorePlugin.log(e, "Exception occured while creating faces-config.xml");//$NON-NLS-1$
}