Re: generating multiple files

Justin Case <[email protected]> Mon, 19 Sep 2011 02:11:18 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============3540685170632371862==
Content-Type: multipart/alternative; boundary="0-1063335961-1316423478=:9298"

--0-1063335961-1316423478=:9298
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

=0A=0ABy the way, if the org.generama.WriterMapper would use some interface=
 instead of Plugin directly, I could do my own plugin as below. Now not...=
=0A=0AThanks for any ideas,=0AM=0A=0A=0A=0A=0A>____________________________=
____=0A>From: Justin Case <[email protected]>=0A>To: "xdoclet-=
[email protected]" <[email protected]>=0A>Sent: M=
onday, September 19, 2011 10:56 AM=0A>Subject: [Xdoclet-user] generating mu=
ltiple files=0A>=0A>=0A>Hi all,=0A>=0A>=0A>I have been using from XDoclet1 =
the VO plugin which was working fine (except having no support for generics=
). I'm not talking about the EJB plugin's VO functionality, but the standal=
one VO plugin. Well XDoclet2 doesn't have this plugin anymore... It wouldn'=
t have been such a big deal if I had discovered how to create MULTIPLE file=
s out of one single input.=0A>=0A>=0A>Remember the old VO? You'd give a Jav=
a class a few annotations like this, telling how many VOs should be created=
 from the class:=0A>=0A>@vo:value-object name=3D"FirstVO" match=3D"First"=
=A0=0A>@vo:value-object name=3D"AnotherVO" match=3D"Second" =0A>=0A>then fo=
r each field you could tell which generated VO has accessors for it based o=
n the "match" keyword:=0A>@vo:field match=3D"Second"=0A>=0A>=0A>I could ima=
gine calling a regular plugin a few times, but this is just a silly approac=
h - I don't know how many times should that one be called, and I can't iter=
ate in the Ant task on the class metadata either. Hardcoding everything in =
the Ant file is a even weaker solution.=0A>=0A>=0A>I thought I would need a=
 new plugin for this, and I checked how to write it. One has to go as high =
as reimplementing the org.generama.Plugin because there's where the rule "o=
ne output/input" is decided (in start()). Subclassing Plugin is not an opti=
on as pretty much all its fields are private (and I'd have to duplicate all=
 the code from JavaGeneratingPlugin and QDoxPlugin). Then I have no descrip=
tion on what actually a metadata should contain :) and generally speaking t=
here's no documentation of the 1.0.4 plugins release, of 1.0.5 even less (t=
he release is not even mentioned on the site just in an email). The Maven b=
uild is missing a couple of dependencies for the 1.0.4 plugins and I miss t=
he sources for 1.0.5 to even try. Did I mention I hate Eclipse M2E? Shortly=
 put: I see no chance of doing it myself. =0A>=0A>=0A>=0A>Do you have any h=
