Package org.jetbrains.jps.maven.model.impl

Examples of org.jetbrains.jps.maven.model.impl.MavenProjectConfiguration


import java.util.Properties;

public class OsgiBuildUtil {
  @NotNull
  public static Properties getMavenProjectProperties(@NotNull CompileContext context, @NotNull JpsModule module) {
    final MavenProjectConfiguration projectConfig = getProjectConfig(context);
    final Properties result = new Properties();
    if (projectConfig == null) return result;

    JpsJavaExtensionService.dependencies(module).recursively().productionOnly().processModules(new Consumer<JpsModule>() {
      @Override
View Full Code Here


    return result;
  }

  @Nullable
  public static File getMavenProjectPath(@NotNull CompileContext context, @NotNull JpsModule module) {
    MavenProjectConfiguration projectConfig = getProjectConfig(context);
    if (projectConfig == null) return null;
    MavenModuleResourceConfiguration moduleConfig = projectConfig.moduleConfigurations.get(module.getName());
    return moduleConfig == null ? null : new File(FileUtil.toSystemDependentName(moduleConfig.directory), "pom.xml");
  }
View Full Code Here

TOP

Related Classes of org.jetbrains.jps.maven.model.impl.MavenProjectConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.