Forum OpenACS Development: Re: acs-automated-testing requires watching?!

Collapse
Posted by Tilmann Singer on
In /acs-admin/apm -> 'watch all files' next to the desired package. As far as I remember this will recognize added files as well.
Collapse
Posted by tammy m on
Hmm. Maybe this is in a later version than 4.6.1, cuz I don't see it on my APM page:(
Collapse
Posted by Randy O'Meara on
Tammy,

A quick trick to get your package files watched automatically (even after service restart) while you're developing. Put this in your *-init.tcl file in your <package_key>/tcl directory.

apm_watch_all_files <package_key>

OR

foreach package_key $package_key_list {
    apm_watch_all_files $package_key
}

Randy

P.S. Peter gets credit for pointing this out to me.

Collapse
Posted by tammy m on
Ooh,

Very sneaky. I love it. Thanks Randy.