Visage Gradle Plugin

40 views
Skip to first unread message

Raj

unread,
Jul 25, 2012, 12:49:39 PM7/25/12
to visag...@googlegroups.com
Hi,

I have crated a visage plugin for Gradle.  https://github.com/jugchennai/visage-gradle-plugin

Please try and let me know your views.

there are some TODO i yet to implement.. main is hide runVisage inside the plugin...

How to make it work...

1) you need to install javafx, download and make Visage compiler 
2) set JavaFX_Home path or you can use jdk 7 inbuilt javafx jar....
3) set Visage_home on visage compiler path and set to PATH variable
4) build VisageFX.jar and place it in Visage_Home/lib folder
5) download gradle and set gradle_home and sent to path

you are all set now....

now go to a folder and create build.gradle file and add the code snippet in the page  https://github.com/jugchennai/visage-gradle-plugin
save it and  in command prompt type

gradle creaetVisageProject

it will ask for projectname, group name and version

now you are all done.

write your code inside src/main/visage folder

to compile use

gradle compilev or compilevisage

once you have a successful compile 

open your build.gradle and you have a variable mainVisageClass=''

Set your fully qualified path of your visage main class 

ex.
mainVisageClass='visage.javafx.scene.effect.EffectTest'
save file and in command promote type...

gradle runv or runvisage

You must have see your app running 


I yet to implement more... love to listen to your feedbacks.....



William

unread,
Aug 28, 2012, 12:23:16 PM8/28/12
to visag...@googlegroups.com
Hello Raj,

This plugin sounds great, but I didn't test it yet. Is this possible to make a step-by-step on how to build a simple Visage project using Gradle? I'm working in a project, but it's had to keep and maintain all my platform dependent scripts to compile my VisageFX project, so I thought it was time to use Ant or Maven, but them I remembered your Gradle  plugin, but I'm a really newbie with Gradle :)

Thank you!

William

unread,
Aug 28, 2012, 12:25:06 PM8/28/12
to visag...@googlegroups.com
Hello raj,

Let me clarify, is this possible to attach a simple project? 

Thanks :)

Shiv Kumar Ganesh

unread,
Sep 5, 2012, 8:29:06 AM9/5/12
to visag...@googlegroups.com
Hi All,

@William I have used the plugin made by Raj and it works fine. It creates a project structure for me and even all the operations like compile/build/create/run are working fine for me. I have hosted a sample VisageFX app project on git. May be you will be interested to have a look :) . It just as two programs but would soon populate it. @Raj the plugin is really useful.

Thanks.
Regards,

rajma...@gmail.com

unread,
Sep 5, 2012, 8:32:32 AM9/5/12
to visag...@googlegroups.com
Hi

Please not there are 2 bugs found in the current release and you do have workaround...

1 is deprecated issus and another is you cant have space in the the path(folder name) https://github.com/jugchennai/visage-gradle-plugin/issues?labels=bug&milestone=1&state=open

Other than that its okto use it. I will try to fix the bugs.
--
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


My Sessions:
JUGChennai JTechDay - 15th Sep - Chennai - JavaFX 2: Rich Client Platform -  http://jugchennai.in/jtechday/
AIOUG Sangam '12 - 2nd Nov - Bangalore - JavaFX hands-on Lab - http://www.aioug.org/HandsonSession3.php


Raj

unread,
Sep 24, 2012, 5:58:16 AM9/24/12
to visag...@googlegroups.com
We have got the new github repo.. .i thinking of moving this Gradle project to visage main repository soon.

This will cause the url to change in the build. will soon post detail about his.
Reply all
Reply to author
Forward
0 new messages