Skip to content

Commit

Permalink
Import Gradle project via Buildship if Gradle Build Server is not ava…
Browse files Browse the repository at this point in the history
…ilable

Signed-off-by: Sheng Chen <sheche@microsoft.com>
  • Loading branch information
jdneo committed Aug 21, 2024
1 parent 365d396 commit 176d9a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public boolean applies(IProgressMonitor monitor) throws CoreException {
.addExclusions("**/build")//default gradle build dir
.addExclusions("**/bin");
for (IProject project : ProjectUtils.getAllProjects()) {
if (!ProjectUtils.isGradleProject(project)) {
if (!ProjectUtils.isGradleProject(project) && !project.hasNature("com.microsoft.gradle.bs.importer.GradleBuildServerProjectNature")) {
String path = project.getLocation().toOSString();
gradleDetector.addExclusions(path.replace("\\", "\\\\"));
}
Expand Down

0 comments on commit 176d9a4

Please sign in to comment.