Did you try my suggestions about picking up default FALCON/FALCONJX_HOME
selection from the main build.xml?

I think the downloads.xml in flex-sdk is not up to date.  Maybe it didn't
sync flex-sdk properly.

HTH,
-Alex

On 2/14/16, 4:23 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>Thanks. The file location was indeed a problem.
>
>I’m really suffering from not really understanding the whole process.
>
>Running ant on flex-asjs results in the following error:
>/Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following
>error occurred while executing this line:
>/Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1691: The following
>error occurred while executing this line:
>/Users/harbs/git/apache/flex/flex-sdk/build.xml:178: The following error
>occurred while executing this line:
>/Users/harbs/git/apache/flex/flex-sdk/modules/build.xml:64: The following
>error occurred while executing this line:
>/Users/harbs/git/apache/flex/flex-sdk/modules/downloads.xml:606: Can't
>get 
>https://search.maven.org/remotecontent?filepath=/org/apache/flex/flex-tool
>-api/1.0.0/flex-tool-api-1.0.0.jar to
>/Users/harbs/git/apache/flex/flex-sdk/in/flex-tool-api.jar
>
>
>When I try just  building XML, I tried pointing the falcon paths to 2
>separate places, and neither worked:
>
>Harbss-MacBook-Pro:XML harbs$ ant
>Buildfile: 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
>xml
>
>clean:
>
>compile-asjs:
>     [echo] properties:
>/Users/harbs/Documents/ApacheFlex/flex-asjs/env.properties
>     [echo] Cross-compiling XML-0.6.0.swc
>     [echo] FALCONJX_HOME:
>/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler.jx
>     [java] 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/src/ma
>in/resources/compile-asjs-config.xml:49
>     [java] unable to open
>'/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/externs/Core.swc'.
>     [java] 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/src/ma
>in/resources/compile-asjs-config.xml (line: 49)
>     [java]         </library-path>
>     [java] 
>     [java] 
>     [java] command line
>     [java] unable to open
>'/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/bin/js.swc'.
>     [java] 
>     [java] 
>     [java] command line
>     [java] unable to open
>'/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/GCL/out/bin/GCL.swc
>'.
>     [java] 
>     [java] 
>     [java] Java Result: 5
>
>compile-extern-swc:
>     [echo] Compiling target/externs/XML-0.6.0.swc
>     [echo] FLEX_HOME: /Users/harbs/Documents/ApacheFlex/flex-asjs
>     [echo] FALCON_HOME:
>/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
>  [taskdef] Could not load definitions from resource flexTasks.tasks. It
>could not be found.
>
>BUILD FAILED
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
>xml:151: Problem: failed to create task or type compc
>Cause: The name is undefined.
>Action: Check the spelling.
>Action: Check that any custom tasks/types have been declared.
>Action: Check that any <presetdef>/<macrodef> declarations have taken
>place.
>
>
>Total time: 0 seconds
>Harbss-MacBook-Pro:XML harbs$ ant
>Buildfile: 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
>xml
>
>clean:
>
>compile-asjs:
>     [echo] properties:
>/Users/harbs/Documents/ApacheFlex/flex-asjs/env.properties
>     [echo] Cross-compiling XML-0.6.0.swc
>     [echo] FALCONJX_HOME:
>/Users/harbs/Documents/ApacheFlex/ApproveFalcon/apache-flex-falconjx-0.5.0
>-src/compiler.jx
>     [java] 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/src/ma
>in/resources/compile-asjs-config.xml:49
>     [java] unable to open
>'/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/externs/Core.swc'.
>     [java] 
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/src/ma
>in/resources/compile-asjs-config.xml (line: 49)
>     [java]         </library-path>
>     [java] 
>     [java] 
>     [java] Java Result: 5
>
>compile-extern-swc:
>     [echo] Compiling target/externs/XML-0.6.0.swc
>     [echo] FLEX_HOME: /Users/harbs/Documents/ApacheFlex/flex-asjs
>     [echo] FALCON_HOME:
>/Users/harbs/Documents/ApacheFlex/ApproveFalcon/apache-flex-falconjx-0.5.0
>-src/compiler
>  [taskdef] Could not load definitions from resource flexTasks.tasks. It
>could not be found.
>
>BUILD FAILED
>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
>xml:151: Problem: failed to create task or type compc
>Cause: The name is undefined.
>Action: Check the spelling.
>Action: Check that any custom tasks/types have been declared.
>Action: Check that any <presetdef>/<macrodef> declarations have taken
>place.
>
>On Feb 12, 2016, at 5:12 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:
>
>>> I’m not exactly sure what the variables are supposed to point to
>> 
>> Check the READme file at the root of the repository. Be sure to read
>> through all of the numbered steps after the list of environment
>>variables.
>> The steps explain in more detail what paths you should be using. For
>> instance, it says that FALCON_HOME should include
>> compiler/generated/dist/sdk in the path.
>> 
>>> and I get the following errors:
>> 
>> Since it is echoing values like ${env.FALCONJX_HOME}, it doesn't seem
>>to be
>> finding your env.properties file. Did you save it in the root directory
>>of
>> the flex-asjs repository? Relative to your XML project, that would be
>> ../../../env.properties.
>> 
>> I just checked out your branch, and I ran ant in the
>> frameworks/projects/XML directory. It was able to find my env.properties
>> file, so perhaps your file is in the wrong location.
>> 
>> - Josh
>> 
>> 
>> 
>> On Fri, Feb 12, 2016 at 2:03 AM, Harbs <harbs.li...@gmail.com> wrote:
>> 
>>> I had already done pretty close to this (using outdated files, so I
>>>just
>>> updated it).
>>> 
>>> I’m running into environment variable issues again and I tried to set
>>>up a
>>> env.properties file to set them, but that’s not working. (I’m not
>>>exactly
>>> sure what the variables are supposed to point to)
>>> 
>>> Here’s the file I created:
>>> 
>>> 
>>>env.AIR_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/AIRSDK_Compile
>>>r
>>> 
>>>env.FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheFlex/frameworks/Fl
>>>ash
>>> Player Debugger.app/Contents/MacOS/Flash Player Debugger
>>> env.FALCON_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
>>> 
>>>env.FALCONJX_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
>>>.jx
>>> 
>>> and I get the following errors:
>>> compile-asjs:
>>>     [echo] Cross-compiling XML-0.6.0.swc
>>>     [echo] FALCONJX_HOME: ${env.FALCONJX_HOME}
>>>     [java] Error: Unable to access jarfile
>>> 
>>>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/${en
>>>v.FALCONJX_HOME}/lib/compc.jar
>>>     [java] Java Result: 1
>>> 
>>> compile-extern-swc:
>>>     [echo] Compiling target/externs/XML-0.6.0.swc
>>>     [echo] FLEX_HOME: /Users/harbs/Documents/ApacheFlex/flex-asjs
>>>     [echo] FALCON_HOME: ${env.FALCON_HOME}
>>> 
>>> 
>>> How do we simplify setting environment variables? What I’ve been doing
>>>is
>>> writing shell scripts for every custom build I do, but that’s
>>>ridiculous,
>>> and it creates a barrier for others wanting to get involved.
>>> 
>>> On Feb 11, 2016, at 5:59 PM, Alex Harui <aha...@adobe.com> wrote:
>>> 
>>>> IIRC, you are trying to get the build to work in a new XML folder?
>>>> 
>>>> In theory, you can copy any build.xml from, say Binding into the root
>>>>of
>>>> XML.  Open it and search for Binding and replace with XML.
>>>> 
>>>> Next, copy the src/main/resources folder from Binding.  Open
>>>> compile-config.xml and search and replace Binding.
>>>> 
>>>> Open compile-asjs-config.xml and do the same.
>>>> 
>>>> If you don't have a src/main/flex/XMLClasses.as file, create one and
>>>>list
>>>> the files you want to compile.  If you don't want a particular class
>>>>in
>>>> the AS version of the SWC, put it in a COMPILE::AS3 block.
>>>> 
>>>> Open basic-manifest.xml and comment everything out.  This is the list
>>>>of
>>>> components that go in MXML, but I think you are emulating classes that
>>> are
>>>> already in the fx: namespace so you shouldn't need anything.
>>>> 
>>>> Then running "ant" from XML should "do the right thing".
>>>> 
>>>> To integrate into the main build, open frameworks/build.xml, search
>>>>for
>>>> Binding and clone the patterns you see.
>>>> 
>>>> HTH,
>>>> -Alex
>>>> 
>>>> On 2/11/16, 1:25 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>>>> 
>>>>> OK. I merged and copied the new folder structure. Unfortunately I
>>>>>have
>>> no
>>>>> idea how to set up the compilation. I just copied the folder
>>>>>structure
>>>>> like a monkey, but I have no idea how it’s supposed to work.
>>>>> 
>>>>> Can someone help me set up the scripts so it can actually compile
>>>>> something? Once I understand how the compilation is supposed to
>>>>>work, I
>>>>> can continue with this.
>>>>> 
>>>>> Harbs
>>>>> 
>>>>> On Feb 11, 2016, at 10:56 AM, Harbs <harbs.li...@gmail.com> wrote:
>>>>> 
>>>>>> OK. I’m up to #2. I know of a number of problems/holes in the
>>>>>> implementation as it stands and there’s probably a lot of problems
>>>>>>I’m
>>>>>> not aware of, but I’m going to try to get to the point where this
>>>>>> compiles and actually does something to make the problems more
>>>>>>visible.
>>>>>> 
>>>>>> Maybe some other folks can even help at that point… ;-)
>>>>>> 
>>>>>> On Feb 8, 2016, at 11:00 AM, Harbs <harbs.li...@gmail.com> wrote:
>>>>>> 
>>>>>>> So here’s my current plan:
>>>>>>> 1. Finish up the methods (minus filtering) in the next day or two.
>>>>>>> 2. Sync up XML with the current FlexJS folder structure and get
>>>>>>>rid of
>>>>>>> some junk (like all the JXON classes).
>>>>>>> 3. Get this all to compile.
>>>>>>> 4. Figure out the whole filtering issue.
>>>>>>> 5. Create test cases.
>>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>

Reply via email to