From: <jfa...@us...> - 2012-04-29 19:25:11
|
Revision: 7780 http://oorexx.svn.sourceforge.net/oorexx/?rev=7780&view=rev Author: jfaucher Date: 2012-04-29 18:44:38 +0000 (Sun, 29 Apr 2012) Log Message: ----------- Adjustments for MacOSX delivery Modified Paths: -------------- sandbox/jlf/delivery/install.txt sandbox/jlf/delivery/platform/unix/macosx/setenv_oorexx sandbox/jlf/delivery/readme.txt sandbox/jlf/trunk/samples/windows/oodialog/Makefile.am Modified: sandbox/jlf/delivery/install.txt =================================================================== --- sandbox/jlf/delivery/install.txt 2012-04-28 19:49:30 UTC (rev 7779) +++ sandbox/jlf/delivery/install.txt 2012-04-29 18:44:38 UTC (rev 7780) @@ -28,7 +28,6 @@ From now, you can run scripts : rexx myscript or launch the ooRexxShell : oorexxshell -or launch the oodialog version of ooRexxTry : rexx ooRexxTry or launch the java version of ooRexxTry : rexx ooRexxTry.rxj @@ -43,16 +42,10 @@ From now, you can run scripts : rexx myscript or launch the ooRexxShell : oorexxshell -or launch the oodialog version of ooRexxTry : rexx ooRexxTry -or launch the java version of ooRexxTry : rexx ooRexxTry.rxj +or launch the java version of ooRexxTry : rexxj2.sh $OOREXX_HOME/packages/ooRexxTry.rxj +(must use rexxj2.sh, not rexx, because of restrictions on MacOSX) -If you need to run ooRexx in superuser mode, then you must execute setenv_oorexx when -in superuser mode, otherwise the dynamic libraries won't be found : -sudo bash -Go to the directory oorexx-sandbox-jlf. -. ./setenv_oorexx - ===================================================================================== BSF4ooRexx for all platfomrs ===================================================================================== @@ -65,7 +58,12 @@ This minimal distribution demonstrates that BSF4ooRexx is a light extension, which supports a no-install configuration. + +Restrictions on MacOSX: + - Run awt/swing-applications with "rexxj2.sh" only. + - Using the executable "rexx" will load and start Java in "headless" mode, + which means that no awt event dispatch thread can be created. + This is due to some pecularities of MacOSX. If you are interested by BSF4ooRexx, then you should install the normal delivery from http://sourceforge.net/projects/bsf4oorexx - Modified: sandbox/jlf/delivery/platform/unix/macosx/setenv_oorexx =================================================================== --- sandbox/jlf/delivery/platform/unix/macosx/setenv_oorexx 2012-04-28 19:49:30 UTC (rev 7779) +++ sandbox/jlf/delivery/platform/unix/macosx/setenv_oorexx 2012-04-29 18:44:38 UTC (rev 7780) @@ -12,24 +12,23 @@ } me=$(readlink -f ${BASH_SOURCE[0]}) -export oorexx_delivery=`dirname "$me"` +export OOREXX_HOME=`dirname "$me"` echo -n -e "\033]0;$version\007" export PATH +export DYLD_LIBRARY_PATH export DYLD_FALLBACK_LIBRARY_PATH +export NLSPATH export CPLUS_INCLUDE_PATH export LIBRARY_PATH -prepend_path PATH $oorexx_delivery/bin -prepend_path PATH $oorexx_delivery/packages -prepend_path DYLD_FALLBACK_LIBRARY_PATH $oorexx_delivery/lib -prepend_path CPLUS_INCLUDE_PATH $oorexx_delivery/include -prepend_path LIBRARY_PATH $oorexx_delivery/lib +prepend_path PATH $OOREXX_HOME/bin +prepend_path PATH $OOREXX_HOME/packages +prepend_path DYLD_LIBRARY_PATH $OOREXX_HOME/lib +prepend_path DYLD_FALLBACK_LIBRARY_PATH $OOREXX_HOME/lib +prepend_path NLSPATH $OOREXX_HOME/bin/rexx.cat +prepend_path CPLUS_INCLUDE_PATH $OOREXX_HOME/include +prepend_path LIBRARY_PATH $OOREXX_HOME/lib -## If the rxapi server is not running then launch it in a separate terminal -#rxapi_pid=`ps -ef | grep rxapi | grep -v grep | awk '{print $2}'` -#if test -z "$rxapi_pid" -#then -# open -a terminal "$oorexx_delivery/bin/rxapi" -#fi +source $OOREXX_HOME/bsf4oorexx/install/setEnvironment4BSF.sh Modified: sandbox/jlf/delivery/readme.txt =================================================================== --- sandbox/jlf/delivery/readme.txt 2012-04-28 19:49:30 UTC (rev 7779) +++ sandbox/jlf/delivery/readme.txt 2012-04-29 18:44:38 UTC (rev 7780) @@ -1,4 +1,4 @@ -ooRexx sandbox/jlf for experimental work. +ooRexx sandbox/jlf for experimental work. http://oorexx.svn.sourceforge.net/viewvc/oorexx/sandbox/jlf/ Note : @@ -7,7 +7,7 @@ ===================================================================================== -ooRexxShell +ooRexxShell (all platforms) ===================================================================================== Command history (up-down arrows), filename completion (tab). @@ -15,13 +15,14 @@ Warning : ctrl-c not working as expected. Load all the packages/libraries delivered in the snapshot. -bsf.cls and uno.cls are not part of the snapshot, but are loaded anyway, assuming you -have installed them. It's not a problem is bsf.cls or uno.cls fail to load, nothing in -ooRexxshell depends on them. You just won't have access to their functionalities. +uno.cls is not part of the snapshot, but is loaded anyway, assuming you have installed it. +It's not a problem if uno.cls fails to load, nothing in ooRexxshell depends on it. +You just won't have access to its functionalities. This shell supports several interpreters : - ooRexx itself -- the system address (cmd under Windows, bash under Linux) +- the system address (cmd under Windows, bash under Linux) +- hostemu - any other external environment (you need to modify this script, search for hostemu for an example). The prompt indicates which interpreter is active. By default the shell is in ooRexx mode. @@ -62,14 +63,30 @@ If an ooRexx clause ends with "=" then the clause is transformed to display the result : '1+2=' becomes 'options "NOCOMMANDS"; 1+2 ; call dumpResult; options "COMMANDS"' '=' alone displays the current value of the variable RESULT. + + +You have access to Java from ooRexxShell. +Ex : + props = .bsf4rexx~System.class~getProperties + enum=props~propertyNames + do while enum~hasMoreElements; key=enum~nextElement; value = props~getProperty(key); say enquote2(key) "=" enquote2(value); end +Under MacOSX, if you want to use awt or swing classes then you must launch ooRexxShell like that : + rexxj2.sh $OOREXX_HOME/packages/oorexxshell.rex +otherwise you will have a java.awt.HeadlessException raised. +Example of code which depends on awt : + call bsf.importClass "java.awt.Toolkit" + toolkit = .java.awt.Toolkit~getDefaultToolkit + dimension = toolkit~getScreenSize + dimension~width= + dimension~height= + - Command 'exit'. To leave the ooRexxShell. ===================================================================================== -ooRexxTry.rex +ooRexxTry.rex (Windows only) ===================================================================================== Adaptation of ooRexxTry.rex delivered with ooRexx. @@ -81,7 +98,6 @@ Get the Java System Properties from java.lang.System using the services set up by BSF.CLS. properties=.bsf4rexx ~System.class ~getProperties -- get the System properties enum=properties~propertyNames -- get an enumeration of the property names - do while enum~hasMoreElements -- loop over enumeration key=enum~nextElement -- get next element value = properties~getProperty(key) @@ -118,8 +134,11 @@ ===================================================================================== -ooRexxTry.rxj +ooRexxTry.rxj (all platforms) ===================================================================================== + +Under MacOSX : rexxj2.sh $OOREXX_HOME/packages/ooRexxTry.rxj +Other platforms : rexx ooRexxTry.rxj Adaptation of ooRexxTry.rxj (http://sourceforge.net/projects/bsf4oorexx) : Load all the packages/libraries delivered in the snapshot. Modified: sandbox/jlf/trunk/samples/windows/oodialog/Makefile.am =================================================================== --- sandbox/jlf/trunk/samples/windows/oodialog/Makefile.am 2012-04-28 19:49:30 UTC (rev 7779) +++ sandbox/jlf/trunk/samples/windows/oodialog/Makefile.am 2012-04-29 18:44:38 UTC (rev 7780) @@ -37,10 +37,10 @@ .NOTPARALLEL: -SUBDIRS = bmp controls examples menus mouse oleinfo ooRexxTry propertySheet.tabs rc res simple sysinfo tutorial userGuide wav winsystem -DIST_SUBDIRS = bmp controls examples menus mouse oleinfo ooRexxTry propertySheet.tab src res simple sysinfo tutorial userGuide wav winsystem +SUBDIRS = bmp controls examples menus mouse oleinfo ooRexxTry propertySheet.tabs rc res simple sysinfo tutorial userGuide wav winsystem +DIST_SUBDIRS = bmp controls examples menus mouse oleinfo ooRexxTry propertySheet.tabs rc res simple sysinfo tutorial userGuide wav winsystem -MAINTAINERCLEANFILES = Makefile.in *~ +MAINTAINERCLEANFILES = Makefile.in *~ EXTRA_DIST = *.rex *.h *.inp *.ico This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |