On 11/27/07, Mike McCown <[EMAIL PROTECTED]> wrote:
>
> Hmmm...I got groovy integrated into the webtest (integration-test target),
> maybe this would work for appfuse in general? I'll check it out later this
> week.
>
> In 2.0 (2.0.1) the pom.xml excludes groovy-all from the webtest dependency
> (the comment says this is because groovy-all isn't in the central repo). I
> had already installed groovy (I'm on a mac, so I installed using macports),
> so I just let the maven repository know about it by doing this...
>
> mvn install:install-file -DgroupId=org.codehaus.groovy
> -DartifactId=groovy-all -Dversion=1.0 -Dpackaging=jar -Dfile=groovy-1.0.jar
> [this last -Dfile should be the path to your local groovy jar file]
>
> Then I added this before the webtest dependency in pom.xml...
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-all</artifactId>
> <version>${groovy.version}</version>
> </dependency>
>
> (You should also add a <groovy.version>1.0</groovy.version> down with all
> the other versions).
>
> That's it! Now I can do things like
> <groovy>
>
> step.context.currentResponse.getFormByName('displayProfile').submit()
> </groovy>
> to simulate a return key press for a form that doesn't use a submit button
> (which webtest doesn't directly support, except through neat tricks like
> this in groovy).
>
> I don't have time to check it out right now, but I'm wondering if I just add
> that dependency to the overall build target if that wouldn't allow you to
> use groovy in my appfuse project proper?
Yes, I believe it would. It'd be very cool to have Groovy support in
AppFuse. The reason for the exclusion in webtest's dependencies is
because groovy-all doesn't have a pom in the central repo. So
commenting it out prevents the following error from occurring.
[INFO] [talledLocalContainer] Tomcat 5.x started on port [9876]
Downloading:
http://static.appfuse.org/repository/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading:
http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading:
http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading:
http://static.appfuse.org/repository/groovy/groovy-all/1.0/groovy-all-1.0.pom
[INFO] [antrun:run {execution: default}]
Matt
>
> Mike
>
>
> Carlos Orrego wrote:
> >
> > mmm i am using appfuse 1.8
> >
> > i think it can be done with spring, but hen i would like to invode service
> > beans written in java from groovy.
> >
> > I will keep you posted
> >
> > thanks Matt, you are my hero!!!
> >
> > :-)
> >
> > On Nov 15, 2007 1:32 PM, Matt Raible <[EMAIL PROTECTED]> wrote:
> >
> >> If you're using 2.0+, it should be easy with the groovy-maven-plugin:
> >>
> >> http://mojo.codehaus.org/groovy/groovy-maven-plugin/index.html
> >>
> >> I'm interested in this too - so if you get it working, it'd be great
> >> if you could write up a tutorial on the wiki. I'd be happy to edit it.
> >>
> >> Matt
> >>
> >> On Nov 15, 2007 11:27 AM, Carlos Orrego <[EMAIL PROTECTED]> wrote:
> >> > I would like to be able to write groovy code on an appfuse application.
> >> I
> >> > found this link for a way to integrate it:
> >> > http://www.leegrey.com/hmm/2004/10/25/1098732842000.html
> >> >
> >> > But it seems way too complex. Is there an easier way to do thi with
> >> appfuse?
> >> >
> >> > greetings
> >> >
> >> > --
> >> > Carlos Orrego
> >> > www.orbitando.com
> >> > www.inflexa.com
> >> >
> >> > "Salve un bosque. No imprima."
> >> > "Save a forest. Do not print."
> >>
> >>
> >>
> >> --
> >> http://raibledesigns.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Carlos Orrego
> > www.orbitando.com
> > www.inflexa.com
> >
> > "Salve un bosque. No imprima."
> > "Save a forest. Do not print."
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Using-groovy-in-Appfuse-tf4815504s2369.html#a13986772
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]