Write your own Java application, and use it in place of jess.Main;
then you can do whatever you want with the command-line parameters.
Here is the entirety of jess.Main.main():
public static void main(String[] argv) {
jess.Main m = new jess.Main();
m.initialize(argv, new jess.Rete());
m.execute(true);
}
So your class just has to duplicate this. It could use Rete.store()
(for example) to save the command-line parameters somewhere that Jess
can find them.
On Jul 23, 2009, at 8:42 AM, jo wrote:
Hi,
I am looking for a way to get the commandline parameters given to
the java/jess commandline, ie like argc, argv in c.
Kind Regards,
Joe
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users
[email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected]
.
--------------------------------------------------------------------
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------