-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Flex Home Dependency for Java Ant #938
Comments
As I have expressed my thought to @JoelProminic earlier that this popup/tab was a very old implementation. Probably in earlier days of Moonshine this tab/popup being created to support Flex (mainly) project build with Ant in a pre-conditioned state. I don't think this popup/tab is valid anymore since many changes on handling underlying SDKs in Moonshine. However, this also triggered for me recently 2/3 times during my tests with #932 , else I forgot about this popup. Looking into the codes for I made sure that this popup will not trigger anymore. If default-SDK is missing and running Ant script requires any particular SDK - the Ant script itself needs to be responsible to notify accordingly. In case of Ant path is missing then Moonshine will open its Settings page in a fashioned manner. Please, check. (On a side note, I felt this plugin class is way too complicated to understand, it's possible because of many conditional state it's checking. But still I think this class requires a thorough cleanup. Currently this not scope of this issue, so I leave it alone.) |
When I tried running an Ant script with
When I then tried When I tried Could this error have triggered because the Ant dialog was removed? |
Testing with a Flex project from the Moonshine template, I see that the main build actions fail in the compileAIR step. I can't see the original error because of #932 Right-click > Run Ant File
However, Others > Build Apache Ant File reports an error for FLEX_HOME:
Do you run the environment script before this last case? The first two cases get past this line, so I think they are working properly |
We discussed on how environment-variable sets in Moonshine and why I'll recheck the procedures in |
@JoelProminic In case of Ant build run, Moonshine does respect a project's custom-set-SDK, opposing my earlier thought on this.
In case no custom SDK set, Moonshine tries to look into the default-SDK. |
I able to produce this error when running an Ant build script inside a Java project. It appears that the process was trying to determine the targeted-project is an AS3 project instead any other, causing certain field a I have adjusted the codes to determine properties based on base Please, check. |
I confirmed that the project-specific SDK setting is respective. I haven't been able to reproduce the 1009 error on the first script run, but this triggered inconsistently before. I'll watch for it to trigger again. |
How specialized is the environment logic for Ant scripts currently? If we aren't doing it already, could we reuse the environment variable script we use for other commands? This should be more robust when working with other SDKs (though DYLD_LIBRARY_PATH won't work - see #930) |
The environment set logic runs before running any compilation/build mostly, this includes Ant run. The logic is a central API and sets a set of variables every time (with special variations where applicable). Talking on special variations, in case of Ant build we run the environment logic with some variations. We sets Currently, |
We will work on standardizing the environment for this in #949 |
Currently, when I try to run an Ant script in Moonshine (i.e. for #668), I am prompted to set Flex Home. However, this setting does not make sense for Java projects, and in the case that a user only wants to use Moonshine for JAVA, this would be frustrating.
I think this prompt is generally unnecessarily now - instead, we should rely on the script that sets the environment to match the Moonshine settings.
Unfortunately, this error triggers very inconsistently for me. I have seen it the first time when running an Ant file after updating, but it didn't trigger after restarting Moonshine.
I assigned this to 3.3.0, but it could easily be moved to a later release if it is not an easy fix.
The text was updated successfully, but these errors were encountered: