Re: Parsing TDD Files

"Shelley, Ryan" <[email protected]> Wed, 11 Apr 2012 18:00:56 -0700
Newsgroups gmane.comp.text.fmpp
Message-ID <CBAB7742.9EAE%[email protected]>
--===============3031989260916627258==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_CBAB77429EAEryanshelleyemaildisneycom_"

--_000_CBAB77429EAEryanshelleyemaildisneycom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I ended up getting it to work with:


String propStr =3D Interpreter.loadTdd(in, "ISO-8859-1");

Map propMap =3D Interpreter.evalAsHash(propStr);


-Ryan

From: "Shelley, Ryan" <[email protected]<mailto:[email protected]=
om>>
Reply-To: FMPP open discussion <[email protected]<mailto:fmpp=
[email protected]>>
Date: Wed, 11 Apr 2012 16:32:10 -0700
To: "[email protected]<mailto:[email protected]=
>" <[email protected]<mailto:[email protected]>=
>
Subject: [FMPP] Parsing TDD Files

I'd like to use the TDD parsing functionality for reading properties files =
for my application. I've used FMPP for generating configuration files from =
templates, but I'd like to skip the generation stage, and use a TDD as the =
data source for run-time settings. Is this possible, or can I use a particu=
lar sub-library of FMPP to accomplish this?  Thanks!

-Ryan

--_000_CBAB77429EAEryanshelleyemaildisneycom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:=
 space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-si=
ze: 14px; font-family: Calibri, sans-serif; "><div>I ended up getting it to=
 work with:</div><div><br></div><div><p style=3D"margin: 0.0px 0.0px 0.0px =
0.0px; font: 11.0px Monaco"><span class=3D"Apple-tab-span" style=3D"white-s=
pace:pre">		</span>String propStr =3D Interpreter.loadTdd(in, <span style=
=3D"color: #3e38f5">"ISO-8859-1"</span>);</p>
<p style=3D"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre">		</span><span style=3D"tex=
t-decoration: underline">Map</span> propMap =3D Interpreter.evalAsHash(prop=
Str);</p><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">=
<br></p><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">-=
Ryan</p></div><div><br></div><span id=3D"OLK_SRC_BODY_SECTION"><div style=
=3D"font-family:Calibri; font-size:11pt; text-align:left; color:black; BORD=
ER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADD=
ING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RI=
GHT: medium none; PADDING-TOP: 3pt"><span style=3D"font-weight:bold">From: =
</span> "Shelley, Ryan" &lt;<a href=3D"mailto:[email protected]">Ryan=
[email protected]</a>&gt;<br><span style=3D"font-weight:bold">Reply-To: <=
/span> FMPP open discussion &lt;<a href=3D"mailto:[email protected]=
ge.net">[email protected]</a>&gt;<br><span style=3D"font-weig=
ht:bold">Date: </span> Wed, 11 Apr 2012 16:32:10 -0700<br><span style=3D"fo=
nt-weight:bold">To: </span> "<a href=3D"mailto:[email protected].=
net">[email protected]</a>" &lt;<a href=3D"mailto:fmpp-open@l=
ists.sourceforge.net">[email protected]</a>&gt;<br><span styl=
e=3D"font-weight:bold">Subject: </span> [FMPP] Parsing TDD Files<br></div><=
div><br></div><div><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-siz=
e: 14px; font-family: Calibri, sans-serif; "><div>I'd like to use the TDD p=
arsing functionality for reading properties files for my application. I've =
used FMPP for generating configuration files from templates, but I'd like t=
o skip the generation stage, and use a TDD as the data source for run-time =
settings. Is this possible, or can I use a particular sub-library of FMPP t=
o accomplish this? &nbsp;Thanks!</div><div><br></div><div>-Ryan</div></div>=
</div></span></body></html>

--_000_CBAB77429EAEryanshelleyemaildisneycom_--


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

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
--===============3031989260916627258==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============3031989260916627258==--