Re: [newbie] Question about Plugin Mapping.

"M.-Leander Reimer" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization Techdivision GdbR
Message-ID <[email protected]>
Hi Joel,

you have to put your code into the plugins directory (using the same 
structure as the other plugins). Edit the main build.xml file, go the 
the plugins target and insert an additional antcall statement like 
(change pluginname to the directory name of your plugin in the plugins 
folder):

     <antcall target="plugin">
         <param name="plugin-name" value="pluginname"/>
      </antcall>

And in your main plugin class insert the following tag as a class level 
javadoc tag:

@middlegen.plugin  name="plugin_subtask_name"
 
The name you use here is the name of the middlegen subtask element of 
your plugin.

Hope this works (haven't done it for quite some time)

Leander


Joel Hillacre schrieb:

>I am looking to build a simple spring plugin for Middlegen.  However, I am 
>having some trouble testing the simple code i have for it already.  In 
>middlegen/plugins/README.TXT, it states that:
>
>"...
>In order to successfully build and test your plugins, you should:
>
>1) Add a mapping for your plugin in 
>middlegen/src/java/middlegen/MiddlegenTask.java at the bottom (_plugins map) 
>..."
>
>However, I have not been able to find anything that looks like mapping in that 
>file.  Is it not there, or do i just not know what I am looking for?  I am 
>using middlegen 2.1 as checked out from the CVS repository.
>
>Thanks for you help/time
>  Joel Hillacre
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
>Project Admins to receive an Apple iPod Mini FREE for your judgement on
>who ports your project to Linux PPC the best. Sponsored by IBM.
>Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
>_______________________________________________
>middlegen-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.