Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions third_party/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ tasks {
wrapper {
gradleVersion = providers.gradleProperty("gradleVersion").get()
}
test {
// TODO figure out how to not need the sdk path hard coded:
// Replace the [Dart SDK Path] to run the Dart Analysis Server tests
jvmArgs("-Ddart.sdk=[Dart SDK path]]")
}
}

// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-faq.html#how-to-check-the-latest-available-eap-release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ private static String findTestDataPath() {
return FileUtil.toSystemIndependentName(PathManager.getHomePath() + "/contrib/Dart/testData");
}

final File f = new File("testData");
final File f = new File("src/test/testData");
if (f.isDirectory()) {
// started from 'Dart-plugin' project
return FileUtil.toSystemIndependentName(f.getAbsolutePath());
}

final String parentPath = PathUtil.getParentPath(PathManager.getHomePath());

if (new File(parentPath + "/intellij-plugins").isDirectory()) {
if (new File(parentPath + "/dart-intellij-third-party").isDirectory()) {
// started from IntelliJ IDEA Community Edition + Dart Plugin project
return FileUtil.toSystemIndependentName(parentPath + "/intellij-plugins/Dart/testData");
return FileUtil.toSystemIndependentName(parentPath + "/dart-intellij-third-party/third_party/src/test/testData");
}

if (new File(parentPath + "/contrib").isDirectory()) {
Expand Down
Loading