generating multiple files

Justin Case <[email protected]> Mon, 19 Sep 2011 01:56:15 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============2879240762570973771==
Content-Type: multipart/alternative;
	boundary="-2114655128-1972364123-1316422575=:76830"

---2114655128-1972364123-1316422575=:76830
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,=0A=0AI have been using from XDoclet1 the VO plugin which was workin=
g fine (except having no support for generics). I'm not talking about the E=
JB plugin's VO functionality, but the standalone VO plugin. Well XDoclet2 d=
oesn'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.=0A=
=0ARemember the old VO? You'd give a Java class a few annotations like this=
, telling how many VOs should be created from the class:=0A=0A@vo:value-obj=
ect name=3D"FirstVO" match=3D"First"=A0=0A@vo:value-object name=3D"AnotherV=
O" match=3D"Second" =0A=0Athen for each field you could tell which generate=
d VO has accessors for it based on the "match" keyword:=0A@vo:field match=
=3D"Second"=0A=0AI could imagine calling 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 the Ant task on the class metadata eithe=
r. Hardcoding everything in the Ant file is a even weaker solution.=0A=0AI =
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 the=
re'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 the code from JavaGeneratingPlugin and QDoxPlugin). =
Then I have no description on what actually a metadata should contain :) an=
d generally speaking there'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 build is missing a couple of dependencies for the 1.0.=
4 plugins and I miss the sources for 1.0.5 to even try. Did I mention I hat=
e Eclipse M2E? Shortly put: I see no chance of doing it myself. =0A=0A=0ADo=
 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+Velocit=
y Ant task looks to me an easier approach than using XDoclet2 :(=0A=0A=0ATh=
anks a lot,=0AM=0A
---2114655128-1972364123-1316422575=:76830
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>Hi all,</div><di=
v><br></div><div>I have been using from XDoclet1 the VO plugin which was wo=
rking fine (except having no support for generics). I'm not talking about t=
he EJB plugin's VO functionality, but the standalone VO plugin. Well XDocle=
t2 doesn't have this plugin anymore... It wouldn't have been such a big dea=
l 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 fe=
w annotations like this, telling how many VOs should be created from the cl=
ass:<br></div><div>@vo:value-object name=3D"FirstVO" match=3D"First"&nbsp;<=
/div><div>@vo:value-object name=3D"AnotherVO" match=3D"Second" <br></div><d=
iv>then for each field you could tell which generated VO has accessors for =
it based on the "match" keyword:</div><div>@vo:field
 match=3D"Second"</div><div><br></div><div>I could imagine calling a regula=
r 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 task o=
n the class metadata either. Hardcoding everything in the Ant file is a eve=
n weaker solution.</div><div><br></div><div>I thought I would need a new pl=
ugin for this, and I checked how to write it. One has to go as high as reim=
plementing the org.generama.Plugin because there's where the rule "one outp=
ut/input" is decided (in start()). Subclassing Plugin is not an option as p=
retty much all its fields are private (and I'd have to duplicate all the co=
de from JavaGeneratingPlugin and QDoxPlugin). Then I have no description on=
 what 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 rele=
ase is not even mentioned on the site just in an email). The Maven
 build is missing a couple of dependencies for the 1.0.4 plugins and I miss=
 the sources for 1.0.5 to even try. Did I mention I hate Eclipse M2E? Short=
ly put: I see no chance of doing it myself. <br></div><div><br></div><div>D=
o you have any hint for me, how could I generate multiple files out a singl=
e Java input? Honestly said, at this moment patching together a QDox+Veloci=
ty Ant task looks to me an easier approach than using XDoclet2 :(<br></div>=
<div><br></div><div>Thanks a lot,</div><div>M<br></div></div></body></html>
---2114655128-1972364123-1316422575=:76830--


--===============2879240762570973771==
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 
--===============2879240762570973771==
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

--===============2879240762570973771==--