@@ -78,8 +78,14 @@ def openApiCliFile = file(projDir + project.properties['codewind.core.prereqlib.
7878
7979def filePrefix = " codewind-openapi-eclipse"
8080
81+ def swtBotEclipseFinderFile = file(projDir + project. properties[' eclipse.target.platform.ies.folder' ] + ' /eclipse/dropins/plugins/org.eclipse.swtbot.eclipse.finder_2.8.0.201906121535.jar' )
82+ def swtBotJunitFile = file(projDir + project. properties[' eclipse.target.platform.ies.folder' ] + ' /eclipse/dropins/plugins/org.eclipse.swtbot.junit4_x_2.8.0.201906121535.jar' )
83+ def swtBotSwtFile = file(projDir + project. properties[' eclipse.target.platform.ies.folder' ] + ' /eclipse/dropins/plugins/org.eclipse.swtbot.swt.finder_2.8.0.201906121535.jar' )
8184
82- // Download dependent plugins from maven repository for 'org.eclipse.codewind.core'
85+
86+
87+
88+ // Download dependent plugins from maven repository for 'org.eclipse.codewind.openapi.core'
8389task getCoreDependencies (type : Copy ) {
8490
8591 if (! corelibFolder. exists()) {
@@ -107,6 +113,26 @@ task downloadOpenApiCli(type: Download) {
107113 target = openApiCliFile
108114}
109115
116+ task downloadSWTBotEclipseFinderJar (type : Download ) {
117+ println (" Downloading SWTBot Eclipse Finder jar" )
118+ sourceUrl= ' http://download.eclipse.org/technology/swtbot/releases/latest/plugins/org.eclipse.swtbot.eclipse.finder_2.8.0.201906121535.jar'
119+ target= swtBotEclipseFinderFile
120+ }
121+
122+ task downloadSWTBotJunitJar (type : Download ) {
123+ println (" Downloading SWTBot Junit jar" )
124+ sourceUrl= ' http://download.eclipse.org/technology/swtbot/releases/latest/plugins/org.eclipse.swtbot.junit4_x_2.8.0.201906121535.jar'
125+ target= swtBotJunitFile
126+ }
127+
128+ task downloadSWTBotSwtJar (type : Download ) {
129+ println (" Downloading SWTBot SWT jar" )
130+ sourceUrl= ' http://download.eclipse.org/technology/swtbot/releases/latest/plugins/org.eclipse.swtbot.swt.finder_2.8.0.201906121535.jar'
131+ target= swtBotSwtFile
132+ }
133+
134+
135+
110136class Download extends DefaultTask {
111137 @Input
112138 String sourceUrl
@@ -220,6 +246,11 @@ preparePrereqsIvy.dependsOn importAnt
220246compile. dependsOn preparePrereqsIvy
221247compile. dependsOn downloadEclipseSDK
222248compile. dependsOn downloadEclipseTargetPlatform
249+ compile. dependsOn downloadSWTBotEclipseFinderJar
250+ compile. dependsOn downloadSWTBotJunitJar
251+ compile. dependsOn downloadSWTBotSwtJar
252+
253+
223254
224255// // build version from the artifacts to avoid version mismatch
225256import static groovy.io.FileType.FILES
0 commit comments