Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Inserting a plugin after DBPlugin but before JPAPlugin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mathias Bogaert  
View profile  
 More options Oct 27 2010, 7:05 am
From: Mathias Bogaert <mathias.boga...@gmail.com>
Date: Wed, 27 Oct 2010 04:05:18 -0700 (PDT)
Local: Wed, Oct 27 2010 7:05 am
Subject: Inserting a plugin after DBPlugin but before JPAPlugin
Hi,

I'm trying to integrate Flyway (http://code.google.com/p/flyway/) in
my project, as a PlayPlugin:

public class FlywayMigrationPlugin extends PlayPlugin {
    public void onApplicationStart() {
        Flyway flyway = new Flyway();
        flyway.setDataSource(DB.datasource);
        flyway.migrate();
    }

}

But since the plugin priorities (in play.plugins) have no
'gaps' (DBPlugin is 3, JPAPlugin 4) I'm stuck. I know I can change the
play.plugins, but I'm wondering if there is any other solution.
Thanks!

Mathias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Bort  
View profile  
 More options Oct 27 2010, 1:19 pm
From: Guillaume Bort <guillaume.b...@gmail.com>
Date: Wed, 27 Oct 2010 19:19:03 +0200
Local: Wed, Oct 27 2010 1:19 pm
Subject: Re: [play-framework] Inserting a plugin after DBPlugin but before JPAPlugin
No, I should add more space between plugin numbers. I'll fix that.

On Wed, Oct 27, 2010 at 1:05 PM, Mathias Bogaert

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillaume.b...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GrailsDeveloper  
View profile  
 More options Oct 27 2010, 1:32 pm
From: GrailsDeveloper <opensourc...@googlemail.com>
Date: Wed, 27 Oct 2010 10:32:39 -0700 (PDT)
Local: Wed, Oct 27 2010 1:32 pm
Subject: Re: Inserting a plugin after DBPlugin but before JPAPlugin
Can we say that all priorities < 1000 are reserved for the framework
and should only be used if there are reasons why a plugin must run
before another plugin. Then we could have wide spaces between the
numbers. The problem we has with this is, that some other plugins can
become broken because the JPAPlugin get a to high number.

I want to suggest another idea:
Making it possible to overwrite the numbers, this can be done by one
masterplay.plugins or if we make sure that a plugin will only be
loaded once and say that first a play.plugins in the conf-folder of
the app will be read.

Last but not least I think the compareTo should be fixed
http://play.lighthouseapp.com/projects/57987/tickets/121. If you add
the plugin name to compareTo it will allow a quick hack. This give us
time to think a little bit more about a good solution for plugin
dependencies and ordering.

Niels

On 27 Okt., 19:19, Guillaume Bort <guillaume.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Bort  
View profile  
 More options Oct 27 2010, 1:45 pm
From: Guillaume Bort <guillaume.b...@gmail.com>
Date: Wed, 27 Oct 2010 19:45:35 +0200
Local: Wed, Oct 27 2010 1:45 pm
Subject: Re: [play-framework] Re: Inserting a plugin after DBPlugin but before JPAPlugin

> The problem we has with this is, that some other plugins can
> become broken because the JPAPlugin get a to high number.

Yes it's possible but I prefer doing it right now, before having too
much contributed modules/plugins.

So I've changed for:

0:play.CorePlugin
100:play.data.parsing.TempFilePlugin
200:play.data.validation.ValidationPlugin
300:play.db.DBPlugin
400:play.db.jpa.JPAPlugin
500:play.i18n.MessagesPlugin
600:play.libs.WS
700:play.jobs.JobsPlugin

And I'll add a note in the release notes.

On Wed, Oct 27, 2010 at 7:32 PM, GrailsDeveloper

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillaume.b...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GrailsDeveloper  
View profile  
 More options Oct 27 2010, 3:08 pm
From: GrailsDeveloper <opensourc...@googlemail.com>
Date: Wed, 27 Oct 2010 12:08:16 -0700 (PDT)
Local: Wed, Oct 27 2010 3:08 pm
Subject: Re: Inserting a plugin after DBPlugin but before JPAPlugin
With fixing http://play.lighthouseapp.com/projects/57987/tickets/121
you could provide a solution for now and get time to solve the problem
in 1.2. For 1.1 you could add a note that module priorities should be
greater than 1000, so that you have there the possibilities without
any problems.
But if you are sure that you don't want to solve the dependency-issue
with a smarter, but complexer solution, the change now is quite good.

Niels

On 27 Okt., 19:45, Guillaume Bort <guillaume.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »