[osflash] [AS2ANT]Too many classes made mtasc -cp param too long then crashed mtasc
erixtekila
erixtekila at gmail.com
Fri Apr 21 05:16:38 EDT 2006
>
> E:\AS\mtasc-1.12\mtasc.exe -swf
> F:\workspace\XClientM\ihomestatics\flashs\inMain.swf -out
> F:\workspace\XClientM\ihomestatics\flashs\Main.swf -frame 3 -trace
> org.aswing.debug.Log.log -version 8 -keep -exclude
> F:\workspace\builders\iHomeExclude.txt -cp
> E:\eclipse_svn\workspace\AsWing\src -cp F:\workspace\AsWingExt\src -cp
> F:\workspace\XFlickr\src -cp F:\workspace\XClientM\src -cp
> F:\workspace\Debugger\src -main org\aswing\debug\Delegate.as
> org\aswing\debug\Log.as org\aswing\debug\Logger.as
> org\aswing\debug\SOSLogger.as org\aswing\ASColor.as
> org\aswing\ASFont.as org\aswing\ASTextExtent.as ......
>
> It list all the as files, so i guess the command line must have a
> restrict of the line length, when i removed several classes to
> decrease the length, it runs ok. Well the issue is clear, then i think
> there must be another way to do with as2ant to avoid this, like
> generate " -pack packagePath" parammeter of mtasc instead of "-cp path
> and as files". Can as2ant do this? or another way? If it can't at this
> moment, will it be plan to implement in future, Thanks in advance a
> lot.
Hi iiley,
If I anderstand correctly, you try to force mtasc to compile each
classes in the swf.
BTW, isn't it some import directive inside the swf ?
If you want to be sure that each class are embedded in the resulting
swf, perhaps could you just use a fake the import like this for
"dynamic classes"
var forceImport = [org/aswing/Classe, …]
Perhaps it is too much work ?!
HTH
-----------
erixtekila
http://blog.v-i-a.net/
More information about the osflash
mailing list