I finally find out.
The problem comes from the log file creation.

When generating the Java code from "mymodel.uml" to "dir" folder, a log file
named "dirmymodel.log.txt" is created in the PARENT directory.
Don't know if it is good practice, but I usually create my .uml file in the
Topcased project root directory, with typically a tree like the following
one : MyEclipseWorkspace/MyTopcasedProject/mymodel.uml

With the default parameters, Topcased try to create the file
dirmymodel.log.txt in the Workspace root directory, what seems to be
forbidden by Eclipse as shown by this lines from the Acceleo console :
java.lang.reflect.InvocationTargetException
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
...
Caused by: org.eclipse.core.runtime.CoreException: The file
/dirmymodel.log.txt could not be created in the root container

Solution :
Create a new folder "src", edit the mymodel.uml properties, set the target
directory to /MyTopcasedProject/src, and all goes right !

Jean-Pierre


2010/11/28 Jean-Pierre PECUCHET <[email protected]>

> Hi,
> I found this discussion from one year ago in the archives.
> I have the same problem with Java generation in TopCased 4.1.0.
> Any model, even the simplest, throws "Error : Duplicate attribute for
> Property element ."
> But here, no generation at all !
> Hopefully, I could find a solution using a native Acceleo translation
> through an Acceleo Translative Editor.
> But the question is why is-it working with a direct Acceleo path and not
> with the "Code Generator" menu item ?
> Is-it possible to unplug the model validator ?
>
> Regards,
>
> Jean-Pierre PECUCHET
> INSA Rouen
>
>
>
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to