Search in sources :

Example 1 with ProjectSettings

use of org.osmorc.settings.ProjectSettings in project intellij-plugins by JetBrains.

the class OsmorcFacetType method completeDefaultConfiguration.

private static void completeDefaultConfiguration(OsmorcFacetConfiguration configuration, Module module) {
    if (StringUtil.isEmpty(configuration.getJarFileLocation())) {
        String jarFileName = module.getName().replaceAll("[\\s]", "_") + ".jar";
        // by default put stuff into the compiler output path.
        OutputPathType outputPathType = OutputPathType.CompilerOutputPath;
        ProjectSettings projectSettings = ProjectSettings.getInstance(module.getProject());
        if (projectSettings != null) {
            String bundlesOutputPath = projectSettings.getBundlesOutputPath();
            if (StringUtil.isNotEmpty(bundlesOutputPath)) {
                outputPathType = OutputPathType.OsgiOutputPath;
            }
        }
        configuration.setJarFileLocation(jarFileName, outputPathType);
    }
}
Also used : OutputPathType(org.jetbrains.osgi.jps.model.OutputPathType) ProjectSettings(org.osmorc.settings.ProjectSettings)

Aggregations

OutputPathType (org.jetbrains.osgi.jps.model.OutputPathType)1 ProjectSettings (org.osmorc.settings.ProjectSettings)1