FlexUnit
Hi
I am getting the error below every time I execute "gradle test". All the required environment variables have been properly setup on my MAC, including FLASH_PLAYER_EXE. I also
Chmod 777 Flash_Player_Debugger.app
to rule out any possible file access problem.
Any Idea what I might be doing wrong?
Thanks in advance.
## ERROR ###
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> java.io.IOException: Cannot run program "/flex/Flash_Player_Debugger.app" (in directory "/Users/jhon/NetBeansProjects/ProServASLib"): error=13, Permission denied
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
####################
# BUILD FILE ###
####################
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.6'
}
}
apply plugin: 'gradlefx'
type = 'swc'
srcDirs = ['src/']
resourceDirs = ['assets/']
testDirs = ['test']
testResourceDirs = ['test/testresources']
//will create the documentation in the %projectdir%/api folder
asdoc.outputDir = 'api'
fatSwc = true
frameworkLinkage='external'
def flexunitHome = System.getenv()['FLEXUNIT_HOME']
println flexunitHome
// Option necessary to embed configuration file to cuePoint class.
//additionalCompilerOptions = [
//'-static-link-runtime-shared-libraries=false'
// ]
// exclude FlexUnitApplication.mxml dependency added by Flash Builder
//asdoc.additionalASDocOptions = [
// '-exclude-sources=' + project.file('src/FlexUnitApplication.mxml').path
//]
// end all your test class names with “Test.as” to include them to Unit test
flexUnit {
includes = ['**/*Test.as']
}
dependencies {
//merged files('lib/as3corelib.swc')
external fileTree(dir: 'lib/', include: '*.swc')
test files("${flexunitHome}/flexunit-4.1.0-8-flex_4.1.0.16076.swc",
"${flexunitHome}/flexUnitTasks-4.1.0-8.jar",
"${flexunitHome}/flexunit-cilistener-4.1.0-8-4.1.0.16076.swc")
}
// Delete FlashBuilder auto-generated FlexUnitApplication.mxml
afterEvaluate {
compileFlex.doFirst {
project.file('src/FlexUnitApplication.mxml').delete()
}
}
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 Sep, 2013 10:26 PM
Hi Jhon,
Maybe this helps you:
http://stackoverflow.com/questions/15882012/permission-denied-error...
It's the same problem, but by using the FlexUnit ant task directly (which GradleFx is using internally).
2 Posted by Jhon on 19 Sep, 2013 12:12 AM
Thanks Yennick, Problem solved.