Build fails only in Linux
I am trying to create an SWC library using gradle build. I was successful buildingin Windows but facing build failures in all Linux boxes.
Below is the log.
15:51:08.697 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:51:08.697 [ERROR] [org.gradle.BuildExceptionReporter]
15:51:08.698 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
15:51:08.698 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/opt/hd/dt/var/home/devtools0/workspace/ESVS_SFAPI/build.gradle' line: 125
15:51:08.698 [ERROR] [org.gradle.BuildExceptionReporter]
15:51:08.698 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:51:08.699 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':compileFlex'.
15:51:08.699 [ERROR] [org.gradle.BuildExceptionReporter] >*** java.lang.Exception: compc execution failed: Loading configuration file /opt/hd/dt/var/home/devtools0/workspace/ESVS_SFAPI/gradleFx/sdks/aefed87a3e85c627b8561ec67ac39dd862c971ec/frameworks/flex-config.xml***
15:51:08.699 [ERROR] [org.gradle.BuildExceptionReporter] Apache Flex compc (Component Compiler)
15:51:08.699 [ERROR] [org.gradle.BuildExceptionReporter] Version 4.15.0 build 20160104
15:51:08.699 [ERROR] [org.gradle.BuildExceptionReporter] Copyright 2016 The Apache Software Foundation.
15:51:08.700 [ERROR] [org.gradle.BuildExceptionReporter] Error: nothing was specified to be included in the library
15:51:08.700 [ERROR] [org.gradle.BuildExceptionReporter]
15:51:08.700 [ERROR] [org.gradle.BuildExceptionReporter] Use 'compc -help' for information about using the command line.
15:51:08.700 [ERROR] [org.gradle.BuildExceptionReporter]
15:51:08.700 [ERROR] [org.gradle.BuildExceptionReporter]
15:51:08.701 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
15:51:08.701 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
15:51:08.701 [LIFECYCLE] [org.gradle.BuildResultLogger]
15:51:08.702 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
**GRADLE**
buildscript {
repositories {
maven { url "${artifactory_cache_contextUrl}" }
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '1.2.0'
}
}
apply plugin: 'gradlefx'
//-----------------------------//
// Add Flex SDK
//-----------------------------//
repositories {
maven { url "${artifactory_contextUrl}" }
}
dependencies {
flexSDK group: 'com/xxxxxxx', name: 'apache-flex-sdk', version: '4.15.0', ext: 'zip'
}
sdkAutoInstall {
showPrompts = false
}
//-----------------------------//
// Project Properties
//-----------------------------//
type = 'swc'
String outputFile = "sfapi"
//-----------------------------//
// Compiler Settings
//-----------------------------//
/*
def List<String> prodOptions = [
'-debug=false',
'-optimize=true',
'-strict=true',
'-target-player=20.0',
'-allow-source-path-overlap=true',
'-incremental=false',
'-runtime-shared-library-path=',
'-warnings=false'
]
jvmArguments = [
'-Xmx512m',
'-Xms512m'
]
//////////////////////////////////////////////////////////////
////////////////////////// TASKS /////////////////////////////
//////////////////////////////////////////////////////////////
defaultTasks 'prodBuild'
compileFlex {
srcDirs = ['/src']
output = outputFile
}
task Compile << {
println('\n\n-------------------- START Compile --------------------------\n')
compileFlex.execute()
println('\n------------------- Compile COMPLETE ------------------------\n\n')
}
task prodBuild << {
// additionalCompilerOptions = prodOptions
Compile.execute()
}
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Yennick Trevels on 18 Mar, 2017 03:43 PM
Is there a specific reason why you define the srcDirs property in a compileFlex block? Standard usage of this property is directly at the root. This might explain the "nothing was specified to be included in the library" error you're seeing.
2 Posted by Guna on 19 Mar, 2017 04:39 AM
Thanks for your response... We finally figured out the issue. All we had to do was adding a dot in front of /src.
srcDirs = ['./src']
Yennick Trevels closed this discussion on 19 Mar, 2017 07:11 AM.