Fixes after review
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
14e586d5a5
commit
058ef31d7a
@@ -86,8 +86,8 @@ projectTest {
|
||||
workingDir = rootDir
|
||||
systemProperty("kotlin.test.script.classpath", the<JavaPluginConvention>().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
|
||||
doFirst {
|
||||
systemProperty("ant.classpath", antLauncherJar.asPath)
|
||||
systemProperty("ant.launcher.class", "org.apache.tools.ant.Main")
|
||||
systemProperty("kotlin.ant.classpath", antLauncherJar.asPath)
|
||||
systemProperty("kotlin.ant.launcher.class", "org.apache.tools.ant.Main")
|
||||
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -527,7 +527,9 @@ class KotlinCoreEnvironment private constructor(
|
||||
?: PathUtil.getResourcePathForClass(this::class.java).takeIf { it.hasConfigFile(configFilePath) }
|
||||
// hack for load extensions when compiler run directly from project directory (e.g. in tests)
|
||||
?: File("compiler/cli/src").takeIf { it.hasConfigFile(configFilePath) }
|
||||
?: throw IllegalStateException("Unable to find extension point configuration $configFilePath (cp:\n ${(Thread.currentThread().contextClassLoader as? UrlClassLoader)?.urls?.joinToString("\n ") { it.file }})")
|
||||
?: throw IllegalStateException(
|
||||
"Unable to find extension point configuration $configFilePath " +
|
||||
"(cp:\n ${(Thread.currentThread().contextClassLoader as? UrlClassLoader)?.urls?.joinToString("\n ") { it.file }})")
|
||||
|
||||
CoreApplicationEnvironment.registerExtensionPointAndExtensions(pluginRoot, configFilePath, Extensions.getRootArea())
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<project name="KotlinLexer" default="lexer">
|
||||
<property name="home" value="${basedir}"/>
|
||||
<property name="builddir" value="${basedir}/build"/>
|
||||
<property name="flex.classpath" value="${home}/../../dependencies/jflex/JFlex.jar"/>
|
||||
<property name="flex.classpath" value=""/>
|
||||
<property name="out.dir" value="${builddir}/tmpout"/>
|
||||
|
||||
<macrodef name="flex">
|
||||
|
||||
+4
-4
@@ -25,14 +25,14 @@ public abstract class AbstractAntTaskTest extends KotlinIntegrationTestBase {
|
||||
protected void doTest(String testFile) throws Exception {
|
||||
String testDataDir = new File(testFile).getAbsolutePath();
|
||||
|
||||
String antClasspath = System.getProperty("ant.classpath");
|
||||
String antClasspath = System.getProperty("kotlin.ant.classpath");
|
||||
if (antClasspath == null) {
|
||||
throw new RuntimeException("Unable to get a valid classpath from 'ant.classpath' property, please set it accordingly");
|
||||
throw new RuntimeException("Unable to get a valid classpath from 'kotlin.ant.classpath' property, please set it accordingly");
|
||||
}
|
||||
|
||||
String antLauncherClass = System.getProperty("ant.launcher.class");
|
||||
String antLauncherClass = System.getProperty("kotlin.ant.launcher.class");
|
||||
if (antLauncherClass == null) {
|
||||
throw new RuntimeException("Unable to get a valid class FQN from 'ant.launcher.class' property, please set it accordingly");
|
||||
throw new RuntimeException("Unable to get a valid class FQN from 'kotlin.ant.launcher.class' property, please set it accordingly");
|
||||
}
|
||||
|
||||
runJava(
|
||||
|
||||
Reference in New Issue
Block a user