|
From: Carlos S. <ca...@ap...> - 2005-08-29 21:00:34
|
Hi,
Jelly can be very desperating at some times. Something that usually works i=
s=20
${context.getVariable('maven.sdocbook.src.dir')}
instead of
${maven.sdocbook.src.dir}
if you can send a patch in unified diff format I'll try to fix it in CVS.
Regards.
On 8/29/05, Julian C. Dunn <Jul...@cb...> wrote:
> Hi all:
>=20
> I've been trying to fix this bug:
>=20
> http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1182778&grou=
p_id=3D61626&atid=3D497853
>=20
> I'm a novice Jelly hacker, but I can see what the problem is: in the
> generate-html target, the output filename that is passed to the
> sdocbook:transform goal doesn't contain the full path information. Ok,
> so what I want to to is to assemble a variable which is basically the
> full path to the output file, with the source directory substituted with
> the target. I tried this:
>=20
> <echo>TESTING:
> ${file.absolutePath.replaceFirst(maven.sdocbook.src.dir,maven.sdocbook.ge=
nerated)}</echo>
>=20
> This gets me a NPE though. However, if I do this:
>=20
> <j:set var=3D"t1" value=3D"${maven.sdocbook.src.dir}"/>
> <j:set var=3D"t2" value=3D"${maven.sdocbook.generated}"/>
> <j:set var=3D"ofile" value=3D"${file.absolutePath.replaceFirst(t1,
> t2)}"/>
>=20
> "ofile" is set to the right filename (less the extension which I fix up
> later).
>=20
> Can anyone tell me why this is?
>=20
> - Julian
>=20
> --
> -- Julian C. Dunn, B.A.Sc, P.Eng. <Jul...@cb...>
> -- Platform Administrator, CBC.ca Production & Operations
> -- Office: 2C310-Q * Tel.: (416) 205-3311 x5592
>=20
>=20
>=20
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic=
es
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q=
A
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Maven-plugins-developer mailing list
> Mav...@li...
> https://lists.sourceforge.net/lists/listinfo/maven-plugins-developer
>
|