tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/42-building-robotlegs-2Robotlegs: Discussion 2018-10-18T16:35:41Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-30T07:18:19Z2012-07-30T07:18:19ZBuilding Robotlegs 2<div><p>I am sorry if this is a dump question... but I couldn't find any
information on how to build Robotlegs 2.</p>
<p>I downloaded the zip file from git, extracted it, and attempted
to "Import Flash Builder Project" but the folder wasn't recognized
as a Flash Builder project.</p>
<p>Looking again at the git page, it says "Using ANT: ant
package"... which didn't make sense to me as I never used ANT.</p>
<p>I checked the forums but no answers there too... so I downloaded
ant, installed it on my machine, and I can run "ant -version" and
see the result successfully. Now the question is:</p>
<p>How to I build Robotlegs 2?</p>
<p>Thanks for the help :)</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-30T07:29:18Z2012-07-30T07:29:18ZBuilding Robotlegs 2<div><p>Hi,</p>
<p>Building by ANT is I think the simplest one. Just download
<a href=
"http://ftp.ps.pl/pub/apache//ant/binaries/apache-ant-1.8.4-bin.zip">
ANT binaries</a>. Then add ANT paths to the system command line
(google for "install ant on (windows or mac)". Then open your
robotlegs folder in the command line and just type ant. Then it
should run all the test and build the project.</p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-30T07:37:35Z2012-07-30T07:37:35ZBuilding Robotlegs 2<div><p>Thanks a lot Michal... you beat me to the answer :)</p>
<p>It was a dump question after all...<br>
Using the command line, I navigated to the extracted Robotlegs 2
folder, typed: ant<br>
that was it... :)</p>
<p>However, I didn't have the "FLEX_HOME" variable in my
environment variables, to I added that and made it point to my Flex
SDK 4.6.</p>
<p>Now, the other problem that I faced is when it is trying to
build, it starts showing some lines with the [flexunit] tag, it
continues little bit but then fails with "socket timeout".. here is
a snapshot of whats going on.</p>
<pre>
<code>[flexunit] Executing 'rundll32' with arguments:
[flexunit] 'url.dll,FileProtocolHandler'
[flexunit] 'G:\Barjawi\Workplace\FlexProjects\robotlegs-robotlegs-framework\bin\TestRunner.swf'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...
BUILD FAILED
G:\Barjawi\Workplace\FlexProjects\robotlegs-robotlegs-framework\build.xml:99: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)</code>
</pre>
<p>I tried turning off my firewall and trying again, but same
result.</p>
<p>Now my questions:</p>
<ul>
<li>
<p>how to fix this?</p>
</li>
<li>
<p>if this is just a test that failed... then does this mean the
robotlegs swc built is a success?</p>
</li>
</ul>
<p>Thanks for the help</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-30T07:52:44Z2012-07-30T08:06:39ZBuilding Robotlegs 2<div><p>To fix this problem run tests with debug flash player version.
Just download any debug player version (if you don't have one) and
open flash player (it shall set this executable as default). Then
run the ant again. If you get this again you can just skip test
part of ant script calling "ant compile"</p>
<p>Cheers,<br>
Mike</p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-31T03:35:36Z2012-07-31T03:35:36ZBuilding Robotlegs 2<div><p><code>ant compile</code> worked for me. I tried downloading
Flash Player 11.3 Projector content debugger, ran the application,
it opened the flash player window... but still the <code>ant</code>
command didn't finish the tests.</p>
<p>I also tried installing the FP 11.3 ActiveX control content
debugger for IE, same results as before.</p>
<p>I am happy with only compiling the RL2... however, it is
annoying that I cannot get it to fully run the tests... any other
quick suggestions?</p>
<p>Thanks</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-07-31T07:56:27Z2012-07-31T07:56:27ZBuilding Robotlegs 2<div><p>Can you try opening any swf file and check if it's a debugger or
release version of Flash Player (default player) If not you have to
make any Debug version a default one.</p>
<p>Also can you check what version (debug or release) of Flash
Player is opened during the test? There should be small window
opened.</p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/176912772012-08-02T09:50:12Z2012-08-02T09:50:12ZBuilding Robotlegs 2<div><p>That worked perfectly...</p>
<p>I attempted to open a swf, which prompted me to select a default
application, once I selected the debugger version and ran that swf,
I attempted <code>ant</code> again and it worked successfully.</p>
<p>Thanks you so much.</p></div>mbarjawi