@@ -97,7 +97,7 @@ public static CompileResult generate(
97
97
File javaFileExeT = new File (dirTraduzione + File .separator + name + "_Exe.java" );
98
98
File javaFileASMT = new File (dirTraduzione + File .separator + name + "_ASM.java" );
99
99
100
- File parserSupport = new File (dir .getPath () + File .separator + "parserSupport " + ".txt" );
100
+ File stepFunctionArgs = new File (dir .getPath () + File .separator + "StepFunctionArgs " + ".txt" );
101
101
102
102
deleteExisting (javaFile );
103
103
deleteExisting (javaFileCompilazione );
@@ -108,7 +108,7 @@ public static CompileResult generate(
108
108
deleteExisting (javaFileASMT );
109
109
deleteExisting (javaFileT );
110
110
deleteExisting (javaFileExeT );
111
- deleteExisting (parserSupport );
111
+ deleteExisting (stepFunctionArgs );
112
112
113
113
System .out .println ("\n \n ===" + name + " ===================" );
114
114
@@ -134,7 +134,7 @@ public static CompileResult generate(
134
134
// Parser support
135
135
StringBuffer stepArgs = new StringBuffer ();
136
136
jGeneratorASM .setMonitoredArgs (model .getMain (), stepArgs );
137
- FileWriter fileWriter = new FileWriter (parserSupport );
137
+ FileWriter fileWriter = new FileWriter (stepFunctionArgs );
138
138
fileWriter .write (stepArgs .toString ().
139
139
replaceAll ("\t " ,"" ).
140
140
replaceFirst (" " + System .lineSeparator (),"" ));
@@ -149,7 +149,7 @@ public static CompileResult generate(
149
149
System .out .println ("Generated java file: " + javaFileCompilazione .getCanonicalPath ());
150
150
System .out .println ("Generated java file: " + javaFileExeN .getCanonicalPath ());
151
151
System .out .println ("Generated ASM java file: " + javaFileASMN .getCanonicalPath ());
152
- System .out .println ("Generated parser support file: " + parserSupport .getCanonicalPath ());
152
+ System .out .println ("Generated parser support file: " + stepFunctionArgs .getCanonicalPath ());
153
153
154
154
System .out .println ("Generated java file for the execution: " + javaFileExe .getCanonicalPath ());
155
155
@@ -158,7 +158,7 @@ public static CompileResult generate(
158
158
exportFile (javaFile , outputFolder );
159
159
exportFile (javaFileExe , outputFolder );
160
160
exportFile (javaFileASM , outputFolder );
161
- exportFile (parserSupport , outputFolder );
161
+ exportFile (stepFunctionArgs , outputFolder );
162
162
163
163
CompileResult result = CompilatoreJava .compile (name + ".java" , dir , true );
164
164
@@ -286,7 +286,7 @@ public CommandLine parseCommandLine(String[] args, Options options) {
286
286
try {
287
287
line = parser .parse (options , args );
288
288
} catch (ParseException e ) {
289
- System . err . println ("Failed to parse commandline arguments." );
289
+ logger . error ("Failed to parse commandline arguments." );
290
290
}
291
291
return line ;
292
292
}
@@ -313,7 +313,7 @@ private void setGlobalProperties(CommandLine line) {
313
313
translatorOptions .setValue (propertyName , propertyValue );
314
314
315
315
} catch (Exception e ) {
316
- System . err . println ("Invalid value for property " + propertyName + ": " + propertyValue );
316
+ logger . error ("Invalid value for property " + propertyName + ": " + propertyValue );
317
317
}
318
318
}
319
319
@@ -334,7 +334,7 @@ private void execute (CommandLine line, Options options) {
334
334
if (line .hasOption ("input" )) {
335
335
asmspec = line .getOptionValue ("input" );
336
336
}else {
337
- System . out . println ("input option needs a path to the asm file" );
337
+ logger . error ("input option needs a path to the asm file" );
338
338
}
339
339
340
340
String outputFolder = "" ;
0 commit comments