Skip to content

Commit

Permalink
Print stacktrace on exception in the ModelloCli
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrich committed Apr 13, 2024
1 parent 90352d3 commit 9dcf206
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions modello-core/src/main/java/org/codehaus/modello/ModelloCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ public class ModelloCli {

private static Properties parameters;

public static void main(String[] args) throws Exception {
Modello modello = new Modello();
public static void main(String[] args) {
try {
Modello modello = new Modello();

parseArgumentsFromCommandLine(args);
parseArgumentsFromCommandLine(args);

modello.generate(new XmlStreamReader(modelFile), outputType, parameters);
modello.generate(new XmlStreamReader(modelFile), outputType, parameters);

} catch (Exception e) {
e.printStackTrace();
}
}

public static void parseArgumentsFromCommandLine(String[] args) throws Exception {
Expand Down

0 comments on commit 9dcf206

Please sign in to comment.