Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] EMTL files not contained in build
[Acceleo] EMTL files not contained in build [message #986042] Sat, 17 November 2012 14:58 Go to next message
Eclipse User
Hi all,

don't know why this just started to fail (worked for several weeks without
problems) but from one day to another the build of the EMTL files, or more
precisely the export into my bundle via an update site, does not work
anymore. Well, not exactly from one day to another, I did refactor the
packages and the project name.

However, the Acceleo builder is active, the nature is set and the code
generation runs from within the started instance of my dev environment. The
EMTL files are not exported, neither by using an update site nor by using
"deployable plugins an fragments".

Funny things is that I created a new Acceleo project from scratch with the
same settings, and the EMTL files are generated properly for the newly
created project. I'm pretty sure the incorrect behavior must be related to
my refactorings and I'm hoping for some hints from you guys.

I'm using acceleo 3.2.0 with Indigo.

Any ideas?

Marc-Florian
Re: [Acceleo] EMTL files not contained in build [message #986075 is a reply to message #986042] Sun, 18 November 2012 06:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

Don't use 3.2; it has a variety of builder issues, that make it
unuseable for me.

3.3 is much better, but even then particularly after a GIT branch change
it will fail to build EMTL's, but these appear after a trivial *.mtl edit.

Regards

Ed Willink

On 17/11/2012 19:58, Florian Wendland wrote:
> Hi all,
>
> don't know why this just started to fail (worked for several weeks
> without problems) but from one day to another the build of the EMTL
> files, or more precisely the export into my bundle via an update site,
> does not work anymore. Well, not exactly from one day to another, I
> did refactor the packages and the project name.
>
> However, the Acceleo builder is active, the nature is set and the code
> generation runs from within the started instance of my dev
> environment. The EMTL files are not exported, neither by using an
> update site nor by using "deployable plugins an fragments".
>
> Funny things is that I created a new Acceleo project from scratch with
> the same settings, and the EMTL files are generated properly for the
> newly created project. I'm pretty sure the incorrect behavior must be
> related to my refactorings and I'm hoping for some hints from you guys.
>
> I'm using acceleo 3.2.0 with Indigo.
>
> Any ideas?
>
> Marc-Florian
Re: [Acceleo] EMTL files not contained in build [message #986145 is a reply to message #986075] Mon, 19 November 2012 03:19 Go to previous messageGo to next message
Eclipse User
Hi Ed,

thanks for your prompt response. Just tried with Acceleo 3.3.1, but with the
same - i.e. no at all - success. The EMTL files are still not generated.
Wow, that gives me really a headache.

Any further hints?

Regards,
Marc-Florian

"Ed Willink" schrieb im Newsbeitrag news:k8afom$hnr$1@xxxxxxxxe.org...

Hi

Don't use 3.2; it has a variety of builder issues, that make it
unuseable for me.

3.3 is much better, but even then particularly after a GIT branch change
it will fail to build EMTL's, but these appear after a trivial *.mtl edit.

Regards

Ed Willink

On 17/11/2012 19:58, Florian Wendland wrote:
> Hi all,
>
> don't know why this just started to fail (worked for several weeks without
> problems) but from one day to another the build of the EMTL files, or more
> precisely the export into my bundle via an update site, does not work
> anymore. Well, not exactly from one day to another, I did refactor the
> packages and the project name.
>
> However, the Acceleo builder is active, the nature is set and the code
> generation runs from within the started instance of my dev environment.
> The EMTL files are not exported, neither by using an update site nor by
> using "deployable plugins an fragments".
>
> Funny things is that I created a new Acceleo project from scratch with the
> same settings, and the EMTL files are generated properly for the newly
> created project. I'm pretty sure the incorrect behavior must be related to
> my refactorings and I'm hoping for some hints from you guys.
>
> I'm using acceleo 3.2.0 with Indigo.
>
> Any ideas?
>
> Marc-Florian
Re: [Acceleo] EMTL files not contained in build [message #986169 is a reply to message #986145] Mon, 19 November 2012 04:55 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

For the Eclipse OCL distribution for which deployment on a Hudson server
gives additional difficulties, I redesignate *.emtl files as sources in
a src2 folder.

Building is then trivial; for an Acceleo-less configuration the Java
builder just copies src2/.../*.emtl to bin/.../*.emtl. Job done.

During development, I add the Acceleo nature, remove src2 from the
classpath and uncomment
#customBuildCallbacks = build.acceleo
in build.properties.

Once a development phase is finished; diff src2/.../*.emtl and
bin/.../*.emtl, update and commit to your CMS.

See GIT\org.eclipse.ocl\examples\org.eclipse.ocl.examples.codegen\src2.

Regards

Ed Willink

On 19/11/2012 08:19, Florian Wendland wrote:
> Hi Ed,
>
> thanks for your prompt response. Just tried with Acceleo 3.3.1, but
> with the same - i.e. no at all - success. The EMTL files are still not
> generated.
> Wow, that gives me really a headache.
>
> Any further hints?
>
> Regards,
> Marc-Florian
>
> "Ed Willink" schrieb im Newsbeitrag
> news:k8afom$hnr$1@xxxxxxxxe.org...
>
> Hi
>
> Don't use 3.2; it has a variety of builder issues, that make it
> unuseable for me.
>
> 3.3 is much better, but even then particularly after a GIT branch change
> it will fail to build EMTL's, but these appear after a trivial *.mtl
> edit.
>
> Regards
>
> Ed Willink
>
> On 17/11/2012 19:58, Florian Wendland wrote:
>> Hi all,
>>
>> don't know why this just started to fail (worked for several weeks
>> without problems) but from one day to another the build of the EMTL
>> files, or more precisely the export into my bundle via an update
>> site, does not work anymore. Well, not exactly from one day to
>> another, I did refactor the packages and the project name.
>>
>> However, the Acceleo builder is active, the nature is set and the
>> code generation runs from within the started instance of my dev
>> environment. The EMTL files are not exported, neither by using an
>> update site nor by using "deployable plugins an fragments".
>>
>> Funny things is that I created a new Acceleo project from scratch
>> with the same settings, and the EMTL files are generated properly for
>> the newly created project. I'm pretty sure the incorrect behavior
>> must be related to my refactorings and I'm hoping for some hints from
>> you guys.
>>
>> I'm using acceleo 3.2.0 with Indigo.
>>
>> Any ideas?
>>
>> Marc-Florian
>
Re: [Acceleo] EMTL files not contained in build [message #986795 is a reply to message #986169] Wed, 21 November 2012 11:26 Go to previous message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

I would recommend you to use the maven build: http://wiki.eclipse.org/Acceleo/Maven
It is easier to maintain and there are tons of working examples available.

If you want to stick with the PDE solution, have a look at the changes to the build.acceleo files. It contains the description of what should be build during the PDE build. Make sure you are not missing the "customBuildCallbacks = build.acceleo" in the build.properties.


Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo



Previous Topic:[ACCELEO] Null return in using pointer
Next Topic:How to use generic types with for sequence?
Goto Forum:
  


Current Time: Wed Aug 27 13:16:46 EDT 2014

Powered by FUDForum. Page generated in 0.01761 seconds