You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Greg Brown <gk...@mac.com> on 2009/08/21 18:08:14 UTC
pivot.sh
FYI, the reason I created this shell script is that I'm getting sick
of having to create a whole Java project just to bang out some UI
prototype that can be created entirely in WTKX and maybe a little
JavaScript. I think other users may find it valuable as well.
To use the script, you just need to set PIVOT_HOME to your Pivot root
directory and add ${PIVOT_HOME}/bin to your path. Then, at a command
prompt, navigate to your root source folder and run:
pivot.sh com/foo/bar.wtkx
It will launch the WTKX file in the desktop application context. No
compilation necessary, and scripting is supported. The only constraint
is that the root element of the WTKX file must be Window or a subclass
of Window.
Comments/suggestions welcome.
G
Re: pivot.sh
Posted by Niclas Hedhman <ni...@hedhman.org>.
I agree with Todd that it is dirt easy to create Bash script to nearly any
degree of complexity.
BUT I don't agree that is a reason to keep it out, as a large percentage of
developers are not comfortable with Bash, just like I suck in Python, Ruby
and just about every other script language...
-- Niclas
On Aug 22, 2009 12:20 AM, "Todd Volkert" <tv...@gmail.com> wrote:
I don't think it's worth adding - I do the same thing with a bash alias,
along with several other aliases that help me accomplish common pivot tasks.
I think environment setup stuff like this is great, but (a) it's trivial to
create locally, and (b) it's a very personal choice type thing
-T
On Fri, Aug 21, 2009 at 9:11 AM, Greg Brown <gk...@mac.com> wrote: > Ah,
one thing I forgot to d...
Re: pivot.sh
Posted by Greg Brown <gk...@mac.com>.
It may be trivial to a seasoned UNIX user, but I doubt that most Pivot
users will fall into that category. It would go a long way towards
promoting Pivot's adoption if we can make it easy for developers (esp.
non-technical UI designers) to easily launch non-compiled WTKX+script
based apps.
However, the Eclipse launcher may be a better way to achieve this.
On Aug 21, 2009, at 12:20 PM, Todd Volkert wrote:
> I don't think it's worth adding - I do the same thing with a bash
> alias,
> along with several other aliases that help me accomplish common
> pivot tasks.
> I think environment setup stuff like this is great, but (a) it's
> trivial to
> create locally, and (b) it's a very personal choice type thing
> -T
>
> On Fri, Aug 21, 2009 at 9:11 AM, Greg Brown <gk...@mac.com> wrote:
>
>> Ah, one thing I forgot to do is add the bin directory to our
>> distribution.
>> Todd, if we agree that the script is worthwhile, can you add it to
>> our
>> release artifacts?
>>
>> Thanks,
>> G
>>
>>
>> On Aug 21, 2009, at 12:08 PM, Greg Brown wrote:
>>
>> FYI, the reason I created this shell script is that I'm getting
>> sick of
>>> having to create a whole Java project just to bang out some UI
>>> prototype
>>> that can be created entirely in WTKX and maybe a little
>>> JavaScript. I think
>>> other users may find it valuable as well.
>>>
>>> To use the script, you just need to set PIVOT_HOME to your Pivot
>>> root
>>> directory and add ${PIVOT_HOME}/bin to your path. Then, at a
>>> command prompt,
>>> navigate to your root source folder and run:
>>>
>>> pivot.sh com/foo/bar.wtkx
>>>
>>> It will launch the WTKX file in the desktop application context. No
>>> compilation necessary, and scripting is supported. The only
>>> constraint is
>>> that the root element of the WTKX file must be Window or a
>>> subclass of
>>> Window.
>>>
>>> Comments/suggestions welcome.
>>>
>>> G
>>>
>>>
>>
Re: pivot.sh
Posted by Todd Volkert <tv...@gmail.com>.
I don't think it's worth adding - I do the same thing with a bash alias,
along with several other aliases that help me accomplish common pivot tasks.
I think environment setup stuff like this is great, but (a) it's trivial to
create locally, and (b) it's a very personal choice type thing
-T
On Fri, Aug 21, 2009 at 9:11 AM, Greg Brown <gk...@mac.com> wrote:
> Ah, one thing I forgot to do is add the bin directory to our distribution.
> Todd, if we agree that the script is worthwhile, can you add it to our
> release artifacts?
>
> Thanks,
> G
>
>
> On Aug 21, 2009, at 12:08 PM, Greg Brown wrote:
>
> FYI, the reason I created this shell script is that I'm getting sick of
>> having to create a whole Java project just to bang out some UI prototype
>> that can be created entirely in WTKX and maybe a little JavaScript. I think
>> other users may find it valuable as well.
>>
>> To use the script, you just need to set PIVOT_HOME to your Pivot root
>> directory and add ${PIVOT_HOME}/bin to your path. Then, at a command prompt,
>> navigate to your root source folder and run:
>>
>> pivot.sh com/foo/bar.wtkx
>>
>> It will launch the WTKX file in the desktop application context. No
>> compilation necessary, and scripting is supported. The only constraint is
>> that the root element of the WTKX file must be Window or a subclass of
>> Window.
>>
>> Comments/suggestions welcome.
>>
>> G
>>
>>
>
Re: pivot.sh
Posted by Greg Brown <gk...@mac.com>.
Ah, one thing I forgot to do is add the bin directory to our
distribution. Todd, if we agree that the script is worthwhile, can you
add it to our release artifacts?
Thanks,
G
On Aug 21, 2009, at 12:08 PM, Greg Brown wrote:
> FYI, the reason I created this shell script is that I'm getting sick
> of having to create a whole Java project just to bang out some UI
> prototype that can be created entirely in WTKX and maybe a little
> JavaScript. I think other users may find it valuable as well.
>
> To use the script, you just need to set PIVOT_HOME to your Pivot
> root directory and add ${PIVOT_HOME}/bin to your path. Then, at a
> command prompt, navigate to your root source folder and run:
>
> pivot.sh com/foo/bar.wtkx
>
> It will launch the WTKX file in the desktop application context. No
> compilation necessary, and scripting is supported. The only
> constraint is that the root element of the WTKX file must be Window
> or a subclass of Window.
>
> Comments/suggestions welcome.
>
> G
>
Re: pivot.sh
Posted by Sandro Martini <sa...@gmail.com>.
Ok.
Re: pivot.sh
Posted by Greg Brown <gk...@mac.com>.
I think we're going to skip the script launchers for now and try to get an IDE-based launcher working...
On Monday, August 24, 2009, at 04:32AM, "Sandro Martini" <sa...@gmail.com> wrote:
>Hi Greg,
>I like the idea, anything that simplify life is welcome ...
>
>One time this is stable, i can do the windows (bat) version.
>Tell me.
>
>Bye,
>Sandro
>
>
Re: pivot.sh
Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
I like the idea, anything that simplify life is welcome ...
One time this is stable, i can do the windows (bat) version.
Tell me.
Bye,
Sandro