Forge plugin

23 views
Skip to first unread message

Sebastien Bordes

unread,
Jun 10, 2013, 5:24:33 AM6/10/13
to jrebirth-...@googlegroups.com
I've just add a webhook for forge plugin, in order to allow jenkins to build after each push and then trigger a sonar analysis

Seb

rajma...@gmail.com

unread,
Jun 10, 2013, 5:30:11 AM6/10/13
to jrebirth-...@googlegroups.com
That will be cool. Thank you Seb.

Regarding the commands.

we still need to add 2 more commands to be added..

main-create - create a main method for JR which accepts a module name
presentation-create  - will create a presentation.xml file for presentation module.

resource-create  need to be simplified to support Image, Font ...

Anything else you want to add ?


On Mon, Jun 10, 2013 at 2:54 PM, Sebastien Bordes <sebastie...@gmail.com> wrote:
I've just add a webhook for forge plugin, in order to allow jenkins to build after each push and then trigger a sonar analysis

Seb

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 



--
Thank you and regards,
Rajmahendra R Hegde (Raj)
Website:
http://www.twitter.com/rajonjava
http://www.jugchennai.in             
----------------------------------------------------------------------------------------------
"DREAM is not what you see in sleep;
is the thing which does not let you sleep" - APJ Abdul Kalam
Do the difficult things while they are easy and do the great things while they are small.
A journey of a thousand miles must begin with a single step. - Lao Tzu


Sebastien Bordes

unread,
Jun 10, 2013, 5:57:11 AM6/10/13
to jrebirth-...@googlegroups.com
Not yet but I'm impatient to test them, forge write a log file in home directory I will review mine to diagnose my problem :D

Seb




Le lundi 10 juin 2013 11:30:11 UTC+2, Rajmahendra R a écrit :
That will be cool. Thank you Seb.

Regarding the commands.

we still need to add 2 more commands to be added..

main-create - create a main method for JR which accepts a module name
presentation-create  - will create a presentation.xml file for presentation module.

resource-create  need to be simplified to support Image, Font ...

Anything else you want to add ?
On Mon, Jun 10, 2013 at 2:54 PM, Sebastien Bordes <sebastie...@gmail.com> wrote:
I've just add a webhook for forge plugin, in order to allow jenkins to build after each push and then trigger a sonar analysis

Seb

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-developers+unsub...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

rajma...@gmail.com

unread,
Jun 10, 2013, 6:17:48 AM6/10/13
to jrebirth-...@googlegroups.com
There will be a change in the Template Engine....
We are moving the template engine from Velocity to FreeMarker.

There is a bug when when creating MV, we can solve using this.

I am thinking a feature...

one command which use to config the jrebirth.. something like..

jrebirth config --defaultModule modulename     # will make this model as FirstModelClass
jrebirth config --screen width=300
jrebirth config --screen height=300
jrebirth config --defaultCSS mystyles.css      # if we have this in our jrebith.properties
 
etc.

The idea is for small changes on config we can make it command line changes.


We already having

jrebirth setup --module presentation  # in this time we also add presentatin.xml.



Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Guruprasad Shenoy

unread,
Jun 10, 2013, 6:21:23 AM6/10/13
to jrebirth-...@googlegroups.com
Hi,
Can we have a single command which takes multiple switches ? 

e.g
jrebirth config --defaultModule modulename  --screen-width=300 --screen-height=300 --defaultCSS mystyles.css


rajma...@gmail.com

unread,
Jun 10, 2013, 6:23:46 AM6/10/13
to jrebirth-...@googlegroups.com
Good idea....

we can change it to

--width-screen
--height-screen
--cssDefault  

for fast tab key support.

Sebastien Bordes

unread,
Jun 10, 2013, 8:29:50 AM6/10/13
to jrebirth-...@googlegroups.com
Good New !

