[mtasc] Bug: Spaces in classpath on OS X

Boris BEAULANT bo at ankama.com
Wed Jun 8 18:10:40 CEST 2005


I've updated ASDT CVS (/ActionScript2 Editor) and if you rebuild your 
plugin from it you will find a new checkbox in MTASC preferences panel : 
"Popup MTASC 'command line and output' on compile"

I don't understand why it don't work on osx, because ASDT add quotes (") 
in classpath ...

Remark, it doesn't add quotes on additionnals parameters.

Bo

Allen, Christopher S. a écrit :

>I have MTASC working fine on my Mac with spaces in the class path.  I'm using an
>Ant build.xml file to accomplish this.  The class path to the Macromedia Classes
>is working for me and it does have spaces in the path.
>
>Here is the Ant file that I'm using.  I hope this helps.  The funny thing is
>that the syntax checking for ASDT doesn't work for me even though my Ant file
>runs just fine.  Weird.
>
>--------------
><?xml version="1.0" encoding="utf-8"?>
><project name="Flash" default="compileMTASC">
>    <!-- user modifiable properties -->
>    <property name="ASFile"
>value="/Users/callen/Sites/adaptivedesigners.com/www/flash/classes/com/adaptived
>esigners/portfoliosite/ApplicationDriver.as"/>
>    <property name="SWFFile"
>value="/Users/callen/Sites/adaptivedesigners.com/www/flash/main.swf"/>
>    <property name="classPath"
>value="/Users/callen/Sites/adaptivedesigners.com/www/flash/classes/"/>
>    <property name="classPath2"
>value="/Users/callen/Sites/FlashClasses/classes/"/>
>    <property name="MacromediaClassPath"
>value="/Users/callen/Library/Application\ Support/Macromedia/Flash\ MX\
>2004/en/Configuration/Classes/"/>
>    <property name="additionalParams" value="-mx"/>
>    
>
>    <target name="compileMTASC">
>        <exec executable="/opt/mtasc/mtasc">
>            <arg line='"${ASFile}" ${additionalParams} -swf "${SWFFile}" -cp
>"${classPath}" -cp "${classPath2}" -cp "${MacromediaClassPath}"'/>
>        </exec>
>    </target>
></project>
>--------------
>
>-Chris
>
>-----Original Message-----
>From: mtasc-bounces at lists.motion-twin.com
>[mailto:mtasc-bounces at lists.motion-twin.com] On Behalf Of Nicolas Cannasse
>Sent: Wednesday, June 08, 2005 9:23 AM
>To: MotionTwin ActionScript2 Compiler List
>Subject: Re: [mtasc] Bug: Spaces in classpath on OS X
>
>  
>
>>>But obviously it depends on your commandline interpreter syntax.
>>>      
>>>
>>Either escaped...
>>
>>this/is\ a/path\ with\ spaces
>>
>>...or quoted...
>>
>>"this/is a/path with spaces"
>>
>>...works fine for every other command in OS X, so I suspect it's a
>>bug in the MTASC commandline interpreter.
>>    
>>
>
>" (unknown) : type error class not found : Support.Macromedia.Flash"
>
>It's obvious here that MTASC is looking here for an additional class and
>that spaces where not quoted correctly. MTASC does not its own commandline
>interpreter, it just get an array of parameters which is given by the OS
>commandline interpreter and reacts accordingly.
>
>Nicolas
>
>--
>MTASC : no more coffee break while compiling
>--
>MTASC : no more coffee break while compiling
>
>
>  
>




More information about the mtasc mailing list