Download XOTclIDE User Guide
Transcript
Extended Features
You can edit them. Press Control-S to apply changes. Select Edit->Load Components to load components into the system (interpreter). Select Edit->Run Start Scripts to evaluate preStartScript startScript.
You can make a new configuration map by using Edit->Init From System
Deploying Application
Distribution is the set of files that you can bind for example as a tar or zip file and distribute to other
parts. A Configuration map is a base to specify the distribution. First load the component with Edit>Load Components than select menu Edit->Make Distribution. Select the directory (or create a new
one). The system generates the set of files:
Sample
Sample.cfmap
SampleComponent.xotcl
pkgIndex.tcl
Sample is the executable file to start the application. Take a look at it.
#!/usr/local/bin/xowish
# File generated by xotclIDE
# edit if you want
set sname [info script]
if {$sname==""} {
# Run interactive for develop purposes
set progdir [pwd]
} else {
file lstat $sname stats
# follow sym links
if {$stats(type)=="link"} {
set sname [file readlink $sname]
if {[file pathtype $sname]=="relative"} {
set sname [file join [file dirname [info script]] $sname]
}
}
set progdir [file dirname $sname]
}
lappend auto_path [file dirname $progdir]
package require PlatformLogDumper
generateTclPlatformProtocol out.log
Configuration Browser - with Version Control System
Figure 4.7. Configuration Browser
41