determine plugin dir for eclipse builds
diff --git a/bundles/org.eclipse.swt.gtk.linux.s390x/build.xml b/bundles/org.eclipse.swt.gtk.linux.s390x/build.xml
index 6a2280b..1061091 100644
--- a/bundles/org.eclipse.swt.gtk.linux.s390x/build.xml
+++ b/bundles/org.eclipse.swt.gtk.linux.s390x/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="org.eclipse.swt.gtk.linux.s390x" default="build.jars" basedir="../../..">
+<project name="org.eclipse.swt.gtk.linux.s390x" default="build.jars" basedir=".">
<property name="swt.ws" value="gtk" />
<property name="swt.os" value="linux" />
@@ -9,6 +9,9 @@
<!-- These properties are used by eclipse when exporting as Deployable plugin and fragments -->
<property name="version.suffix" value="3.8.0" />
- <import file="../../../eclipse.platform.swt/bundles/org.eclipse.swt/buildFragment.xml"/>
- <import file="../../../eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml"/>
+ <condition property="pluginroot" value="../../../eclipse.platform.swt/bundles" else="${buildDirectory}/plugins">
+ <available file="../../../eclipse.platform.swt/bundles" type="dir"/>
+ </condition>
+ <import file="${pluginroot}/org.eclipse.swt/buildFragment.xml"/>
+ <import file="${pluginroot}/org.eclipse.swt/buildSWT.xml"/>
</project>
\ No newline at end of file