 |
Build SWC from FD! "ExportSWC" plugin [beta]
| Author |
Message |
|
Warappa
Member
Joined: Wed Jun 20, 2007 8:09 am Posts: 331
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Kodiak you also need to include the resource-bundle swcs: <sdk>/frameworks/locale/<language>/*.swc
_________________ Practice always defeats theory
|
| Fri Aug 20, 2010 6:16 am |
|
 |
|
Warappa
Member
Joined: Wed Jun 20, 2007 8:09 am Posts: 331
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
heilong wrote: PMed the link to the project's zip. I just tried it and it worked (Flex SDK 3.4 and 3.3, no files modified). I recognized, that you have custom Java settings - maybe there's a problem (I use the default settings). Lg warappa
_________________ Practice always defeats theory
|
| Fri Aug 20, 2010 6:28 am |
|
 |
|
heilong
Member
Joined: Fri Jul 23, 2010 10:26 am Posts: 44
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
I didn't even know why or when these java options were set. Found JAVA_TOOL_OPTIONS="-Xmx256m" in the System's Environment Variables. After I removed this entry, I'm no longer getting a "Build failed". However I suppose this is quite a valid option? Thus if build fails with this option, maybe it's a bug in ExportSWC? Maybe you can test with JAVA_TOOL_OPTIONS="-Xmx256m" and find out what's the problem here? Thanks!
--Gene
|
| Fri Aug 20, 2010 7:07 am |
|
 |
|
Kodiak
Member
Joined: Wed Apr 09, 2008 2:40 pm Posts: 19
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Brilliant Warappa! Thanks a lot!
|
| Fri Aug 20, 2010 8:30 am |
|
 |
|
ricardocanelas
Member
Joined: Sun Aug 15, 2010 10:13 pm Posts: 2
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Warappa wrote: ricardocanelas wrote: I have a problem:
Prebuilding config D:\as3\ricardocanelas\obj\Ricardo Canelas.flex.compc.xml... Configuration writen to: D:\as3\ricardocanelas\obj\Ricardo Canelas.flex.compc.xml *** Unable to build SWC: Project or compc.exe not found em ExportSWC.SWCBuilder.RunCompc(String confpath) You need to set up the flex SDK in the AS3Context. Where?
|
| Sat Aug 28, 2010 2:56 pm |
|
 |
|
Warappa
Member
Joined: Wed Jun 20, 2007 8:09 am Posts: 331
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
ricardocanelas wrote: Where? Press F10, select "AS3Context" -> "Flex SDK Location" and enter there the location of the SDK.
_________________ Practice always defeats theory
|
| Sat Aug 28, 2010 3:10 pm |
|
 |
|
santiagopuentep
Member
Joined: Fri Feb 19, 2010 7:39 pm Posts: 39
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Hi there,
There's a problem with multiple projects in the same folder. The settings are not created on a per project basis. For example, if I'm in project "test1" and I change the output file to "test1.swc" and then go to project "test2", the output file is now "test1.swc". It would be really great to have that as a per project setting.
I'm using multiple projects to sometimes export swfs to the "bin" folder and sometimes swc to the "lib" folder using the same source.
To explain myself better: I have all the FD projects in the root, they all use the same "bin" and "lib" folders but in the "src" folder I create one folder per project to have separate classpaths. For example, for "Test1.proj" I have a "src/test1/as" as classpath. For "Test2" I have "src/test2/as". They both share the "bin" and "lib" as I said before. This works great to share sources, swcs, swfs and assets between projects without losing control of what gets compiled.
Please help!
Also, I don't know if it needed outside for some reason but can the "SWCSettings.lxml" be in the "obj" folder?
Thanks for the plugin, it's a life saver!
"There's one life before and one after FlashDevelop."
|
| Mon Sep 13, 2010 7:29 am |
|
 |
|
frozenflash
Member
Joined: Mon Dec 29, 2008 11:27 am Posts: 17
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Hi, I have the same problem. It would be great, if multiple SWC projects in one folder would be possible. However I found some commented lines of code in the code which do this. It's: Code: get { return ProjectPath.FullName + "\\" + Project.Name + ".lxml"; } on line 597 and Code: get { return ProjectPath.FullName + "\\" + _project.Name+ ".lxml"; } on line 995 in the file "SWCBuilder.cs". if you enable these lines and compile the plugin you get the behaviour we two wish.  You can also edit these two lines to make ExportSWC create this files in the obj folder. I wonder if future versions could already have this enabled? Or configured by the user? That would be great. Otherwise I would have to modify and compile it on my own again.  frozenflash
|
| Thu Sep 16, 2010 8:56 pm |
|
 |
|
santiagopuentep
Member
Joined: Fri Feb 19, 2010 7:39 pm Posts: 39
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
It's great not to be alone!
It's a shame I don't know how to compile that stuff. It's chinese to me, I'm a Flash only guy (for now). If you do this could you upload it somewere an post it here? I can promise to learn chinese for next time!
Cheers!
|
| Thu Sep 16, 2010 9:16 pm |
|
 |
|
frozenflash
Member
Joined: Mon Dec 29, 2008 11:27 am Posts: 17
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Here it is: http://www.sendspace.com/file/qor4vcJust copy it to the plugin directory. Then every project creates its own config file in the obj folder.
|
| Fri Sep 17, 2010 12:18 am |
|
 |
|
santiagopuentep
Member
Joined: Fri Feb 19, 2010 7:39 pm Posts: 39
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
This is great!
Tested and working like a charm.
Thanks man.
|
| Fri Sep 17, 2010 6:01 am |
|
 |
|
Warappa
Member
Joined: Wed Jun 20, 2007 8:09 am Posts: 331
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
frozenflash wrote: Hi, I have the same problem. It would be great, if multiple SWC projects in one folder would be possible. However I found some commented lines of code in the code which do this. It's: Code: get { return ProjectPath.FullName + "\\" + Project.Name + ".lxml"; } on line 597 and Code: get { return ProjectPath.FullName + "\\" + _project.Name+ ".lxml"; } on line 995 in the file "SWCBuilder.cs". if you enable these lines and compile the plugin you get the behaviour we two wish.  You can also edit these two lines to make ExportSWC create this files in the obj folder. I wonder if future versions could already have this enabled? Or configured by the user? That would be great. Otherwise I would have to modify and compile it on my own again.  frozenflash Sorry for not responding (always busy...) Your patch is now applied in ExportSWC SVN.
_________________ Practice always defeats theory
|
| Fri Sep 17, 2010 6:41 am |
|
 |
|
frozenflash
Member
Joined: Mon Dec 29, 2008 11:27 am Posts: 17
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
That's great. Thanks!
|
| Fri Sep 17, 2010 8:21 am |
|
 |
|
santiagopuentep
Member
Joined: Fri Feb 19, 2010 7:39 pm Posts: 39
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
There seems to be a problem with the last modification that makes FD throw an error when opening a project that doesn't have the obj folder created (if it's new and you never compiled it)
Here it is: Could not find a part of the path 'C:\Documents and Settings\user\Escritorio\as3 test\obj\as3 test.lxml'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at ExportSWC.SWCProject.Save(String filename) at ExportSWC.SWCProject.Load(String filename) at ExportSWC.PluginMain.HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority) at PluginCore.Managers.EventManager.DispatchEvent(Object sender, NotifyEvent e)
seems like an easy one to fix.
The new multiproject stuff is awesome!
|
| Tue Sep 21, 2010 2:19 am |
|
 |
|
frozenflash
Member
Joined: Mon Dec 29, 2008 11:27 am Posts: 17
|
 Re: Build SWC from FD! "ExportSWC" plugin [beta]
Hi, the latest SVN revision doesn't use the "obj" folder to store the SWC config file. It gets stored in the project root. So this issue will go away when you load the next binary release (which hasn't been built since the fix was applied). It it okay for you to work with the workaround you mentioned? Otherwise I would build a new version for you that fixes this issue.
frozenflash
|
| Tue Sep 21, 2010 9:46 am |
|
|
Who is online |
Users browsing this forum: No registered users and 5 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
 |