Support java directory

Add an example of two java files, Main.java and Another.java, where Main.java
depends on Another.java. This is part of a larger example of attempting to use
Nix to package these.

Also ignoring the *.class files that `javac <filename>` outputs.
This commit is contained in:
William Carroll 2020-01-25 19:39:49 +00:00
parent 143fc97032
commit 5a2a1694e3
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@
# Python
__pycache__
*.class

5
java/Another.java Normal file
View file

@ -0,0 +1,5 @@
public class Another {
public static String whatis() {
return "Testing";
}
}

6
java/Main.java Normal file
View file

@ -0,0 +1,6 @@
public class Main {
public static void main(String[] args) {
System.out.println(System.getProperty("java.class.path"));
System.out.println(Another.whatis());
}
}