Discussion:
[Middlegen-user] [newbie] Question about Plugin Mapping.
Joel Hillacre
2004-09-28 14:24:29 UTC
Permalink
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
M.-Leander Reimer
2004-09-28 17:00:10 UTC
Permalink
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
Post by Joel Hillacre
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
"...
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
kevin
2004-10-01 10:50:19 UTC
Permalink
Thank you very much Leander! My plug-in is now mapped and compiling. :D
Post by M.-Leander Reimer
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
<antcall target="plugin">
<param name="plugin-name" value="pluginname"/>
</antcall>
And in your main plugin class insert the following tag as a class level
@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
Post by Joel Hillacre
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
"...
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
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
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...