|
Re: [ATL] Packaging bug in org.eclipse.m2m.atl.engine.vm plugin [message #81606 is a reply to message #81510] |
Mon, 19 May 2008 07:53 |
William Piers Messages: 301 Registered: July 2009 |
Senior Member |
|
|
Hello,
The update site you reference does match an old ATL version, which is no
more maintained. We recently switch to correct build procedures and
freeze the odl ATL version in this "Old downloads" page.
The true download page is available here :
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl
and the update sites :
http://www.eclipse.org/modeling/m2m/updates/
I will try to make the old page more clear, thanks for reporting.
Best regards,
William
Bruno Haible a écrit :
> Hi,
>
> I'm trying to programmatically launch an ATL transformation. I'm using
> Eclipse 3.3.1.1 (JDK 1.5.0) and downloaded into it all available plugins
> from the update site at
> http://download.eclipse.org/modeling/m2m/atl/updates/2.0.0
>
> When I write this code into a plugin project of mine:
>
> import org.eclipse.m2m.atl.engine.AtlModelHandler;
> ...
> AtlModelHandler modelHandler =
> AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
> modelHandler.getMof();
>
> I get an error from the last line:
> "The project was not built since its build path is incomplete.
> Cannot find the class file for
> org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel.
> Fix the build path then try building this project"
>
> The class ASMModel is present in file
> plugins/org.eclipse.m2m.atl.engine.vm_2.0.0/org/eclipse/m2m/ atl/engine/vm/nativelib/ASMModel.class
> in the Eclipse instance. The plugin org.eclipse.m2m.atl.engine.vm is among
> the dependencies of my plugin. But under the plugin properties,
> Java Build Path > Libraries > Plug-in Dependencies, no class folder nor a
> jar file, corresponding to plugin org.eclipse.m2m.atl.engine.vm, appears.
>
> I find it strange that the file
> org.eclipse.m2m.atl.engine.vm_2.0.0/META-INF/MANIFEST.MF
> has no Bundle-ClassPath line. Is this normal? Isn't
> org.eclipse.m2m.atl.engine.vm meant to export its classes?
>
> When I jar the .class files of this plugin and mention it in a
> Bundle-ClassPath line in
> plugins/org.eclipse.m2m.atl.engine.vm_2.0.0/META-INF/MANIFES T.MF
> the problem goes away.
>
> Bruno
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04091 seconds