RE: Setup for patching

2015-03-06 Thread Kessler CTR Mark J
Side notes for monkey patching... 1. You can use it in your regular applications to override the classes in the flex sdk. 2. You will need to keep the path of the files package. You can find this by browsing through folders or looking up its ASDOC page. A button would be listed under "spa

Re: Setup for patching

2015-03-05 Thread Justin Mclean
Hi, I do it in a similar (but a little simpler) way to Om. I import the Flex SDK as a single simple project (no need for multiple projects) and then set that up a Flex SDK for use by other projects. When making changes to the code I just recompile the required sub project (in framework/project

Re: Setup for patching

2015-03-05 Thread OmPrakash Muppirala
Sorry for the late response in this thread. Here is the way I set up my environment for working with the flex sdk. *Part 1: Set up the Flex SDK projects* 1. Check out the Flex SDK to ex. c:/flex/git/flex-sdk and TLF to c:/flex/git/flex-tlf 2. Open Flash Builder, create a new workspace 3. In t

Re: Setup for patching

2015-03-05 Thread jude
If FB finds a file of the same name and in the same package (folder structure) as an existing class it will use the local file. So if you want to create or modify your own mx.controls.Alert class you would create a folder in your project's src path of "mx/controls/" and then create or copy in the

Re: Setup for patching

2015-03-05 Thread kevin.godell
I guess FB needs to know the location of the file so that it can override the corresponding class in the compiled swc? I am not 100%, but it works. On Thursday, March 5, 2015, Dany Dhondt [via Apache Flex Development] < ml-node+s247n45413...@n4.nabble.com> wrote: > Thanks Kevin for this excel

Re: Setup for patching

2015-03-05 Thread Dany Dhondt
Thanks Kevin for this excellent tip. Why do you have to copy the directory structure? Is it to preserve the package line in the class file? I'll start experimenting with these tips as soon as I feel comfortable enough with the repo :) Dany Op 5 mar 2015 om 02:09 uur uur schreef "kevin.godell"

Re: Setup for patching

2015-03-04 Thread kevin.godell
@Dany I wanted to elaborate further on what Alex mentioned about adding a source path for working on patches. For example, I just found a problem and wanted to make some quick edits to see if I could fix ArrayList.as. So, I found the file in the sdk, making note of the directory structure. I copi

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
thanks Alex, I'll try that out too. Dany > Op 3-mrt.-2015, om 16:57 heeft Alex Harui het volgende > geschreven: > > Congratulations! FWIW, for some (not all) code changes, you can try > setting the source-path to the src folder of a folder in > frameworks/projects. Or you can make your own

Re: Setup for patching

2015-03-03 Thread Alex Harui
Congratulations! FWIW, for some (not all) code changes, you can try setting the source-path to the src folder of a folder in frameworks/projects. Or you can make your own folder tree in your project’s source folder and make changes there. Source-path is always supposed to override library-path

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
I'll take a beer (hold the confetti, please). Congrats on the first of what I hope are many! Thanks Dany. EdB On Tue, Mar 3, 2015 at 4:48 PM, Dany Dhondt wrote: > > Free beers and confetti for all :) > Made my first patch file. > > Hi Eric, > > I forgot the caret :( > > Now the patch file is

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Free beers and confetti for all :) Made my first patch file. Hi Eric, I forgot the caret :( Now the patch file is made and attached to ticket FLEX-34772 Thx for all the help! Dany > Op 3-mrt.-2015, om 16:24 heeft Erik de Bruin het > volgende geschreven: > > I think you have to pipe the out

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
I think you have to pipe the output to a file: git diff frameworks/projects/spark/src/spark/layouts/ > fix.patch (I think, haven't use this IRL) EdB On Tue, Mar 3, 2015 at 4:15 PM, Dany Dhondt wrote: > Hi Eric, > > I'm afraid I need your help again. > The docs say that I have to create a pat

Re: Setup for patching

2015-03-03 Thread piotrz
Migrating project from FB to Intellij working in general. Sometimes after import you have to correct some dependencies but in general it's working. I've been migrate a lot of projects from FB to Intellij and it was always successful. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- Vie

Re: Setup for patching

2015-03-03 Thread Subs
...i'm not suggesting you are lazy too ;) On 03/03/2015 15:15, Subs wrote: I'm in same boat as you - i haven't been able to move an FB project to Intellij (thru lack of docs and laziness); i can only setup new projects. On 03/03/2015 15:07, Dany Dhondt wrote: Hi Subs, I tried to migrate seve

Re: Setup for patching

2015-03-03 Thread Subs
I'm in same boat as you - i haven't been able to move an FB project to Intellij (thru lack of docs and laziness); i can only setup new projects. On 03/03/2015 15:07, Dany Dhondt wrote: Hi Subs, I tried to migrate several times already but never succeeded. I have a lot of projects which are co

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Eric, I'm afraid I need your help again. The docs say that I have to create a patch file from the root of the sdk. So, from flex-sdk, I tried this command: git diff frameworks/projects/spark/src/spark/layouts/ fix.patch What do I do wrong? Dany > Op 3-mrt.-2015, om 15:47 heeft Subs het >

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Subs, I tried to migrate several times already but never succeeded. I have a lot of projects which are constantly updated. I haven't found a definitive guide to migrate from FB to Intellij yet. Do you know of a (very) good guide? Dany > Op 3-mrt.-2015, om 15:47 heeft Subs het > volgende

Re: Setup for patching

2015-03-03 Thread Subs
Don't know if it's an option for you, but Intellij is a lot better/nicer/easier than FB when it comes to stuff like this (building the sdk, creating a patch etc). On 03/03/2015 14:32, Dany Dhondt wrote: Hi Eric, Solved! First, the change didn't show up. Then I ran the application and when I c

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Eric, Solved! First, the change didn't show up. Then I ran the application and when I came back to FB, the change showed up! Pfewww! One more step: creating a patch file. That shouldn't be too hard I guess... So far so good. Many thanks for the help... Dany > Op 3-mrt.-2015, om 15:27 heeft

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
Are you sure your project is using the repo SDK (I have to ask...)? EdB On Tue, Mar 3, 2015 at 3:22 PM, Dany Dhondt wrote: > Hi Eric, > > > > ok, I succeeded to add the repo sdk to Flash Builder. > Now I changed a file in the repo (VerticalLayout.as), recompiled in the > folder spark using an

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Eric, ok, I succeeded to add the repo sdk to Flash Builder. Now I changed a file in the repo (VerticalLayout.as), recompiled in the folder spark using ant main and cleaned my test project. The changes don't show up though. What am I doing wrong? thx again, almost there I think Dany > Op

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
Nope, it doesn't, it just adds and creates the ones that need to be there ;-) EdB On Tue, Mar 3, 2015 at 1:06 PM, Dany Dhondt wrote: > Hi Eric, > > So you mean I should do this?: > > sh makeApacheFlexForIDE.sh /ApacheFlex/source/flex-sdk > > Won't that overwrite all files there? > > Dany > >>

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Eric, So you mean I should do this?: sh makeApacheFlexForIDE.sh /ApacheFlex/source/flex-sdk Won't that overwrite all files there? Dany > Op 3-mrt.-2015, om 12:57 heeft Erik de Bruin het > volgende geschreven: > >> But my base flex-sdk folder can't be used in FB. So I created a second sdk

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
> But my base flex-sdk folder can't be used in FB. So I created a second sdk > folder using the makeApacheFlexForIDE command, right? > So when I edit a file, it points to the one in the FB sdk, NOT to the sdk > folder I cloned from git. It is my understanding that the 'makeApacheFlexForIDE' comm

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
> Mind you, mx::Alert was only an example, but: I know, I know :) But my base flex-sdk folder can't be used in FB. So I created a second sdk folder using the makeApacheFlexForIDE command, right? So when I edit a file, it points to the one in the FB sdk, NOT to the sdk folder I cloned from git.

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
Mind you, mx::Alert was only an example, but: Your test project should use the SDK from the git repo. You should only edit files in the SDK from the git repo. That way, after you edit and re-build the SWC, your test project will pick up the changes. HTH, EdB On Tue, Mar 3, 2015 at 12:21 PM, D

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Eric, I think I'm almost there. My only confusion is what file I have to edit. My testproject uses the sdk which is located under the sdks folder of Flash Builder. The git repo I cloned on the other hand is located under /ApacheFlex/source/flex-sdk Both have a mx::Alert component. Which one

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
There is no need to run the whole build again, just the project you're working on. So, if you're making changes to the mx::Alert component, you'd only re-build "/frameworks/projects/mx". You can do this by pointing your Terminal at that directory and execute 'ant main'. This will rebuild the projec

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi all, I have now: The flex sdk (cloned from git) under: [1] /ApacheFlex/source/flex-sdk Then I ran the ant main >> OK Then I've built a sdk for use in FB using sh makeApacheFlexForIDE.sh /Applications/"Adobe Flash Builder 4.7"/sdks/Flex_4.15 So the sdk is now under: [2] /Applications/"Adobe

RE: Setup for patching

2015-03-03 Thread Kessler CTR Mark J
Your first time getting the sdk source setup feels like a trial by fire doesn't it lol... partly a rite of passage :P -Mark

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
> Now I get a BUILD SUCCESFUL message. It is, isn't it? :-) EdB -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi, I found the problem. The env. file for the air sdk had a extra level. I corrected that. Now I get a BUILD SUCCESFUL message. Nice feeling :) d > Op 3-mrt.-2015, om 09:55 heeft Dany Dhondt het volgende > geschreven: > > Hi Erik, Piotrz > > Thx. for helping. > > I've done quite a few thin

Re: Setup for patching

2015-03-03 Thread Dany Dhondt
Hi Erik, Piotrz Thx. for helping. I've done quite a few things already. I used this page: https://cwiki.apache.org/confluence/display/FLEX/1.2+Setting+up+Manually env. variables ok, installed all packages, ... then I ra

Re: Setup for patching

2015-03-03 Thread piotrz
Hi Dany, We have also some resources which described how to set up SDK [1]. Additionally if you are going to use Intellij Nick provides some time ago tutorial on youtube [2]. [1] https://cwiki.apache.org/confluence/display/FLEX/Helping+Out [2] https://www.youtube.com/watch?v=TUbQq_6uWCE Piotr

Re: Setup for patching

2015-03-03 Thread Erik de Bruin
Hi Dany, Great to see you give this a go. To get started, you have to: - follow the instructions in the README to 'build the SDK from source': this will build the SWCs that actually make up the SDK that FB uses - once complete, the SDK is ready to use in FB. In the preferences, add the SDK to th