[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt] Re: [MOFScript] Problems with the output file.

Hi Toñi

A new version (1.1.10) is available, it fixes the file stream bug.

Regards,
Gøran

"Toñi Reina Quintero" <reinaqu@xxxxxxxxx> wrote in message 
news:eetso5$d1c$1@xxxxxxxxxxxxxxxxxxxx
> Hi Gøran,
>
>    I still have the same problem. I thought it was due to a directory path
> problem.  But after changing the .m2t root generation dir, and checking 
> that
> now the file is generated in the right place, the file is not generated
> completed. However, if I comment the "file" sentence, and the result is
> printed into the standard output insted of the file. The output that 
> should
> be produced is printed completely.
>
>   Where can it be the problem?
>
>   Regards,
>    Toñi
>
> "Gøran K. Olsen" <Goran.K.Olsen@xxxxxxxxx> escribió en el mensaje 
> news:eethjs$fa0$1@xxxxxxxxxxxxxxxxxxxx
>> Hi Toñi,
>>
>> the "Root Generation Dir" is only used if the .m2t file property is not 
>> declared.
>> Right-click the transformation file - properties - and add your output 
>> directory to the "Select Root Output Directory:".
>> If you create a new .mt2 file in your project, the "root generation dir" 
>> from preferences page is used as default.
>>
>>
>> Regards,
>> Gøran
>>
>>
>> "Toñi Reina Quintero" <reinaqu@xxxxxxxxx> wrote in message 
>> news:eerruc$r7f$1@xxxxxxxxxxxxxxxxxxxx
>>>I have created a project in a computer, and part of the project is a 
>>>MOFScript file.
>>> Everything was ok, the transformations run as they were supposed to do.
>>> Now, I have installed the MOFScript plugin into another computer, and I 
>>> have moved the project just by copying the directory containing the 
>>> project into this other computer, but in another path.
>>> The output directory in this computer is : d:\SWF\
>>>
>>>
>>> I have changed the MOFScript preferences in the eclipse installation of 
>>> the second computer.  In this computer the output directory is: E:\Mis 
>>> Documentos\work-in-progress\Kermeta\EclipseWS\SpringWF\output.
>>>
>>> The first sentence of the main method is
>>>    file f1(self.id +".xml")
>>>
>>> The problem arises when the output file is generated. The file is 
>>> generated in the d:\SWF\ directory. However, in the second computer, 
>>> this directory doesn't exist (but this is not a problem because 
>>> MOFScript creates this directory). The problem is that the generated 
>>> file is not completed.
>>>
>>> On the other hand, if  I comment the line  file f1(self.id +".xml") the 
>>> result is printed into the standard output. In this case, the generated 
>>> file is produced completely.
>>>
>>> The question is: Is there any place or any file where the old 
>>> configuration is stored?
>>> And the other question is: If the root generation dir is pointing to the 
>>> E:\Mis Documentos\work-in-progress\Kermeta\EclipseWS\SpringWF\output 
>>> directory, why the generated file is being created in the d:\SWF 
>>> directory?
>>>
>>> Thanks and best regards
>>>    Toñi Reina
>>>
>>>
>>>
>>>
>>
>>
>
>