Commit 3e32a3d1 authored by Fabien Triolet's avatar Fabien Triolet
Browse files

Corrected a bug in the generated java code : parameters can now be passed from

the command line.
parent 0b51e09c
/**
* $Id: Main.java,v 1.3 2002-11-25 16:09:11 triolet Exp $
* $Id: Main.java,v 1.4 2003-01-22 09:34:07 triolet Exp $
*
* Transmorpher
*
......@@ -106,6 +106,7 @@ public class Main extends MainProcess {
String key = (String)e.nextElement();
iFile.writeln(4,"p.setParameter(\""+key+"\", \""+(String)param.getParameter(key)+"\");");
}
iFile.writeln(4,"p.setParameters(tmParameters);");
iFile.writeln(4,"tmCurrentCompositeProcess = (TMain)new TMain(p);");
for( ListIterator l = getCalls().listIterator(); l.hasNext() ; ){
((Call)l.next()).generateJavaCode(iFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment