Skip to content

Commit

Permalink
Extended Java example
Browse files Browse the repository at this point in the history
  • Loading branch information
troeger committed Mar 6, 2019
1 parent 043e2c0 commit ea2af25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/helloworld_java/non-working/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
public class HelloWorld {

public static void main(String[] args) {
System.out.pn("Hello World");
}
}
5 changes: 5 additions & 0 deletions examples/helloworld_java/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@


def validate(job):

# Make sure that the right file name is given
job.ensure_files(['HelloWorld.java'])

# Run the compiler
job.run_compiler(compiler=JAVAC, inputs=['HelloWorld.java'])

# Run the compilation result.
Expand Down
File renamed without changes.

0 comments on commit ea2af25

Please sign in to comment.