Re: any way to flag files that where replacements occured ?
Erich Oliphant <[email protected]> Wed, 03 Nov 2004 13:29:25 -0500
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------070008010301010408060200
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
At this point just detecting the fact that a file was infact changed
(had interpolations) would be sufficient. At install time, I just want
to save off originals that have interpolations so that an install set
can be updated if there are parameter/variable changes. The actual
variable is a nice to have but not necessary now. With the exception of
this issue FMPP seems to meet all of my other requirements. If you
could point me in the right direction, I'd be more than happy to work on
a hack and send it back to you so that you can decide whether or not to
include it in your next version.
Daniel Dekany wrote:
>Thursday, October 28, 2004, 9:56:39 PM, Erich Oliphant wrote:
>
>
>
>>Hmm,
>>Yeah, I looked at the Freemarker Template class, nothing there to go
>>on. Is there somewhere in FMPP that we could perhaps compare the src
>>to the destination file?
>>
>>
>
>Do you want to detect if a variable is actually accessed during template
>execution, or simply you want to know if a file contains any
>interpolations (${...})? The latest can be find out from the Template
>object (it has an undocumented API for traversing the syntax tree).
>However, FMPP has no built-in hook that you could utilize. But of course
>it's open source so you can hack it... And, in mid november I hope to
>really finish something that I have to do nowadays, and then I will have
>time to continue my opens source activities, but until that do not
>expect any new FMPP features from me... in November we will see what
>features will be added, etc.
>
>
>
>>Daniel Dekany wrote:
>>
>>
>>
>>>Thursday, October 28, 2004, 7:33:48 PM, Erich Oliphant wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Hi,
>>>>I am using FMPP as the basis of an installer for our system. I was
>>>>wondering if there's a way to find out (maybe via a callback?) which
>>>>files FreeMarker/FMPP actually performed replacements in, and as a bonus
>>>>which variables were replaced.
>>>>
>>>>
>>>>
>>>>
>>>No way... (At least yet...)
>>>
>>>
>
>
>____________________________________________________________________
>Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
>Probald ki most! http://www.freestart.hu
>
>
>-------------------------------------------------------
>This Newsletter Sponsored by: Macrovision
>For reliable Linux application installations, use the industry's leading
>setup authoring tool, InstallShield X. Learn more and evaluate
>today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
>_______________________________________________
>fmpp-open mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/fmpp-open
>
>
>
>
--------------070008010301010408060200
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
At this point just detecting the fact that a file was infact changed
(had interpolations) would be sufficient. At install time, I just
want to save off originals that have interpolations so that an install
set can be updated if there are parameter/variable changes. The
actual variable is a nice to have but not necessary now. With the
exception of this issue FMPP seems to meet all of my other
requirements. If you could point me in the right direction, I'd be
more than happy to work on a hack and send it back to you so that you
can decide whether or not to include it in your next version.<br>
<br>
Daniel Dekany wrote:<br>
<blockquote type="cite"
cite="[email protected]">
<pre wrap="">Thursday, October 28, 2004, 9:56:39 PM, Erich Oliphant wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hmm,
Yeah, I looked at the Freemarker Template class, nothing there to go
on. Is there somewhere in FMPP that we could perhaps compare the src
to the destination file?
</pre>
</blockquote>
<pre wrap=""><!---->
Do you want to detect if a variable is actually accessed during template
execution, or simply you want to know if a file contains any
interpolations (${...})? The latest can be find out from the Template
object (it has an undocumented API for traversing the syntax tree).
However, FMPP has no built-in hook that you could utilize. But of course
it's open source so you can hack it... And, in mid november I hope to
really finish something that I have to do nowadays, and then I will have
time to continue my opens source activities, but until that do not
expect any new FMPP features from me... in November we will see what
features will be added, etc.
</pre>
<blockquote type="cite">
<pre wrap="">Daniel Dekany wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thursday, October 28, 2004, 7:33:48 PM, Erich Oliphant wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I am using FMPP as the basis of an installer for our system. I was
wondering if there's a way to find out (maybe via a callback?) which
files FreeMarker/FMPP actually performed replacements in, and as a bonus
which variables were replaced.
</pre>
</blockquote>
<pre wrap="">No way... (At least yet...)
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! <a class="moz-txt-link-freetext" href="http://www.freestart.hu">http://www.freestart.hu</a>
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. <a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/">http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/</a>
_______________________________________________
fmpp-open mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/fmpp-open">https://lists.sourceforge.net/lists/listinfo/fmpp-open</a>
</pre>
</blockquote>
</body>
</html>
--------------070008010301010408060200--
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click