12.19
I'm currently working at a project using CakePHP over Windows platform and i saw me using MS-DOS prompt (argh! this scared me) to use bake tool, than like thus Rails at terminal at mac because over windows no comments improve considerably our job.
I haven't no intention of use MS-DOS, but same thus, i need use bake. Eclipse have a console inside itself, I go take advantage him to perform bake inside Eclipse, my php ide (with pdt plugin).
Only in 3 steps, we go setting up eclipse at windows environment to works with bake. I had no time yet, to take screenshots of my mac configuration, but is very similar and the screens will be available soon.
Step 1:
I'm assuming than your already has the latest eclipse version and PDT plugin installed and configured. So open your eclipse IDE and go to Run -> External Tools -> Open External Tools Dialog.
Step 2:
In External Tools window, select Program and press New launch configuration button.
Step 3:
Now in the right side of the window fill the fields with the informations like the image bellow: (click to enlarge)
${workspace_loc}, ${project_name} are eclipse variables, than help us to become this configuration unique for any project, the bake word in arguments, is a argument called when cake.bat is performed, something like the command "cake bake".
After this configurations, press apply button in the corner bottom right of the window and our configuration is done, just with 3 steps how i told to you.
Now we can try this miracle configuration, close External Tools Dialog and we go create a new cake project. (download latest cake version before continue).
Create a PHP Project called bakeoneclipse and point it to your cake folder (rename it to bakeoneclipse too) and press Finish.
Now you've a cakephp project at your workspace, we can try Bake. Select your main project folder and press Bake button at external tools option.
If our configuration was made correctly, we can see bake being performed at console window.
The configuration is a quite easy but is problematic, because the workspace location determine the behavior of the eclipse variables, this configuration was made with default eclipse workspace location (c:/program files/Documents and Settings/youruser/worskspace).
Well people, this is all; any doubt post a comment and i can try help, if you have troubles with your configuration.
Mac users, we have a great terminal and bake works like a charm in it, but if you've interest in use eclipse soon i go post here the steps for mac.
A nice end of friday and i good weekend for all.
UPDATE:
How i had promised, this is the unique screenshot than change between windows and mac eclipse setup, in the truth only .bat is omitted at mac configuration, but the screenshoot can show us better.








Fala Junão! Doido d+ meu caro. Continue batalhando q vc vai longe! Boas e festas e abração.
[...] last post was about how run Bake on Eclipse IDE, inspired on it i decided work to do my favorite editor [...]