Skip to content

Commit

Permalink
build: fix test.product missing dependencies
Browse files Browse the repository at this point in the history
ING-3267
  • Loading branch information
kapil-agnihotri committed Nov 11, 2022
1 parent a2d056a commit 01060d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/gradle/commitAndProductionStage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ task packageProduct(dependsOn: buildProduct) {
*/
def runTests(args = []) {
def productOutputPath = new File(buildDir, getProductUid())
//def launcherName = project.ext.testProductLauncher?:'eclipse'
def launcherName = project.ext.testProductLauncher?:'eclipse'
def testReportDir = project.file('target/testReports')
testReportDir.mkdirs()
Expand All @@ -1120,11 +1121,11 @@ def runTests(args = []) {
outFile.delete()
errFile.delete()
reportFile.delete()

// make launcher executable
ant.chmod(file: launcherFile, perm:'a+x')
// make JRE executable (linux)
ant.chmod(dir: new File(productOutputPath, 'jre/bin'), perm: 'a+x', includes: '*')
ant.chmod(dir: new File(productOutputPath, 'Eclipse.app/Contents/Eclipse/jre/Contents/Home/bin'), perm: 'a+x', includes: '*')

println 'Starting test product...'
outFile.withOutputStream { out ->
Expand Down

0 comments on commit 01060d3

Please sign in to comment.