You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan John Sowatskey <na...@nathan.to> on 2009/09/15 14:20:46 UTC
Snippets in .properties files
Hi all
Has anyone been able to get the snippets to work in a .properties file:
I have this:
//START SNIPPET: message_examples
# Exception message definitions
APP-ASB-CCPN-300=An UnChecked message (1) with {0}
APP-ASB-CCPN-400=A Checked message (1) with {0}
APP-ASB-CCPN-500=An UnChecked message (2) with {0}
APP-ASB-CCPN-600=A Checked message (2) with {0}
//END SNIPPET: message_examples
And this:
%{snippet|id=message_examples|file=src/test/resources/com/x/y/messages/excep
tions.properties}
I also tried with #START ...
It didn't work. No obvious error, but no generated file either.
Should this work?
Many thanks
Nathan
--
Nathan Sowatskey (nsowatsk@cisco.com) - Technical Leader, NMTG XMP -
+34-638-083-675
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snippets in .properties files
Posted by nsowatsk <ns...@cisco.com>.
Hi
Thanks for the note that it should work :-)
No generated file means that there is no HTML generated from the APT file
with the %{snippet ...} in it.
Thanks
Nathan
On 15/09/2009 15:38, "Lukas Theussl" <lt...@apache.org> wrote:
>
> It works for me. What's your site-plugin/doxia version? What do you mean with
> "no
> generated file ..."? The snippet is supposed to be included in the file.
>
> -Lukas
>
>
> Nathan John Sowatskey wrote:
>> Hi all
>>
>> Has anyone been able to get the snippets to work in a .properties file:
>>
>> I have this:
>>
>> //START SNIPPET: message_examples
>> # Exception message definitions
>> APP-ASB-CCPN-300=An UnChecked message (1) with {0}
>> APP-ASB-CCPN-400=A Checked message (1) with {0}
>> APP-ASB-CCPN-500=An UnChecked message (2) with {0}
>> APP-ASB-CCPN-600=A Checked message (2) with {0}
>> //END SNIPPET: message_examples
>>
>> And this:
>>
>> %{snippet|id=message_examples|file=src/test/resources/com/x/y/messages/excep
>> tions.properties}
>>
>> I also tried with #START ...
>>
>> It didn't work. No obvious error, but no generated file either.
>>
>> Should this work?
>>
>> Many thanks
>>
>> Nathan
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Snippets in .properties files
Posted by Lukas Theussl <lt...@apache.org>.
It works for me. What's your site-plugin/doxia version? What do you mean with "no
generated file ..."? The snippet is supposed to be included in the file.
-Lukas
Nathan John Sowatskey wrote:
> Hi all
>
> Has anyone been able to get the snippets to work in a .properties file:
>
> I have this:
>
> //START SNIPPET: message_examples
> # Exception message definitions
> APP-ASB-CCPN-300=An UnChecked message (1) with {0}
> APP-ASB-CCPN-400=A Checked message (1) with {0}
> APP-ASB-CCPN-500=An UnChecked message (2) with {0}
> APP-ASB-CCPN-600=A Checked message (2) with {0}
> //END SNIPPET: message_examples
>
> And this:
>
> %{snippet|id=message_examples|file=src/test/resources/com/x/y/messages/excep
> tions.properties}
>
> I also tried with #START ...
>
> It didn't work. No obvious error, but no generated file either.
>
> Should this work?
>
> Many thanks
>
> Nathan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org