You could configure the advices at the generator component, which  
enables for setting the encoding. Then you could overload the  
property to access the advices. Not that nice as using the  
GeneratorAdvice component but should work.

<property value="advices" value=""> <!-- default is empty, can be  
overloaded by calling workflow -->

...

<component class="oaw.xpand2.Generator">
    ...
    <fileEncoding value="ISO-8859-1"/>
    <advices value="${advices}"/>
</component>

HTH,
~Karsten

Am 26.06.2007 um 23:47 schrieb Patrik Nordwall:

>
> SpecialCases.xpt is an AOP configuration located in workflow.oaw in  
> the
> helloworld project.
>
>       <component adviceTarget="generator" id="reflectionAdvice"
>                       class="oaw.xpand2.GeneratorAdvice">
>               <advices value="templates::SpecialCases" />
>       </component>
>
>
> I don't know how to set the encoding for this kind of component. I  
> have done
> it for generator components, but the GeneratorAdvice doesn't use  
> the same
> property. Anyone from the oAW team who knows about this?
>
> Joachen, to be able to continue with the tutorial you can remove the
> GeneratorAdvice component from workflow.oaw. It will work fine  
> without it.
>
> /Patrik
>
>
>
> thorque wrote:
>>
>> Hello Jochen,
>>
>> On 6/26/07, Jochen Haeussler <[EMAIL PROTECTED]>
>> wrote:
>>>
>>>
>>>
>>> There seems to be an encoding problem with the file  
>>> SpecialCases.xpt...?
>>> Is this a known issue?
>>>
>>> Some info about my setup
>>> Maven version: 2.0.7
>>> Java version: 1.5.0_08
>>> OS name: "linux" version: "2.6.18.2-34-default" arch: "amd64"
>>> Java: sun
>>> java version "1.5.0_08"
>>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08- 
>>> b03)
>>> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_08-b03, mixed mode)
>>
>>
>> try to add
>>
>> <fileEncoding value="ISO-8859-1"/>
>>
>> to the generator configuration in the workflow file.
>>
>> Thorsten
>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Fornax-developer mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/templates- 
> SpecialCases.xpt%3A-unexpected-char%3A-0xEF- 
> tf3982248s17564.html#a11314476
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Fornax-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to