Problems running examples

David B's Avatar

David B

26 Oct, 2011 05:30 PM

Any idea what I'm doing wrong? Somewhat new to both Flex and Gradle, so may not have compatible versions installed? Not sure...

Working with gradle milestone 5, GradleFx 3.1, running gradle build from...

multiproject-all-conventions

13:26:36.273 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
13:26:36.273 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.Exception: Compc compilation failed: Loading configuration file /opt/flex_sdk_4.5.1.21328/frameworks/flex-config.xml
13:26:36.273 [ERROR] [org.gradle.BuildExceptionReporter] command line: Error: unable to open '/src/main/actionscript'
13:26:36.274 [ERROR] [org.gradle.BuildExceptionReporter]
13:26:36.274 [ERROR] [org.gradle.BuildExceptionReporter] Use 'compc -help' for information about using the command line.
13:26:36.274 [ERROR] [org.gradle.BuildExceptionReporter] Adobe Compc (Flex Component Compiler)
13:26:36.275 [ERROR] [org.gradle.BuildExceptionReporter] Version 4.5.1 build 21328
13:26:36.275 [ERROR] [org.gradle.BuildExceptionReporter] Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
13:26:36.275 [ERROR] [org.gradle.BuildExceptionReporter]
13:26:36.275 [ERROR] [org.gradle.BuildExceptionReporter]
13:26:36.276 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradlefx.tasks.AbstractCompileTask.handleBuildIfFailed(AbstractCompileTask.groovy:65)
13:26:36.276 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradlefx.tasks.AbstractCompileTask$handleBuildIfFailed.callCurrent(Unknown Source)
13:26:36.276 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradlefx.tasks.Compc.compileFlex(Compc.groovy:48)
13:26:36.277 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158)
13:26:36.277 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93)
13:26:36.278 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradlefx.tasks.Compc_Decorated.invokeMethod(Unknown Source)
13:26:36.278 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
13:26:36.278 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129)
13:26:36.278 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127)
13:26:36.279 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63)
13:26:36.279 [ERROR] [org.gradle.BuildExceptionReporter] ... 37 more
13:26:36.279 [ERROR] [org.gradle.BuildExceptionReporter]

with no conventions

13:28:28.390 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: : /Users/dbashford/Documents/GradleFx-Examples/multiproject-no-conventions/client/null/ant/lib does not exist.
13:28:28.391 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
13:28:28.391 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.FileSet.iterator(FileSet.java:69)
13:28:28.392 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:123)
13:28:28.392 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.resources.Union.getCollection(Union.java:107)
13:28:28.393 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.cacheCollection(BaseResourceCollectionContainer.java:265)
13:28:28.393 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.iterator(BaseResourceCollectionContainer.java:142)

  1. Support Staff 1 Posted by Yennick Trevels on 26 Oct, 2011 07:37 PM

    Yennick Trevels's Avatar

    I tried the same with Gradle milestone 5 and GradleFx 3.1 and I'm not getting those errors. The only difference I can see is that you're using a Linux (or OSX) device, so it's probably a path issue. I'll have to see what the expected behaviour is for some gradle api calls on those operating systems.
    Can you log a bug for this in our issue tracker, you can find it here: https://github.com/GradleFx/GradleFx/issues

  2. Support Staff 2 Posted by Yennick Trevels on 09 Nov, 2011 07:44 PM

    Yennick Trevels's Avatar

    k, I got Ubuntu running in a virtual machine now (which was quite a hassle) and I'm able to reproduce the problem. I'll try to fix it asap.

  3. Support Staff 3 Posted by Yennick Trevels on 10 Nov, 2011 06:36 AM

    Yennick Trevels's Avatar

    I was able to fix the bug. Yesterday evening I released GradleFx v0.3.2 which contains the fix (Gradle 1.0 milestone 5 required).
    I also updated the example projects, so they should work too.
    The reason that you got the following error was because you didn't have the CUSTOM_FLEX_HOME environment variable which is used in the no-conventions example:
    "Caused by: : /Users/dbashford/Documents/GradleFx-Examples/multiproject-no-conventions/client/null/ant/lib does not exist." So we probably have to find a better way to notify that the flexHome variable is not available.
    Can you let me know if everything works ok now?

  4. Yennick Trevels closed this discussion on 27 Jan, 2012 12:34 PM.

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