startup routines for an image

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

startup routines for an image

Postby ObjectGardener » Thu Aug 21, 2008 12:44 pm

Hi,
I have been tasked to build an image that will auto run a process for non-Smalltalk technicians, on a licensed copy of VAST 7. I see that I could create a subclass of AbtBaseWindowSystemStartUp and overwrite the >>run method but I am not sure what if that is the recommended way to do this. I also found that the imageName.cnf is queried during start up and am not sure what that is used for, so I am mostly looking for direction to the proper documentation for this.
I have not found a convent way to search the documents on the website.
--Thanks. Mark
ObjectGardener
 
Posts: 8
Joined: Thu Aug 21, 2008 12:25 pm

Re: startup routines for an image

Postby marten » Thu Aug 21, 2008 11:27 pm

Whenever you build an image you have to define a Smalltalk statement as an "Application Entry Point" (using the Packager Control Panel) - that's the starting point, you start your application logic ...
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: startup routines for an image

Postby ObjectGardener » Fri Aug 22, 2008 5:28 am

Marten,
Thanks for the response but I don't want to create a runtime image, simply configure the development image to do some automated work on the repository. Again there is no licence issue with this as this desktop will have a VAST licence, so this will not be a packaged image but a development image.
ObjectGardener
 
Posts: 8
Joined: Thu Aug 21, 2008 12:25 pm

Re: startup routines for an image

Postby marten » Fri Aug 22, 2008 6:57 am

ObjectGardener wrote:Marten,
Thanks for the response but I don't want to create a runtime image, simply configure the development image to do some automated work on the repository. Again there is no licence issue with this as this desktop will have a VAST licence, so this will not be a packaged image but a development image.


Then look at the documentation server and read the book "VA Smalltalk Base User's Guide" and there is a chapter "Application behavior when starting and stopping the system" and there you get the info you want.

Marte
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: startup routines for an image

Postby ObjectGardener » Fri Aug 22, 2008 9:14 am

OK, thanks for the pointer,
I wish that they had a search capability into all the VAST documentation so that I would not have to ask for such thing.
Or at least a way to download the relevant document to search locally, maybe there is a way but I could not find it.
Thanks again for the quick answers!
ObjectGardener
 
Posts: 8
Joined: Thu Aug 21, 2008 12:25 pm

Re: startup routines for an image

Postby wembley » Tue Aug 26, 2008 5:08 am

Mark -

Re: searching, we are working on a new delivery mechanism for documentation in V8 that will (I hope) include the ability to search from our website.

Re: Downloading, the full set of documentation is shipped with the product. It is optionally installed locally when you install the Client. If you didn't install the doc when you installed the Client, you can rerun install and select the doc (it won't reinstall the code). Downloaded doc can be searched.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: startup routines for an image

Postby Ralf » Fri Aug 29, 2008 8:26 am

Hello,

i'am not sure what you want, but do run an image and the image should
do a work with the image self, you can do the follow

normally you must write a class method at the application class named startUp
like this

startUp

CwAppContext default
addTimeout: 2000
receiver: self
selector: #timeoutElapsed:
clientData: nil.

this will call after 2 seconds the method timeoutElapsed:.
So you have time enough to break the startup if you wish to work with the image.


timeoutElapsed: aClientData

self checkCommandLine.

at end the method for work

checkCommandLine

"Do what ever you want"
System exit.

are all class methods at an application class, use any application you want.

so, you can start the image normally as development image and it
will run the code therefor
Ralf
 
Posts: 41
Joined: Thu Nov 16, 2006 4:18 am


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest