Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo Compiler
Acceleo Compiler [message #644045] Thu, 09 December 2010 09:07 Go to next message
dieppi is currently offline dieppi
Messages: 27
Registered: November 2010
Junior Member
Hi,

i use the acceleoCompiler.jar calling via ant task.

Acceleo Compiler

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2t/org .eclipse.acceleo/plugins/org.eclipse.acceleo.parser/lib/acce leoCompiler.jar?revision=1.6&root=Modeling_Project

I get the following exception

Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: java.net.ConnectException: Connection timed out: connect
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)


My ant task

<target name="compileAcceleo">
<acceleoCompiler
sourceFolders="${WORKSPACE}/src">
</acceleoCompiler>
</target>


Best regards
Maik
Re: Acceleo Compiler [message #644051 is a reply to message #644045] Thu, 09 December 2010 09:26 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1632
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080202050103030600020007
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Maik,

This, too, is related to package registration IIRC (you're trying to
load a model which metamodel is defined as "http://" and EMF does not
find the EPackage, thus tries on the net ... or something like that,
can't recall :p).

Adding the EMF newsgroup to the CC: list so that Ed can see this and,
hopefully, give a better answer ^^.

Laurent Goubet
Obeo

On 09/12/2010 10:07, Maik wrote:
> Hi,
>
> i use the acceleoCompiler.jar calling via ant task.
>
> Acceleo Compiler
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2t/org .eclipse.acceleo/plugins/org.eclipse.acceleo.parser/lib/acce leoCompiler.jar?revision=1.6&root=Modeling_Project
>
>
> I get the following exception
>
> Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
> ticWrappedException: java.net.ConnectException: Connection timed out:
> connect
> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
> mandLoadException(ResourceSetImpl.java:315)
>
>
> My ant task
>
> <target name="compileAcceleo">
> <acceleoCompiler sourceFolders="${WORKSPACE}/src">
> </acceleoCompiler>
> </target>
>
>
> Best regards
> Maik


--------------080202050103030600020007
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------080202050103030600020007--
Re: Acceleo Compiler [message #644150 is a reply to message #644051] Thu, 09 December 2010 16:57 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4110
Registered: July 2009
Senior Member
Hi Laurent, Maik

EMF cannot tell whether the http:// is logical or physical, so it has to
try, unless you provide a custom URIResolver that traps net access.

[EMF used to try repeatedly for every reference; now it caches the
failure so that you only get one network failure.]

Regards

Ed Willink

On 09/12/2010 09:26, Laurent Goubet wrote:
> Hi Maik,
>
> This, too, is related to package registration IIRC (you're trying to
> load a model which metamodel is defined as "http://" and EMF does not
> find the EPackage, thus tries on the net ... or something like that,
> can't recall :p).
>
> Adding the EMF newsgroup to the CC: list so that Ed can see this and,
> hopefully, give a better answer ^^.
>
> Laurent Goubet
> Obeo
>
> On 09/12/2010 10:07, Maik wrote:
>> Hi,
>>
>> i use the acceleoCompiler.jar calling via ant task.
>>
>> Acceleo Compiler
>>
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2t/org .eclipse.acceleo/plugins/org.eclipse.acceleo.parser/lib/acce leoCompiler.jar?revision=1.6&root=Modeling_Project
>>
>>
>>
>> I get the following exception
>>
>> Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
>> ticWrappedException: java.net.ConnectException: Connection timed out:
>> connect
>> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
>> mandLoadException(ResourceSetImpl.java:315)
>>
>>
>> My ant task
>>
>> <target name="compileAcceleo">
>> <acceleoCompiler sourceFolders="${WORKSPACE}/src">
>> </acceleoCompiler>
>> </target>
>>
>>
>> Best regards
>> Maik
>
Re: Acceleo Compiler [message #644155 is a reply to message #644051] Thu, 09 December 2010 17:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26152
Registered: July 2009
Senior Member
Guys,

Comments below.

Laurent Goubet wrote:
> Hi Maik,
>
> This, too, is related to package registration IIRC (you're trying to
> load a model which metamodel is defined as "http://" and EMF does not
> find the EPackage, thus tries on the net ... or something like that,
> can't recall :p).
Yes, if the package isn't registered, the logical nsURI is used as the
physical location URI.
>
> Adding the EMF newsgroup to the CC: list so that Ed can see this and,
> hopefully, give a better answer ^^.
>
> Laurent Goubet
> Obeo
>
> On 09/12/2010 10:07, Maik wrote:
>> Hi,
>>
>> i use the acceleoCompiler.jar calling via ant task.
>>
>> Acceleo Compiler
>>
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2t/org .eclipse.acceleo/plugins/org.eclipse.acceleo.parser/lib/acce leoCompiler.jar?revision=1.6&root=Modeling_Project
>>
>>
>>
>> I get the following exception
>>
>> Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
>> ticWrappedException: java.net.ConnectException: Connection timed out:
>> connect
>> at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
>> mandLoadException(ResourceSetImpl.java:315)
>>
>>
>> My ant task
>>
>> <target name="compileAcceleo">
>> <acceleoCompiler sourceFolders="${WORKSPACE}/src">
>> </acceleoCompiler>
>> </target>
>>
>>
>> Best regards
>> Maik
>
Re: Acceleo Compiler [message #644444 is a reply to message #644051] Sat, 11 December 2010 12:39 Go to previous messageGo to next message
dieppi is currently offline dieppi
Messages: 27
Registered: November 2010
Junior Member
Hi Laurent,

may you can show me a example how to use the dependencies attribute in the acceleoCompiler ant task?

Best reagards
Maik
Re: Acceleo Compiler [message #644781 is a reply to message #644444] Tue, 14 December 2010 08:42 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1632
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070208040206000206020404
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Maik,

I am not the one who wrote this ant task and as such am not that
familiar with it myself. Maybe this message (
http://www.eclipse.org/forums/index.php?t=msg&goto=64391 4&S=b068bba0294b95a3352f2b3a4578d22b
) from Sebastien Roy will help?

Laurent Goubet
Obeo

On 11/12/2010 13:39, Maik wrote:
> Hi Laurent,
>
> may you can show me a example how to use the dependencies attribute in
> the acceleoCompiler ant task?
>
> Best reagards
> Maik


--------------070208040206000206020404
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------070208040206000206020404--
Previous Topic:[JET2] JET2 Editor?
Next Topic:[Acceleo 3] continuous integration on acceleo projects
Goto Forum:
  


Current Time: Fri Oct 31 07:13:19 GMT 2014

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

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