mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
appengine: fixed starting enhancer for latest versions of SDK
This commit is contained in:
+4
@@ -113,7 +113,11 @@ public class AppEngineEnhancerBuilder extends ModuleLevelBuilder {
|
||||
List<String> classpath = new ArrayList<String>();
|
||||
classpath.add(extension.getToolsApiJarPath());
|
||||
classpath.add(PathManager.getJarPathForClass(EnhancerRunner.class));
|
||||
boolean removeOrmJars = Boolean.parseBoolean(System.getProperty("jps.appengine.enhancer.remove.orm.jars", "true"));
|
||||
for (File file : JpsJavaExtensionService.dependencies(module).recursively().compileOnly().productionOnly().classes().getRoots()) {
|
||||
if (removeOrmJars && FileUtil.isAncestor(new File(extension.getOrmLibPath()), file, true)) {
|
||||
continue;
|
||||
}
|
||||
classpath.add(file.getAbsolutePath());
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ import java.util.List;
|
||||
public interface JpsAppEngineModuleExtension extends JpsElement {
|
||||
JpsModule getModule();
|
||||
|
||||
String getOrmLibPath();
|
||||
|
||||
String getSdkHomePath();
|
||||
|
||||
boolean isRunEnhancerOnMake();
|
||||
|
||||
+5
@@ -70,6 +70,11 @@ public class JpsAppEngineModuleExtensionImpl extends JpsElementBase<JpsAppEngine
|
||||
return FileUtil.toSystemDependentName(JpsArtifactPathUtil.appendToPath(getSdkHomePath(), LIB_APPENGINE_TOOLS_API_JAR));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOrmLibPath() {
|
||||
return FileUtil.toSystemDependentName(JpsArtifactPathUtil.appendToPath(getSdkHomePath(), "/lib/user/orm"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSdkHomePath() {
|
||||
return myProperties.mySdkHomePath;
|
||||
|
||||
Reference in New Issue
Block a user