[gnome-builder] plugins: Set builddir explicitly
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins: Set builddir explicitly
- Date: Mon, 18 Jul 2022 15:57:34 +0000 (UTC)
commit c35b657cff52dca28093c1d339e1cb16b5a42423
Author: JCWasmx86 <JCWasmx86 t-online de>
Date: Sat Jul 16 11:07:46 2022 +0200
plugins: Set builddir explicitly
For maven and gradle
src/plugins/gradle/gbp-gradle-build-system.c | 8 ++++++++
src/plugins/maven/gbp-maven-build-system.c | 8 ++++++++
2 files changed, 16 insertions(+)
---
diff --git a/src/plugins/gradle/gbp-gradle-build-system.c b/src/plugins/gradle/gbp-gradle-build-system.c
index bdbc61de7..b87d9087c 100644
--- a/src/plugins/gradle/gbp-gradle-build-system.c
+++ b/src/plugins/gradle/gbp-gradle-build-system.c
@@ -54,12 +54,20 @@ gbp_gradle_build_system_get_priority (IdeBuildSystem *build_system)
return 2000;
}
+static gchar *
+gbp_gradle_build_system_get_builddir (IdeBuildSystem *build_system,
+ IdePipeline *pipeline)
+{
+ return g_strdup (ide_pipeline_get_srcdir (pipeline));
+}
+
static void
build_system_iface_init (IdeBuildSystemInterface *iface)
{
iface->get_id = gbp_gradle_build_system_get_id;
iface->get_display_name = gbp_gradle_build_system_get_display_name;
iface->get_priority = gbp_gradle_build_system_get_priority;
+ iface->get_builddir = gbp_gradle_build_system_get_builddir;
}
G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGradleBuildSystem, gbp_gradle_build_system, IDE_TYPE_OBJECT,
diff --git a/src/plugins/maven/gbp-maven-build-system.c b/src/plugins/maven/gbp-maven-build-system.c
index dd762ec1f..ae26f883d 100644
--- a/src/plugins/maven/gbp-maven-build-system.c
+++ b/src/plugins/maven/gbp-maven-build-system.c
@@ -54,12 +54,20 @@ gbp_maven_build_system_get_priority (IdeBuildSystem *build_system)
return 2000;
}
+static gchar *
+gbp_maven_build_system_get_builddir (IdeBuildSystem *build_system,
+ IdePipeline *pipeline)
+{
+ return g_strdup (ide_pipeline_get_srcdir (pipeline));
+}
+
static void
build_system_iface_init (IdeBuildSystemInterface *iface)
{
iface->get_id = gbp_maven_build_system_get_id;
iface->get_display_name = gbp_maven_build_system_get_display_name;
iface->get_priority = gbp_maven_build_system_get_priority;
+ iface->get_builddir = gbp_maven_build_system_get_builddir;
}
G_DEFINE_FINAL_TYPE_WITH_CODE (GbpMavenBuildSystem, gbp_maven_build_system, IDE_TYPE_OBJECT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]