int for me, how could I generate multiple files out a single Java input? Ho=
nestly said, at this moment patching together a QDox+Velocity Ant task look=
s to me an easier approach than using XDoclet2 :(=0A>=0A>=0A>=0A>Thanks a l=
ot,=0A>M=0A>=0A>-----------------------------------------------------------=
-------------------=0A>BlackBerry&reg; DevCon Americas, Oct. 18-20, San Fra=
ncisco, CA=0A>Learn about the latest advances in developing for the =0A>Bla=
ckBerry&reg; mobile platform with sessions, labs & more.=0A>See new tools a=
nd technologies. Register for BlackBerry&reg; DevCon today!=0A>http://p.sf.=
net/sfu/rim-devcon-copy1 =0A>______________________________________________=
_=0A>xdoclet-user mailing list=0A>[email protected]=0A>htt=
ps://lists.sourceforge.net/lists/listinfo/xdoclet-user=0A>=0A>=0A>
--0-1063335961-1316423478=:9298
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti=
mes new roman, new york, times, serif;font-size:12pt"><div><span><br></span=
></div><div>By the way, if the org.generama.WriterMapper would use some int=
erface instead of Plugin directly, I could do my own plugin as below. Now n=
ot...</div><div><br></div><div>Thanks for any ideas,</div><div>M<br></div><=
div><br><blockquote style=3D"border-left: 2px solid rgb(16, 16, 255); margi=
n-left: 5px; padding-left: 5px;"><div style=3D"font-family: times new roman=
, new york, times, serif; font-size: 12pt;"><div style=3D"font-family: time=
s new roman, new york, times, serif; font-size: 12pt;"><font face=3D"Arial"=
 size=3D"2"><hr size=3D"1"><b><span style=3D"font-weight:bold;">From:</span=
></b> Justin Case &lt;[email protected]&gt;<br><b><span style=
=3D"font-weight: bold;">To:</span></b> "[email protected]"=
 &lt;[email protected]&gt;<br><b><span style=3D"font-weigh=
t:
 bold;">Sent:</span></b> Monday, September 19, 2011 10:56 AM<br><b><span st=
yle=3D"font-weight: bold;">Subject:</span></b> [Xdoclet-user] generating mu=
ltiple files<br></font><br><meta http-equiv=3D"x-dns-prefetch-control" cont=
ent=3D"off"><div id=3D"yiv1373622860"><div style=3D"color:#000;background-c=
olor:#fff;font-family:times new roman, new york, times, serif;font-size:12p=
t;"><div>Hi all,</div><div><br></div><div>I have been using from XDoclet1 t=
he VO plugin which was working fine (except having no support for generics)=
. I'm not talking about the EJB plugin's VO functionality, but the standalo=
ne VO plugin. Well XDoclet2 doesn't have this plugin anymore... It wouldn't=
 have been such a big deal if I had discovered how to create MULTIPLE files=
 out of one single input.</div><div><br></div><div>Remember the old VO? You=
'd give a Java class a few annotations like this, telling how many VOs shou=
ld be created from the class:<br></div><div>@vo:value-object name=3D"FirstV=
O"
 match=3D"First"&nbsp;</div><div>@vo:value-object name=3D"AnotherVO" match=
=3D"Second" <br></div><div>then for each field you could tell which generat=
ed VO has accessors for it based on the "match" keyword:</div><div>@vo:fiel=
d=0A match=3D"Second"</div><div><br></div><div>I could imagine calling a re=
gular plugin a few times, but this is just a silly approach - I don't know =
how many times should that one be called, and I can't iterate in the Ant ta=
sk on the class metadata either. Hardcoding everything in the Ant file is a=
 even weaker solution.</div><div><br></div><div>I thought I would need a ne=
w plugin for this, and I checked how to write it. One has to go as high as =
reimplementing the org.generama.Plugin because there's where the rule "one =
output/input" is decided (in start()). Subclassing Plugin is not an option =
as pretty much all its fields are private (and I'd have to duplicate all th=
e code from JavaGeneratingPlugin and QDoxPlugin). Then I have no descriptio=
n on what actually a metadata should contain :) and generally speaking ther=
e's no documentation of the 1.0.4 plugins release, of 1.0.5 even less (the =
release is not even mentioned on the site just in an email). The Maven=0A b=
uild is missing a couple of dependencies for the 1.0.4 plugins and I miss t=
he sources for 1.0.5 to even try. Did I mention I hate Eclipse M2E? Shortly=
 put: I see no chance of doing it myself. <br></div><div><br></div><div>Do =
you have any hint for me, how could I generate multiple files out a single =
Java input? Honestly said, at this moment patching together a QDox+Velocity=
 Ant task looks to me an easier approach than using XDoclet2 :(<br></div><d=
iv><br></div><div>Thanks a lot,</div><div>M<br></div></div></div><meta http=
-equiv=3D"x-dns-prefetch-control" content=3D"on"><br>----------------------=
--------------------------------------------------------<br>BlackBerry&amp;=
reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br>Learn about the late=
st advances in developing for the <br>BlackBerry&amp;reg; mobile platform w=
ith sessions, labs &amp; more.<br>See new tools and technologies. Register =
for BlackBerry&amp;reg; DevCon today!<br><a
 href=3D"http://p.sf.net/sfu/rim-devcon-copy1" target=3D"_blank">http://p.s=
f.net/sfu/rim-devcon-copy1</a> <br>________________________________________=
_______<br>xdoclet-user mailing list<br><a ymailto=3D"mailto:xdoclet-user@l=
ists.sourceforge.net" href=3D"mailto:[email protected]">xd=
[email protected]</a><br><a href=3D"https://lists.sourceforg=
e.net/lists/listinfo/xdoclet-user" target=3D"_blank">https://lists.sourcefo=
rge.net/lists/listinfo/xdoclet-user</a><br><br><br></div></div></blockquote=
></div></div></body></html>
--0-1063335961-1316423478=:9298--


--===============3540685170632371862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
--===============3540685170632371862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

--===============3540685170632371862==--