home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
config_java.tcl
< prev
next >
Wrap
Text File
|
1997-11-07
|
2KB
|
78 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)config_java.tcl /main/titanic/6
# Author:
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)config_java.tcl /main/titanic/6 7 Nov 1997 Copyright 1996 Cayenne Software Inc.
source [m4_path_name tcl cginit.tcl]
require wmt_util.tcl
require machdep.tcl
proc m4copyfile {dir custName {fsName ""}} {
if {$fsName == ""} {
set fsName $custName
}
if [file exists $fsName] {
set sourcefile $fsName
} else {
set sourcefile [m4_path_name $dir $fsName]
}
set customFileV [findCustomizationFile $custName 1]
$customFileV lockForWrite "Configure Java Environment"
$customFileV upLoad $sourcefile
$customFileV unlock
}
proc findCustomizationFile {fullName {create 0}} {
set name [lindex [split $fullName .] 0]
set type [lindex [split $fullName .] 1]
set clientContext [ClientContext::global]
set configV [$clientContext currentConfig]
set customFileV [$configV findCustomFileVersion $name $type]
if {$create && [$customFileV isNil]} {
puts "Creating customization file '$fullName' at configuration level"
set customFileV [$configV createCustomFileVersion $name $type]
}
return $customFileV
}
proc m4copydir {dir} {
set save_dir [pwd]
set subdir [location $dir]
if [catch {set cddir [m4_path_name $subdir Queue.java]}] {
return
}
set sysV [[ClientContext::global] currentSystem]
cd [path_name directory $cddir]
set files [glob -nocomplain *]
puts "Copying from [pwd]..."
foreach file $files {
set toFile [fstorage::copyFile $file system "" $file]
if {$toFile != ""} {
puts " $toFile"
} else {
puts " $file *NOT COPIED*"
}
}
cd $save_dir
}
m4copydir [location modules java config]