[kepler-dev] [Bug 5435] passing string into a parameter for headless execution doesn't work

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Thu Jun 30 16:53:25 PDT 2011


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5435

Christopher Brooks <cxh at eecs.berkeley.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cxh at eecs.berkeley.edu

--- Comment #3 from Christopher Brooks <cxh at eecs.berkeley.edu> 2011-06-30 16:53:24 PDT ---
Take a look at

http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#invoking%20Ptolemy%20II?
which gives hints.  However, I ended up needing more escaping, I'll
update the faq momentarily.

ptparamx.xml worked with

$PTII/bin/ptolemy ptparamx.xml -x '\&quot\;xxx\&quot\;'

What is happening with

$PTII/bin/ptolemy ptparamx.xml -x xxx

is that the Const actor is looking for a variable named xxx.

Maybe a StringConst would be a better choice if you want to use
string values?

I agree that the escaping is a pain.  To pass parameters more easily,
use ptolemy/actor/parameters/ParameterSet.java

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list