Re: generating multiple files

Konstantin Priblouda <[email protected]> Tue, 20 Sep 2011 00:26:12 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============9040765749597699583==
Content-Type: multipart/alternative;
	boundary="-440673301-803534749-1316503572=:61619"

---440673301-803534749-1316503572=:61619
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Justin, =0A=0A=0AYou are not forgotten -=A0 it's just me havong too much=
 to hack around and XDoclet is not on the high priority list.=0ACurrent eng=
ine does not support generation of multiple files from same java sources,=
=A0 but you can have more than one=0Aplugin instance in same run giving you=
 similar functionality.=A0 =0A=0A=0AThere is also planned release for plugi=
ns,=A0 once I have resolved problems with certificates on codehais webdav =
=0A=0A( my maven does not trist them=A0 and refuses to upload there )=0A=0A=
=0Aregards, =0A=0A=A0=0A----[ Konstantin Pribluda http://www.pribluda.de ]-=
---------------=0AJTec quality components: http://www.pribluda.de/projects/=
=0A=0A=0A________________________________=0AFrom: Justin Case <send_lotsa_s=
[email protected]>=0ATo: End-user support for the XDoclet code generator <=
[email protected]>=0ASent: Monday, September 19, 2011 11:1=
1 AM=0ASubject: Re: [Xdoclet-user] generating multiple files=0A=0A=0A=0A=0A=
By the way, if the org.generama.WriterMapper would use some interface inste=
ad of Plugin directly, I could do my own plugin as below. Now not...=0A=0AT=
hanks for any ideas,=0AM=0A=0A=0A=0A=0A>________________________________=0A=
>From: Justin Case <[email protected]>=0A>To: "xdoclet-user@li=
sts.sourceforge.net" <[email protected]>=0A>Sent: Monday, =
September 19, 2011 10:56 AM=0A>Subject: [Xdoclet-user] generating multiple =
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 standalone 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 o=
f one single input.=0A>=0A>=0A>Remember the old VO? You'd give a Java class=
 a few annotations like this, telling how many VOs should be created from t=
he class:=0A>=0A>@vo:value-object name=3D"FirstVO" match=3D"First"=A0=0A>@v=
o:value-object name=3D"AnotherVO" match=3D"Second" =0A>=0A>then for each fi=
eld you could tell which generated VO has accessors for it based on the "ma=
tch" keyword:=0A>@vo:field match=3D"Second"=0A>=0A>=0A>I could imagine call=
ing a regular 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 th=
e Ant task on the class metadata either. Hardcoding everything in the Ant f=
ile is a even weaker solution.=0A>=0A>=0A>I thought I would need a new plug=
in for this, and I checked how to write it. One has to go as high as reimpl=
ementing the org.generama.Plugin because there's where the rule "one output=
/input" is decided (in start()). Subclassing Plugin is not an option as pre=
tty much all its fields are private (and I'd have to duplicate all the code=
 from JavaGeneratingPlugin and QDoxPlugin). Then I have no description on w=
hat actually a metadata should contain :) and generally speaking there's no=
 documentation of the 1.0.4 plugins release, of 1.0.5 even less (the releas=
e is not even mentioned on the site just in an email). The Maven build is m=
issing a couple of dependencies for the 1.0.4 plugins and I miss the source=
s for 1.0.5 to even try. Did I mention I hate Eclipse M2E? Shortly put: I s=
ee no chance of doing it myself. =0A>=0A>=0A>=0A>Do you have any hint for m=
e, how could I generate multiple files out a single Java input? Honestly sa=
id, at this moment patching together a QDox+Velocity Ant task looks to me a=
n easier approach than using XDoclet2 :(=0A>=0A>=0A>=0A>Thanks a lot,=0A>M=
=0A>=0A>-------------------------------------------------------------------=
-----------=0A>BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, =
CA=0A>Learn about the latest advances in developing for the =0A>BlackBerry&=
reg; mobile platform with sessions, labs & more.=0A>See new tools and techn=
ologies. Register for BlackBerry&reg; DevCon today!=0A>http://p.sf.net/sfu/=
rim-devcon-copy1 =0A>_______________________________________________=0A>xdo=
clet-user mailing list=0A>[email protected]=0A>https://lis=
ts.sourceforge.net/lists/listinfo/xdoclet-user=0A>=0A>=0A>=0A--------------=
----------------------------------------------------------------=0ABlackBer=
ry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA=0ALearn about the la=
test advances in developing for the =0ABlackBerry&reg; mobile platform with=
 sessions, labs & more.=0ASee new tools and technologies. Register for Blac=
kBerry&reg; DevCon today!=0Ahttp://p.sf.net/sfu/rim-devcon-copy1 =0A_______=
________________________________________=0Axdoclet-user mailing list=0Axdoc=
[email protected]=0Ahttps://lists.sourceforge.net/lists/listin=
fo/xdoclet-user
---440673301-803534749-1316503572=:61619
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>Hi Justin,=
 <br></span></div><div><br><span></span></div><div><span>You are not forgot=
ten -&nbsp; it's just me havong too much to hack around and XDoclet is not =
on the high priority list.</span></div><div><span>Current engine does not s=
upport generation of multiple files from same java sources,&nbsp; but you c=
an have more than one</span></div><div><span>plugin instance in same run gi=
ving you similar functionality.&nbsp; <br></span></div><div><br><span></spa=
n></div><div><span>There is also planned release for plugins,&nbsp; once I =
have resolved problems with certificates on codehais webdav <br></span></di=
v><div><span>( my maven does not trist them&nbsp; and refuses to upload the=
re )</span></div><div><br><span></span></div><div><br><span></span></div><d=
iv><span>regards, <br></span></div><div>&nbsp;</div><div>----[
 Konstantin Pribluda http://www.pribluda.de ]----------------<br>JTec quali=
ty components: http://www.pribluda.de/projects/<br></div><div style=3D"font=
-family: times new roman, new york, times, serif; font-size: 12pt;"><div st=
yle=3D"font-family: times new roman, new york, times, serif; font-size: 12p=
t;"><font face=3D"Arial" size=3D"2"><hr size=3D"1"><b><span style=3D"font-w=
eight:bold;">From:</span></b> Justin Case &lt;[email protected]=
m&gt;<br><b><span style=3D"font-weight: bold;">To:</span></b> End-user supp=
ort for the XDoclet code generator &lt;[email protected]&g=
t;<br><b><span style=3D"font-weight: bold;">Sent:</span></b> Monday, Septem=
ber 19, 2011 11:11 AM<br><b><span style=3D"font-weight: bold;">Subject:</sp=
an></b> Re: [Xdoclet-user] generating multiple files<br></font><br><meta ht=
tp-equiv=3D"x-dns-prefetch-control" content=3D"off"><div id=3D"yiv672438698=
"><div style=3D"color:#000;background-color:#fff;font-family:times new roma=
n, new york, times,
 serif;font-size:12pt;"><div><span><br></span></div><div>By the way, if the=
 org.generama.WriterMapper would use some interface instead of Plugin direc=
tly, I could do my own plugin as below. Now not...</div><div><br></div><div=
>Thanks for any ideas,</div><div>M<br></div><div><br><blockquote style=3D"b=
order-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><d=
iv style=3D"font-family:times new roman, new york, times, serif;font-size:1=
2pt;"><div style=3D"font-family:times new roman, new york, times, serif;fon=
t-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;send_lotsa_spam_her=
[email protected]&gt;<br><b><span style=3D"font-weight:bold;">To:</span></b> "xdo=
[email protected]" &lt;[email protected]&gt;=
<br><b><span style=3D"=0Afont-weight:bold;">Sent:</span></b> Monday, Septem=
ber 19, 2011 10:56 AM<br><b><span style=3D"font-weight:bold;">Subject:</spa=
n></b> [Xdoclet-user] generating multiple files<br></font><br><div id=3D"yi=
v672438698"><div style=3D"color:#000;background-color:#fff;font-family:time=
s new roman, new york, times, serif;font-size:12pt;"><div>Hi all,</div><div=
><br></div><div>I have been using from XDoclet1 the VO plugin which was wor=
king fine (except having no support for generics). I'm not talking about th=
e EJB plugin's VO functionality, but the standalone VO plugin. Well XDoclet=
2 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 should be created from the cla=
ss:<br></div><div>@vo:value-object name=3D"FirstVO"=0A 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 generated VO has accessors fo=
r it based on the "match" keyword:</div><div>@vo:field=0A match=3D"Second"<=
/div><div><br></div><div>I could imagine calling a regular plugin a few tim=
es, 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 task on the class metada=
ta either. Hardcoding everything in the Ant file is a even weaker solution.=
</div><div><br></div><div>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 "one output/input" is decid=
ed (in start()). Subclassing Plugin is not an option as pretty much all its=
 fields are private (and I'd have to duplicate all the code from JavaGenera=
tingPlugin and QDoxPlugin). Then I have no description on what actually a m=
etadata should contain :) and generally speaking there's no documentation o=
f the 1.0.4 plugins release, of 1.0.5 even less (the release is not even me=
ntioned on the site just in an email). The Maven=0A build is missing a coup=
le of dependencies for the 1.0.4 plugins and I miss the sources for 1.0.5 t=
o 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 s=
aid, at this moment patching together a QDox+Velocity Ant task looks to me =
an easier approach than using XDoclet2 :(<br></div><div><br></div><div>Than=
ks a lot,</div><div>M<br></div></div></div><br>----------------------------=
--------------------------------------------------<br>BlackBerry&amp;reg; D=
evCon Americas, Oct. 18-20, San Francisco, CA<br>Learn about the latest adv=
ances in developing for the <br>BlackBerry&amp;reg; mobile platform with se=
ssions, labs &amp; more.<br>See new tools and technologies. Register for Bl=
ackBerry&amp;reg; DevCon today!<br><a rel=3D"nofollow" target=3D"_blank"
 href=3D"http://p.sf.net/sfu/rim-devcon-copy1">http://p.sf.net/sfu/rim-devc=
on-copy1</a> <br>_______________________________________________<br>xdoclet=
-user mailing list<br><a rel=3D"nofollow" ymailto=3D"mailto:xdoclet-user@li=
sts.sourceforge.net" target=3D"_blank" href=3D"mailto:[email protected]=
urceforge.net">[email protected]</a><br><a rel=3D"nofollow=
" target=3D"_blank" href=3D"https://lists.sourceforge.net/lists/listinfo/xd=
oclet-user">https://lists.sourceforge.net/lists/listinfo/xdoclet-user</a><b=
r><br><br></div></div></blockquote></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 latest advances =
in developing for the <br>BlackBerry&amp;reg; mobile platform with sessions=
, labs &amp; more.<br>See new tools and technologies. Register for BlackBer=
ry&amp;reg;
 DevCon today!<br><a href=3D"http://p.sf.net/sfu/rim-devcon-copy1" target=
=3D"_blank">http://p.sf.net/sfu/rim-devcon-copy1</a> <br>__________________=
_____________________________<br>xdoclet-user mailing list<br><a ymailto=3D=
"mailto:[email protected]" href=3D"mailto:xdoclet-user@lis=
ts.sourceforge.net">[email protected]</a><br><a href=3D"ht=
tps://lists.sourceforge.net/lists/listinfo/xdoclet-user" target=3D"_blank">=
https://lists.sourceforge.net/lists/listinfo/xdoclet-user</a><br><br><br></=
div></div></div></body></html>
---440673301-803534749-1316503572=:61619--


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

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
--===============9040765749597699583==
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

--===============9040765749597699583==--