Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to install ANT Tasks?
[ATL] How to install ANT Tasks? [message #41180] Wed, 23 May 2007 20:31 Go to next message
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

Hello,

since everybody is talking about running the transformations with ant, I
also tried to use the ant tasks.
Unfortunately, I didn't succeed.

I installed ant.
I copied the ant-contrib-1.0b3.jar into the lib-directory of ant.

When running, I get the error:
"...failed to create task or type am3.loadModel"

After some research, I know now, that I miss the
org.eclipse.gmt.am3.tools.ant plugin.

But where can I find it and how do I install it?
Is there an update site?

Thanks and best regards

Rainer


PS: After working with ATL for some time and after having posted several
questions, I would like to tell you, that the provided documentation and
support are outstanding compared to most other transformation tools and
frameworks. This is actually one of the (not the only) great advantages of
ATL!
Re: [ATL] How to install ANT Tasks? [message #41299 is a reply to message #41180] Thu, 24 May 2007 11:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Hugo.Bruneliere.univ-nantes.fr

Rainer Bernhard a écrit :
> Hello,

Hello Bernhard,

>
> since everybody is talking about running the transformations with ant, I
> also tried to use the ant tasks.
> Unfortunately, I didn't succeed.
>
> I installed ant.
> I copied the ant-contrib-1.0b3.jar into the lib-directory of ant.
>
> When running, I get the error:
> "...failed to create task or type am3.loadModel"
>
> After some research, I know now, that I miss the
> org.eclipse.gmt.am3.tools.ant plugin.
>
> But where can I find it and how do I install it?
> Is there an update site?
>

You may install AM3 from sources instead of getting the binary version.

You can do this easily by following the instructions presented for ATL
in http://wiki.eclipse.org/index.php/ATL/How_Install_ATL_From_C VS/ .

The only difference is that you will have to open the
"org.eclipse.gmt/AM3" folder for getting the plugins (note that it is
not necessary to checkout the org.eclipse.am3.zoos.XXX plugins). The
other points of the described process remain the same.

> Thanks and best regards
>
> Rainer
>

Best regards,

Hugo

>
> PS: After working with ATL for some time and after having posted several
> questions, I would like to tell you, that the provided documentation and
> support are outstanding compared to most other transformation tools and
> frameworks. This is actually one of the (not the only) great advantages
> of ATL!


--
--------------------------------------------------------
Hugo Bruneliere - R&D Engineer
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssiniere
44322 Nantes Cedex 3 - France
office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
EMail: Hugo.Bruneliere@univ-nantes.fr
http://www.sciences.univ-nantes.fr/lina/atl/
--------------------------------------------------------
Re: [ATL] How to install ANT Tasks? [message #42075 is a reply to message #41299] Sun, 27 May 2007 13:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

I didn't manage to install AM3 from source because of some missing
libraries.
However, AM3 seems to be correctly installed from binaries cause I am able
to switch to AM3 perspective in eclipse.

I tried the anttasks with the build-File from the ATL-example
"Table2SVGPieChart".
When rightclicking on the build.xml and clicking on "run as...Ant build" I
get the following error:
------------------------------------------------
Buildfile: ...Table2SVGPieChart\build.xml
[taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.

loadModels:
[am3.loadModel] Loading of model KM3

BUILD FAILED
....Table2SVGPieChart\build.xml:62: File with following path:
'uri:http://www.eclipse.org/gmt/2005/KM3' does not exist in the workspace.

Total time: 981 milliseconds
------------------------------------------------
I downloaded antcontrib and put it in the lib-directory of ant.
Which steps are missing?

Just another question: Should it also be possible to start the build file
from console or do I have to start it using the eclipse Run as...?
Starting from console I get the following error which is slightly
different from the above...:
------------------------------------------------
failed to create task or type am3.loadModel
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
------------------------------------------


Best regards


Rainer







> Rainer Bernhard a écrit :
>> Hello,
>
> Hello Bernhard,
>
>> since everybody is talking about running the transformations with ant,
>> I also tried to use the ant tasks.
>> Unfortunately, I didn't succeed.
>> I installed ant.
>> I copied the ant-contrib-1.0b3.jar into the lib-directory of ant.
>> When running, I get the error:
>> "...failed to create task or type am3.loadModel"
>> After some research, I know now, that I miss the
>> org.eclipse.gmt.am3.tools.ant plugin.
>> But where can I find it and how do I install it?
>> Is there an update site?
>>
>
> You may install AM3 from sources instead of getting the binary version.
>
> You can do this easily by following the instructions presented for ATL
> in http://wiki.eclipse.org/index.php/ATL/How_Install_ATL_From_C VS/ .
>
> The only difference is that you will have to open the
> "org.eclipse.gmt/AM3" folder for getting the plugins (note that it is
> not necessary to checkout the org.eclipse.am3.zoos.XXX plugins). The
> other points of the described process remain the same.
>
>> Thanks and best regards
>> Rainer
>>
>
> Best regards,
>
> Hugo
>
>> PS: After working with ATL for some time and after having posted
>> several questions, I would like to tell you, that the provided
>> documentation and support are outstanding compared to most other
>> transformation tools and frameworks. This is actually one of the (not
>> the only) great advantages of ATL!
>
>



--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: [ATL] How to install ANT Tasks? [message #42106 is a reply to message #41180] Sun, 27 May 2007 19:51 Go to previous messageGo to next message
Jean Bezivin is currently offline Jean BezivinFriend
Messages: 38
Registered: July 2009
Member
"Rainer Bernhard" <rb_account@yahoo.de> a
Re: [ATL] How to install ANT Tasks? [message #42137 is a reply to message #42075] Sun, 27 May 2007 20:50 Go to previous messageGo to next message
Ã?ric Vépa is currently offline Ã?ric VépaFriend
Messages: 16
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------010101080704020609070009
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

Hi Rainer,

Rainer Bernhard wrote:
> I didn't manage to install AM3 from source because of some missing
> libraries.
> However, AM3 seems to be correctly installed from binaries cause I am
> able to switch to AM3 perspective in eclipse.

The bundle available at

http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle_20070217.zip

includes all needed for using ATL (AM3 perspective, AM3-ANT tasks,...)


Or if you have already an Eclipse 3.2 with EMF, you can use the archive
available at
http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/adt_ am3.zip

This archive also contains all needed for using ATL. But if you have
older ATL/AM3 plugins, you must removed them before copying the content
of the zip file in you Eclipse plugins directory. Or it will not works.

>
> I tried the anttasks with the build-File from the ATL-example
> "Table2SVGPieChart".
> When rightclicking on the build.xml and clicking on "run as...Ant build"
> I get the following error:
> ------------------------------------------------
> Buildfile: ...Table2SVGPieChart\build.xml
> [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>
> loadModels:
> [am3.loadModel] Loading of model KM3
>
> BUILD FAILED
> ...Table2SVGPieChart\build.xml:62: File with following path:
> 'uri:http://www.eclipse.org/gmt/2005/KM3' does not exist in the workspace.
>
> Total time: 981 milliseconds
> ------------------------------------------------
> I downloaded antcontrib and put it in the lib-directory of ant.
> Which steps are missing?

The ant-contrib.jar is not needed for a simple ANT script (but I did not
known it when I wrotes the build.xml). This Jar is only needed if you
want to use additional ANT tasks like the "IF" or "FOR" tasks.
Moreover, it will not appears in the ANT script but in the configuration
of the script (.launch created with Eclipse).

The second error is due to the am3.loadModel task usage. For loading a
metamodel by URI, the attribute "nsUri" is used instead of "path" and
the given URI not starts with "uri:" but directly with http://... .

I join as attachment a working build.xml which will works with latest
AM3-ANT tasks.

>
> Just another question: Should it also be possible to start the build
> file from console or do I have to start it using the eclipse Run as...?
> Starting from console I get the following error which is slightly
> different from the above...:
> ------------------------------------------------
> failed to create task or type am3.loadModel
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
> ------------------------------------------

I have not try it, but for launching an ANT script in the console, the
Jar file containing AM3-ANT tasks must be in the classpath. Or the tasks
like am3.loadModel will not be defined (see your error message above).
But this is an ANT problem, not an ATL one.

--
Re: [ATL] How to install ANT Tasks? [message #42207 is a reply to message #42137] Mon, 28 May 2007 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

It seems that my ATL-Version (originally installed from
ATLBundle_20070217) was corrupted due to some other plugins.
After having reinstalled the ATL Bundle, I changed the build.xml from path
to nsUri and it works.

Thanks for your help!

Best regards

Rainer


> Hi Rainer,
>
> Rainer Bernhard wrote:
>> I didn't manage to install AM3 from source because of some missing
>> libraries.
>> However, AM3 seems to be correctly installed from binaries cause I am
>> able to switch to AM3 perspective in eclipse.
>
> The bundle available at
>
> http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/ATLB undle_20070217.zip
>
> includes all needed for using ATL (AM3 perspective, AM3-ANT tasks,...)
>
>
> Or if you have already an Eclipse 3.2 with EMF, you can use the archive
> available at
> http://www.sciences.univ-nantes.fr/lina/atl/www/atldemo/adt_ am3.zip
>
> This archive also contains all needed for using ATL. But if you have
> older ATL/AM3 plugins, you must removed them before copying the content
> of the zip file in you Eclipse plugins directory. Or it will not works.
>
>>
>> I tried the anttasks with the build-File from the ATL-example
>> "Table2SVGPieChart".
>> When rightclicking on the build.xml and clicking on "run as...Ant build"
>> I get the following error:
>> ------------------------------------------------
>> Buildfile: ...Table2SVGPieChart\build.xml
>> [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>
>> loadModels:
>> [am3.loadModel] Loading of model KM3
>>
>> BUILD FAILED
>> ...Table2SVGPieChart\build.xml:62: File with following path:
>> 'uri:http://www.eclipse.org/gmt/2005/KM3' does not exist in the
>> workspace.
>>
>> Total time: 981 milliseconds
>> ------------------------------------------------
>> I downloaded antcontrib and put it in the lib-directory of ant.
>> Which steps are missing?
>
> The ant-contrib.jar is not needed for a simple ANT script (but I did not
> known it when I wrotes the build.xml). This Jar is only needed if you
> want to use additional ANT tasks like the "IF" or "FOR" tasks.
> Moreover, it will not appears in the ANT script but in the configuration
> of the script (.launch created with Eclipse).
>
> The second error is due to the am3.loadModel task usage. For loading a
> metamodel by URI, the attribute "nsUri" is used instead of "path" and
> the given URI not starts with "uri:" but directly with http://... .
>
> I join as attachment a working build.xml which will works with latest
> AM3-ANT tasks.
>
>>
>> Just another question: Should it also be possible to start the build
>> file from console or do I have to start it using the eclipse Run as...?
>> Starting from console I get the following error which is slightly
>> different from the above...:
>> ------------------------------------------------
>> failed to create task or type am3.loadModel
>> Cause: The name is undefined.
>> Action: Check the spelling.
>> Action: Check that any custom tasks/types have been declared.
>> Action: Check that any <presetdef>/<macrodef> declarations have taken
>> place.
>> ------------------------------------------
>
> I have not try it, but for launching an ANT script in the console, the
> Jar file containing AM3-ANT tasks must be in the classpath. Or the tasks
> like am3.loadModel will not be defined (see your error message above).
> But this is an ANT problem, not an ATL one.
>



--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: [ATL] How to install ANT Tasks? [message #42225 is a reply to message #42207] Mon, 28 May 2007 12:05 Go to previous message
Ã?ric Vépa is currently offline Ã?ric VépaFriend
Messages: 16
Registered: July 2009
Junior Member
Rainer Bernhard wrote:
> It seems that my ATL-Version (originally installed from
> ATLBundle_20070217) was corrupted due to some other plugins.
> After having reinstalled the ATL Bundle, I changed the build.xml from
> path to nsUri and it works.
>
> Thanks for your help!

You are welcome. :-)

>
> Best regards
>
> Rainer

--
Éric Vépa

SODIUS
6, rue de Cornouaille - BP 91941
44319 Nantes, France
Email: evepa@sodius.com

www.mdworkbench.com
Draw more value from your models
Previous Topic:[ATL] Compile ATL outside Eclipse
Next Topic:[ATL] problems with helpers
Goto Forum:
  


Current Time: Thu Jan 21 04:22:15 GMT 2021

Powered by FUDForum. Page generated in 0.02500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top