tag:blogger.com,1999:blog-5906236296724437200.post8614846586061500253..comments2010-12-13T10:13:36.161+02:00Comments on FCSH Wrapper: How to use fcshWrapperMihai Vasilachehttp://www.blogger.com/profile/15904989253787343185noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-5906236296724437200.post-68899750971388548162009-09-02T13:52:07.948+03:002009-09-02T13:52:07.948+03:00I tried to implement the sample program which you ...I tried to implement the sample program which you have mentioned in the blog. My build failed with the following trace.<br /><br />" C:\Fwrapper>ant -f c:\Fwrapper\testScript.xml<br />Buildfile: c:\Fwrapper\testScript.xml<br /><br />all:<br />Nobody listening on 52797...<br />Timeout detected!<br />Aborting lunch!<br />[Wrapper STDOUT] terminated!<br /> -- BEGIN Wrapper STDOUT:<br />[Wrapper STDERR] terminated!<br />Finishing connection:<br /><br /> -- END Wrapper STDOUT;<br />Finishing connection:<br />Finishing connection:<br /> -- BEGIN Wrapper STDERR:<br />Exception in thread "main" java.io.IOException: CreateProcess: C:\cc_temp\kaparame-aug31\counterpoint\cp\dev\flexsdk\bin\fcsh.exe error=2<br /> at java.lang.ProcessImpl.create(Native Method)<br /> at java.lang.ProcessImpl.[init](ProcessImpl.java:81)<br /> at java.lang.ProcessImpl.start(ProcessImpl.java:30)<br /> at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)<br /> at ro.arhinet.fcshwrapper.wrapper.FcshProcessWrapper.[init](FcshProcessWrapper.java:39)<br /> at ro.arhinet.fcshwrapper.wrapper.FcshProcessWrapper.startFcshProcess(FcshProcessWrapper.java:31)<br /> at ro.arhinet.fcshwrapper.wrapper.Main.main(Main.java:19)<br /> -- END Wrapper STDERR;<br /><br />BUILD FAILED<br />c:\Fwrapper\testScript.xml:17: Unable to send command to server!<br /><br />Total time: 11 seconds<br />C:\Fwrapper>ant -f c:\Fwrapper\testScript.xml. "<br /><br /><br />So what this exactly means... Does the wrapper expects fcsh.exe to be there somewhere in my project specific location???????????unprejudicedVisionhttps://www.blogger.com/profile/15411663424060956510noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-66700973073779878032008-08-19T22:55:00.000+03:002008-08-19T22:55:00.000+03:00I searched a little on net. I found this:http://li...I searched a little on net. I found this:<BR/>http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001517.html#182413<BR/><BR/>"Errors and warnings are reported differently, depending on which compiler you are using. The mxmlc and compc command-line compilers send error and warning messages to the standard output.".... <BR/>Maybe you can send me your email (mihai dot vasilache at gmail). Now i am very tired and i am going to sleep.Mihai Vasilachehttps://www.blogger.com/profile/15904989253787343185noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-7233856657812778942008-08-19T21:06:00.000+03:002008-08-19T21:06:00.000+03:00Hello Flavio,I arrived home and just opened the co...Hello Flavio,<BR/><BR/>I arrived home and just opened the computer. <BR/>I expected to be that. <BR/>The solution proposed by you seams to be the only one. First i will look if there are some settings to send to fcsh for that... <BR/>I will try to make the change tonight (i am in Romania GMT+03), but i do not promise anything. If you like i can give you rights on sourceforge.Mihai Vasilachehttps://www.blogger.com/profile/15904989253787343185noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-12462870468378265912008-08-19T20:56:00.000+03:002008-08-19T20:56:00.000+03:00Mihai...I started a fast investigation trying to s...Mihai...<BR/><BR/>I started a fast investigation trying to solve the warning failure and I believe I discovered what's going on.<BR/><BR/>fcsh (and not your classes) send the warnings to stderr and you classes check if something was written on this stream to detect failure.<BR/><BR/>the workaround could be to read the stderr message returned by fcsh and check if it matches the [file]: warning: [message] pattern. It it does, you could just redirect the text to stdout channel instead of the current behavior. Not that elegant, I know, but fast. :)Aventuras Construtivashttps://www.blogger.com/profile/17767340447054980581noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-64437057511547721852008-08-19T20:24:00.000+03:002008-08-19T20:24:00.000+03:00Sure... I haven't checked the source code but ...Sure... <BR/><BR/>I haven't checked the source code but I believe it happens because you sending the warning message to SDTERR. If you send the warning messages to STDOUT and errors to STDERR maybe it will work fine...<BR/><BR/>Check the example bellow...<BR/><BR/>do-compile:<BR/>Nobody listening on 52797...<BR/>[Wrapper STDOUT] Subprocess initialization ok!<BR/>Deataching from subprocess!<BR/> <-- BEGIN --Wrapper STDOUT--:<BR/>Server started on port 52797<BR/>[FCSH initalized]<BR/> --> END --Wrapper STDOUT--;<BR/>[Wrapper STDERR] terminated!<BR/> <-- BEGIN --Wrapper STDERR--:<BR/><BR/> --> END --Wrapper STDERR--;<BR/>Adobe Flex Compiler SHell (fcsh)<BR/>fcsh: Assigned 1 as the compile target id<BR/>Loading configuration file E:\WDK-Alpha\Webdesk3Flex\flex-config-mxmlc.xml<BR/>E:/WDK-Alpha/Webdesk3Flex/bin/Webdesk.swf (1261135 bytes)<BR/><BR/>fcsh: Assigned 2 as the compile target id<BR/>Loading configuration file E:\WDK-Alpha\Webdesk3Flex\flex-config-mxmlc.xml<BR/>E:/WDK-Alpha/Webdesk3Flex/bin/WebdeskZoom.swf (335714 bytes)<BR/><BR/>(fcsh) fcsh: Assigned 3 as the compile target id<BR/>Loading configuration file E:\WDK-Alpha\Webdesk3Flex\flex-config-mxmlc.xml<BR/>E:/WDK-Alpha/Webdesk3Flex/bin/AreaView.swf (481561 bytes)<BR/><BR/>(fcsh) fcsh: Assigned 4 as the compile target id<BR/>Loading configuration file E:\WDK-Alpha\Webdesk3Flex\flex-config-mxmlc.xml<BR/>E:/WDK-Alpha/Webdesk3Flex/bin/Administration.swf (757283 bytes)<BR/><BR/>E:\WDK-Alpha\Webdesk3Flex\FlexSource\com\datasul\technology\webdesk\administration\Administration.mxml: Warning: The type selector 'RadioButton' was not processed, because the type was not used in the application.<BR/><BR/>BUILD FAILED<BR/>E:\WDK-Alpha\Webdesk3Flex\build.xml:68: The following error occurred while executing this line:<BR/>E:\WDK-Alpha\Webdesk3Flex\build.xml:60: The following error occurred while executing this line:<BR/>E:\WDK-Alpha\Webdesk3Flex\build.xml:38: Compile failed!<BR/><BR/>Total time: 2 minutes 16 secondsAventuras Construtivashttps://www.blogger.com/profile/17767340447054980581noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-32254164664043253752008-08-19T18:28:00.000+03:002008-08-19T18:28:00.000+03:00I can try to remove this warnings. I will look in ...I can try to remove this warnings. I will look in a couple of hours when i arrive home. Can you tell me what warnings you have?Mihai Vasilachehttps://www.blogger.com/profile/15904989253787343185noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-80676757703490122312008-08-19T17:55:00.000+03:002008-08-19T17:55:00.000+03:00Hi MihaiI've trying to use FCSH Wrapper on my proj...Hi Mihai<BR/><BR/>I've trying to use FCSH Wrapper on my project but we're having problems with some warnings shown in the compilation process (what is good!) that are causing the build to fail (what is terrible!).<BR/>Is there any workaround to avoid this behavior?Aventuras Construtivashttps://www.blogger.com/profile/17767340447054980581noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-24231156543589542382008-07-05T14:49:00.000+03:002008-07-05T14:49:00.000+03:00This is awesome!!Any chance to get this for MACs t...This is awesome!!<BR/>Any chance to get this for MACs too?Unknownhttps://www.blogger.com/profile/08389971798121456420noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-52769972562085521252008-06-03T09:18:00.000+03:002008-06-03T09:18:00.000+03:00Hey Brad!If this is the only issue with Ant 1.6.5 ...Hey Brad!<BR/><BR/>If this is the only issue with Ant 1.6.5 then it can be fixed quickly. I do not have in mind any compatibility issues because i made this to serve to my new project. Unfortunately i don't have time these days to make changes. There is also another post from a guy asking me why is not working with Flashdevelop. I do not have time to look. So, if you want to make changes i can make you an account on sourceforge.<BR/><BR/>MihaiMihai Vasilachehttps://www.blogger.com/profile/15904989253787343185noreply@blogger.comtag:blogger.com,1999:blog-5906236296724437200.post-16215438946904977572008-06-03T01:39:00.000+03:002008-06-03T01:39:00.000+03:00As a note, as far as I can tell this requires Ant ...As a note, as far as I can tell this requires Ant 1.7 - tried it on Ant 1.6.5 and it bailed out due to a missing method: Project.log(String,Throwable,int) (Ant Javadocs say the method was added in 1.7)Anonymousnoreply@blogger.com