You can use this command at the same location as ant script to build swt jars.
$> mvn clean verify -Pbuild-individual-bundles
Please take a look at https://git.eclipse.org/c/platform/eclipse.platform.swt.binaries.git/tree/bundles/org.eclipse.swt.gtk.linux.x86_64/mvnBuildSwtJar.sh. This script is written to build swt natives and swt jars together using maven
PS: maven build also uses ant internally.
Thanks and Regards,
Sravan
Sravan Kumar Lakkimsetti
IBM India Pvt Ltd,
Embassy Golf Links Business Park, C Block,
Off Indiranagar-Kormangla Inner Ring Road,
Bangalore - 560071, India
From: Gayan Perera <gayanper@xxxxxxxxx>
Sent: 09 May 2021 22:58
To: Eclipse platform general developers list. <platform-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [platform-dev] Building platform.swt locally
Hi all,
I'm working on https://bugs.eclipse.org/bugs/show_bug.cgi?id=573016 and just want to make a local build of org.eclipse.swt and get the jar file to patch my eclipse installation. I have a bash script which can create a patch jar which will only contain the classes in the commit. So i can manually replace the installation jar with the modified classes. I have been doing this for jdt modules.
But when try to build swt project, i cannot get the jar file which contains the compiled classes. Is there a special set of steps i need to run to get the jar file ?