Date: 2004-01-27T14:59:11 Editor: 208.139.169.224 <> Wiki: Apache Avalon Wiki Page: AvalonFAQ/Merlin URL: http://wiki.apache.org/avalon/AvalonFAQ/Merlin
no comment Change Log: ------------------------------------------------------------------------------ @@ -49,3 +49,48 @@ == What kind of extensions are available? == == What is the difference between an Extension and a Facility? == + +== How can I use Merlin with Eclipse? == + +A plugin named Merlin Developer is under development right now. Please see http://www.merlin.softwarefabrik.biz/docs/eclipse/html/ . + +But for now if you want to run the examples that come +with Merlin, in Eclipse you can configure the Merlin CLI as an external tool in your IDE. I had the following configuration for it: + +Tool Location: $MERLIN_HOME\bin\merlin.bat + +Tool Argument: classes -execute -info + +Working Directory: ${project_loc} + +I'm not following the Mavenized directory within my IDE and the "classes" in the Tool Argument refers to the directory where my class files are located, you can specify whichever directory holds your class files ( like target\classes if you are using mavenized directory structure ) . And you would need to place a BLOCK-INF folder under your source folder ("src" folder in my case) and this folder would hold your block.xml. Also you would need to place your component.xinfo files in the same folder as your component source file e.g if your component is under tutorial folder ( specifying "tutorial" package) the place the xinfo files in it. If you try to copy BLOCK-INF folder or the *.xinfo files directly to the classes folder, Eclipse would delete those when it rebuilds the project. But placing them under source folder would ensure the Eclipse copies that to your classes folder itself and also retains those there. My directory structre for a project named MerlinTest looks likes this: + +----------------------------------------- +MerlinTest/ + src/ + tutorial/ + HelloComponent.java + HelloComponent.xinfo + + BLOCK-INF/block.info + + classes/ + tutorial/ + HelloComponent.class + HelloComponent.xinfo + + BLOCK-INF/block.info + +----------------------------------------------- + +Now you should be able to run Merlin CLI from within eclipse by selecting your project (like MerlinTest in my case) in the left navigation or project explorer and go to Run->External Tools and just run the Merlin CLI. + +It was a little painful for me to make this work initially so I hope this helps a little. + +Vikas Phonsa. + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