I have fixed my problem when trying to install JRebirth forge plugin, my problem was related to maven (forge requires a M2_HOME not MAVEN_HOME, I'm using Maven 3.0.x)
I should also check if my maven settings are compatible (and if not make it so).

For config files it's a good idea I still have to implement the default.css but I want to try css auto-reloading taht could help developers by avoiding app restart during development.

I didn't try freemarker, does it provide facility to update files already created ?

Seb
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-developers+unsubscribe...@googlegroups.com.

Rajmahendra R

unread,
Jun 14, 2013, 3:14:44 AM6/14/13
to jrebirth-...@googlegroups.com
Seb,

Please use the plugin and let me know what you feel about the features.

I have updated the readme for the commands .,.  https://github.com/JRebirth/forge-jrebirth-plugin

Some features we need to see in future are....

1. JNLP
2. Presentation module. (and other module)
3. Wave... (currently this source is not created )
...

Sebastien Bordes

unread,
Jun 16, 2013, 4:00:42 PM6/16/13
to jrebirth-...@googlegroups.com
Raj,

I played with it and I enjoy it !

I have a lot of requests and features to add and also some remarks:

If you want I can add them into github issues...

=> The javafx dependency should be removed into pom.xml and globally the pom should contains same things as this one : 


=> the setup command should add the template.vm file used here to manage jnlp bundle : https://github.com/JRebirth/MasteringTables/blob/master/org.jrebirth.demo.masteringtables/src/main/jnlp/template.vm

=> The First Application Class should be named according to project name ie : SampleApp instead of MainApplication


=> each template should be pre-formatted with this formatter (eclipse, I can do this if you use netbeans) : https://github.com/JRebirth/JRebirth-Configuration/blob/master/Eclipse/JRebirth%20Code%20Formatter.xml

For better command completion 
=> mvc-create should be renamed into add-ui
=> command-create should be renamed into add-command
=> service-create should be renamed into add-service 
=> or something else :D

=> JRebirth supports 3 kinds of Commands DefaultUiCommand, DefaultPoolCommand, DefaultCommand, can we add this choice into command args ?

=> The Service template should add a default Service method like this one in order ot gain time while rewriting it manually : https://github.com/JRebirth/MasteringTables/blob/master/org.jrebirth.demo.masteringtables/src/main/java/org/jrebirth/demo/masteringtables/service/ExpressionBuilderService.java (we should remove all instructions, I can do it if you want)

=> create-resource with All=n only creates the package, message is not enought explicit or it should ask which resources to create.

=> public enum PizzaFontsLoader implements FontName should be renamed as public enum PizzaFontNames implements FontName (latest 0.7.4 snapshot change)

=> each resource file create should contains at least one resource item declaration (samples are available here  https://github.com/JRebirth/MasteringTables/tree/master/org.jrebirth.demo.masteringtables/src/main/java/org/jrebirth/demo/masteringtables/resources)


For globally I think that resources files should be created by setup command with name = ProjectName:ResourcesType:s => PizzaImages, PizzaFonts and so on....

And then some command will add the resource directly into the file (if possible) add-color-web --name=MY_COLOR --hex=#CC00AA or add-color-web --name=myColor --hex=#CC00AA

we can perform it genericly by using resource params properties...


This is a first remark stream, I'm very satisfied by this plugin :D


Seb

rajma...@gmail.com

unread,
Jun 18, 2013, 7:57:36 AM6/18/13
to jrebirth-...@googlegroups.com
>For better command completion 
=> mvc-create should be renamed into add-ui
=> command-create should be renamed into add-command
=> service-create should be renamed into add-service 
=> or something else :D

previously we had  create-mvc  create-service etc.

When user like to use <tab> feature user need to type till  create-<any one letter> to complete tehre command. so we moved to mvc-create service-create where the starting itself unique word so user can use <tab> in 1 or 2 character. We can use ui-add or service-add   or to avoid fight between the word create and add. we can just use  ui, resource , serve like....

jrebirth  ui --name....
jrebirth service --name   etc this will be short and easy.


Can you please take care of the resource file part of following


=> each template should be pre-formatted with this formatter
=> The Service template should add a default Service method like this one in order ot gain time while rewriting it manually
=> each resource file create should contains at least one resource item declaration

>And then some command will add the resource directly into the file (if possible) add-color-web --name=MY_COLOR --hex=#CC00AA or add-color-web --name=myColor --hex=#CC00AA

We can have a command called  jrebirth color --name=MY_COLOR --hex=#CC00AA   or  color-add



Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Sebastien Bordes

unread,
Jun 18, 2013, 9:15:13 AM6/18/13
to jrebirth-...@googlegroups.com
Ok I better understand why you use xxx-create command.

We can keep as is. Perhaps we will be able to add later a service-update command to modify pre-generated code.

As JRebirth facades are Command, Service, Ui, we should just rename mvc to ui.

For other basic template update I could do the job if you want ...

I explore a little bit forge and freeamrker feature, but I didn't find if it's possible to generate a file and then add some other code into it ?
Do you have already experienced a such feature ?

Seb

rajma...@gmail.com

unread,
Jun 19, 2013, 2:48:06 AM6/19/13
to jrebirth-...@googlegroups.com
>As JRebirth facades are Command, Service, Ui, we should just rename mvc to ui.
Will be done.

>For other basic template update I could do the job if you want ...
Ya sure. i did the property change and Command type change. Now when you create command it will ask for type of commnd do you want me to add Multy command type also ? i see there are 4 command types.


>
I explore a little bit forge and freeamrker feature, but I didn't find if it's possible to generate a file and then add some other code into it ?
Do you have already experienced a such feature ?
I have not yet explored that part.


Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Sebastien Bordes

unread,
Jun 19, 2013, 3:58:26 AM6/19/13
to jrebirth-...@googlegroups.com


Le mercredi 19 juin 2013 08:48:06 UTC+2, Rajmahendra R a écrit :
>As JRebirth facades are Command, Service, Ui, we should just rename mvc to ui.
Will be done.
OK great !

>For other basic template update I could do the job if you want ...
Ya sure. i did the property change and Command type change. Now when you create command it will ask for type of commnd do you want me to add Multy command type also ? i see there are 4 command types.

Yes you can add Multi Command support
 
>
I explore a little bit forge and freeamrker feature, but I didn't find if it's possible to generate a file and then add some other code into it ?
Do you have already experienced a such feature ?
I have not yet explored that part.

It will be a really interesting way to explore
 

Sebastien Bordes

unread,
Jun 21, 2013, 5:31:11 AM6/21/13
to jrebirth-...@googlegroups.com
Raj,

Do you think that it will be possible to extract all template generation into another maven module ?

I'm studying way to generate smartly a lot of code and reusability of base template will be a good thing !

I will create a maven parent project into main JRebirth github repository named org.jrebirth.tools:

It will contain :
  • Code generator based on template
  • Code Merger (merge generated file with current (if any))
  • Model parser
  • Maven Plugin that will automate this

What do you think about it ?

Seb

Reply all
Reply to author
Forward
0 new messages