Yeah, I can do it, Lincoln!!, I'll be an interesting option to forge.

Have you created an issue for this??

On Fri, Jan 6, 2012 at 5:53 PM, Lincoln Baxter, III <lincolnbaxter@gmail.com> wrote:
Ah. (CC'd Dev List)

That is not supported right now, but could you put an Issue in JIRA for it with whatever details you can provide? It would just be a matter of passing through the run argument to an automatic execution of the run command, so it would be easy to do, but it would be pretty slow because forge takes a while to start up.

I think I know someone who would be interested in getting this to work :)

Pablo. Are you interested in taking your run/run-url enhancements to a whole new level? This would actually be pretty nice (the ability to pass commands into forge from the native shell.) Something like:

 --evaluate or -e for short

forge -e 'run /path/to/script.fsh'

It would just be a small change in the startup scripts, and the use of System.getProperty(), plus probably a modification of the Bootstrap.java file to be able to pick up that property and invoke the proper behavior. Maybe need a new type of event to fire to make this a clean abstraction.

~Lincoln


On Fri, Jan 6, 2012 at 8:19 AM, Jan Papousek <jpapouse@redhat.com> wrote:
Thanks, but it isn't exactly what I need. I'd like to execute the script without going to the Forge console (something like "forge --run myscript.fsh").

Regards,
Jan

----- Original Message -----
From: "Lincoln Baxter, III" <lincolnbaxter@gmail.com>
To: "forge-users List" <forge-users@lists.jboss.org>
Sent: Thursday, January 5, 2012 7:53:24 PM
Subject: Re: [forge-users] executing script in forge




Hey Jan!

You bet!

There are some samples here, just run with "run" or "run-url":

https://github.com/forge/core/tree/master/showcase

Let me know if you need more. Im working on docs for this right now.

~lincoln
On Jan 5, 2012 7:53 AM, "Jan Papousek" < jpapouse@redhat.com > wrote:


Hi,

I have a little beginner question. Is here any possibility to write and execute script in Forge? (e.g. in Bash "bash myscript.sh")

Regards,
Jan
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users

_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users



--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"