Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F81CD137 for ; Thu, 23 Aug 2012 15:55:27 +0000 (UTC) Received: (qmail 18209 invoked by uid 500); 23 Aug 2012 15:55:26 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 18152 invoked by uid 500); 23 Aug 2012 15:55:26 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 18144 invoked by uid 99); 23 Aug 2012 15:55:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 15:55:26 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aharui@adobe.com designates 64.18.1.31 as permitted sender) Received: from [64.18.1.31] (HELO exprod6og113.obsmtp.com) (64.18.1.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 15:55:21 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob113.postini.com ([64.18.5.12]) with SMTP ID DSNKUDZSU+G9miYSil31C1+BavVxwJfHkmUB@postini.com; Thu, 23 Aug 2012 08:55:00 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q7NFswbK022831 for ; Thu, 23 Aug 2012 08:54:59 -0700 (PDT) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q7NFstYt014471 for ; Thu, 23 Aug 2012 08:54:58 -0700 (PDT) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nacas01.corp.adobe.com ([10.8.189.99]) with mapi; Thu, 23 Aug 2012 08:54:54 -0700 From: Alex Harui To: "flex-dev@incubator.apache.org" Date: Thu, 23 Aug 2012 08:54:53 -0700 Subject: Re: Getting Mustella to work. Thread-Topic: Getting Mustella to work. Thread-Index: Ac2BQbRC0iUlNSKlThi3JZNwUEN2XAABe4V1 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.11.0.110726 acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CC5BA05D45156aharuiadobecom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_CC5BA05D45156aharuiadobecom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I don=92t think the attachments came through. On 8/23/12 8:11 AM, "Carlos Rovira" wrote: Hi, how could we do when images differ like in the attached screenshot? The created image differs from the one that is rendered what is really weir= d... 2012/8/23 Peter Ent I tried something like that, but there are options like: -source-path=3D with a hyphen in the option and a couple that begin with double hyphens. I started to switch over to String.split(" -") to break apart on the space+dash but then ran into this mysterious problem of mxmlc not liking the arguments it was given, even though, as far as I can tell, it was getting the same ones in the same order. Obviously that wasn't the case, but had trouble tracking it down, so it is on hold for now while we get the tests to run, unless someone else wants to take a stab at it. --peter On 8/23/12 10:43 AM, "Kessler CTR Mark J" wrote: >I'm not sure what Mustella is written in, but would something generic >like this work? > >If a string needs to be turned into an array then maybe... Use the "-" as >the first delimiter to break apart the options and use a temp array. Then >use the "=3D" to break out the names from the values. > >Keeping two arrays with the same number of elements. One array stores >the argument name and the second argument value. > >//Declare arrays/string >string [] saNames =3D {"Option1", "Option2", "Option3"}; >string [] saValues =3D {"My value with spaces", "test2", "test 3"}; >string sCombinedOptions =3D ""; > >//Loop through all elements in arrays >for (;;) >{ > //Combine names / values. > sCombinedOptions +=3D saNames[currentItem] + "=3D""" + >saValues[currentItem] + """ "; >} > > >//Add the command line and options. >"path\mxmlc.exe" + " " + sCombinedOptions; > > >-----Original Message----- >From: Peter Ent [mailto:pent@adobe.com] >Sent: Thursday, August 23, 2012 9:33 >To: flex-dev@incubator.apache.org >Subject: Re: Getting Mustella to work. > >That ought to work, but does not. The Mustella code pieces together a >large string with all of the options on it, then turns the string into a >String[] by using space as the delimiter. Thus > >-source-path=3D"C:\Program Files\Common Files\Microsoft >Shared\MSInfo\MSInfo32.exe" > >turns into >[] =3D -source-path=3D"C:\Program Files\Common [] =3D Files\Microsoft [] = =3D >Shared\MSInfo\MSInfo32.exe" > >And it does this several times (turning the array into a string, >inserting other args, back to an array) to build up the argument list. >Ultimately, the array of options is passed over to mxmlc to execute, so >it does need to turn into an array of options. I was working on putting >everything into an ArrayList but more and more code needed to change and >then I was getting errors from mxmlc saying parameters were being mixed >which I didn't understand since it was getting the same parameters in the >same order. > >So I have to re-think the approach. > >--peter > >On 8/23/12 6:59 AM, "Kessler CTR Mark J" >wrote: > >>I know this may sound silly, but windows deals with the spaces in path >>using quotes around the whole path. Is there something similar with >>Mustella? >> >>So a windows command prompt example, I could do something like the >>following... >>"C:\Program Files\Common Files\Microsoft Shared\MSInfo\MSInfo32.exe" >> >> >>Whereas the old non spaced dos style naming convention would do this >>without quotes.. >>c:\progra~1\common~1\micros~1\msinfo\MSInfo32.exe >> >> >>r/s >>-Mark >> >>-----Original Message----- >>From: Peter Ent [mailto:pent@adobe.com] >>Sent: Wednesday, August 22, 2012 9:20 >>To: flex-dev@incubator.apache.org >>Subject: Re: Getting Mustella to work. >> >>I have not have luck solving the problem. It is much trickier than I >>anticipated. I am going to jump back into getting more tests to run and >>think more about the problem. Operating systems have allowed spaces in >>file names for many, many years and you'd think would be an easily >>solvable problem (or not even a problem at all). >> >>--peter >> >>On 8/21/12 11:12 PM, "Justin Mclean" wrote: >> >>>Hi, >>> >>>If the space path issue was fixed you have more to add. Any luck with >>>that yet? >>> >>>Justin >> > -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui --_000_CC5BA05D45156aharuiadobecom_--