Ack. PEBCAK…

The path was wrong.

On Oct 20, 2015, at 1:45 PM, Harbs <harbs.li...@gmail.com> wrote:

> It seems like the problem was that I did not have ant specified in the 
> ANT_HOME path. Odd. I thought it should be the parent directory.
> 
> I’m now getting the following error:
> BUILD FAILED
> /Users/harbs/Documents/ApacheFlex/FlexJS0.5.0/ApproveFlexJS.xml:111: The 
> FLASHPLAYER_DEBUGGER property is not set in environment or command-line.
> 
> Here’s the contents of my script:
> 
> export FALCON_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon
> export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheFlex/flex-flexunit
> export FLEX_HOME=/Users/harbs/Documents/ApacheFlex/flex-sdk 
> export AIR_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/AIRSDK_Compiler
> export 
> PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/libs/player 
> export 
> FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheFlex/frameworks/Flash\ 
> Player.app/Contents/MacOS/Flash\ Player\ Debugger
> export ANT_HOME=/usr/local/Cellar/ant/1.9.4/libexec/bin/ant
> ant -e -f ApproveFlexJS.xml -Drelease.version=0.5.0
> 
> I’m not sure why it thinks the property is not set…
> 
> On Oct 20, 2015, at 12:58 PM, Maxim Solodovnik <solomax...@gmail.com> wrote:
> 
>> Unfortunately I have no MacOSX to test it :(
>> you can
>> 1) google the answer
>> 2) download ant binary distribution, unzip it somethere, set ANT_HOME and
>> links to /usr/local/bin/ant
>> 
>> On Tue, Oct 20, 2015 at 3:53 PM, Harbs <harbs.li...@gmail.com> wrote:
>> 
>>> Here’s the thing:
>>> 
>>> Harbss-MacBook-Pro:~ harbs$ which ant
>>> /usr/local/bin/ant
>>> Harbss-MacBook-Pro:~ harbs$ whereis ant
>>> Harbss-MacBook-Pro:~ harbs$
>>> 
>>> I got that location from which.
>>> whereis does not find ant at all.
>>> IIRC, I installed ant using homebrew.
>>> 
>>> On Oct 20, 2015, at 12:41 PM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>> 
>>>> the problem is here: export ANT_HOME=/usr/local/bin
>>>> ANT_HOME should point to the location you have unzipped ANT binary
>>>> distribution
>>>> not sure where should it point in case of "apt-get" installed ant :)
>>>> 
>>>> On Tue, Oct 20, 2015 at 3:13 PM, Harbs <harbs.li...@gmail.com> wrote:
>>>> 
>>>>> I’m getting the following erros when I try the script:
>>>>> (build.sh is a shell script I wrote which sets the env vars and runs ant
>>>>> -e -f ApproveFlexJS.xml -Drelease.version=0.5.0
>>>>> 
>>>>> As you can see, I then set ANT_HOME and ran the command manually, and it
>>>>> still failed.
>>>>> 
>>>>> Harbss-MacBook-Pro:~ harbs$ cd
>>>>> /Users/harbs/Documents/ApacheFlex/FlexJS0.5.0
>>>>> Harbss-MacBook-Pro:FlexJS0.5.0 harbs$
>>>>> /Users/harbs/Documents/ApacheFlex/FlexJS0.5.0/build.sh
>>>>> Buildfile:
>>> /Users/harbs/Documents/ApacheFlex/FlexJS0.5.0/ApproveFlexJS.xml
>>>>> 
>>>>> BUILD FAILED
>>>>> /Users/harbs/Documents/ApacheFlex/FlexJS0.5.0/ApproveFlexJS.xml:86: The
>>>>> ANT_HOME environment variable is not set.
>>>>> 
>>>>> Total time: 0 seconds
>>>>> Harbss-MacBook-Pro:FlexJS0.5.0 harbs$ export ANT_HOME=/usr/local/bin
>>>>> Harbss-MacBook-Pro:FlexJS0.5.0 harbs$ ant -e -f ApproveFlexJS.xml
>>>>> -Drelease.version=0.5.0
>>>>> Error: Could not find or load main class
>>>>> org.apache.tools.ant.launch.Launcher
>>>>> Harbss-MacBook-Pro:FlexJS0.5.0 harbs$
>>>>> On Oct 16, 2015, at 6:44 AM, Alex Harui <aha...@adobe.com> wrote:
>>>>> 
>>>>> This is the ant version I have:
>>>>> Apache Ant(TM) version 1.9.4 compiled on April 29 2014
>>>>> 
>>>>> Any ideas on what’s wrong?
>>>>> 
>>>>>> OK, seems to be working now.  I added building the examples to the
>>>>> script.
>>>>>> It took 12 minutes just to download and build everything on my system.
>>>>>> 
>>>>>> Let me know if it works for you.
>>>>>> 
>>>>>> -Alex
>>>>>> 
>>>>>> 0) Make sure Ant and Java are in the path, and set up AIR_HOME,
>>>>>> PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER environment variables if you
>>>>>> haven’t already.  Then:
>>>>>> 1) create an empty folder.
>>>>>> 2) Copy ApproveFlexJS.xml from the flex-asjs repo or download it here
>>>>>> [1] and copy it into the empty folder
>>>>>> 3) From the empty folder, run ‘ant -e -f ApproveFlexJS.xml
>>>>>> -Drelease.version=0.5.0’
>>>>>> 
>>>>>> If you want to grab the bits manually, they are here [2].
>>>>>> 
>>>>>> 
>>>>>> [1]
>>>>>> 
>>>>> 
>>> https://git-wip-us.apache.org/repos/asf/flex-sdk/repo?p=flex-asjs.git;a=blo
>>>>>> b_plain;f=ApproveFlexJS.xml;hb=refs/heads/develop
>>>>>> [2]
>>>>>> 
>>>>> 
>>> http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/
>>>>>> artifact/out/
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>> 
>>> 
>> 
>> 
>> -- 
>> WBR
>> Maxim aka solomax
> 

Reply via email to