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:
parent
143fc97032
commit
5a2a1694e3
3 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@
|
|||
|
||||
# Python
|
||||
__pycache__
|
||||
*.class
|
||||
|
|
5
java/Another.java
Normal file
5
java/Another.java
Normal file
|
@ -0,0 +1,5 @@
|
|||
public class Another {
|
||||
public static String whatis() {
|
||||
return "Testing";
|
||||
}
|
||||
}
|
6
java/Main.java
Normal file
6
java/Main.java
Normal 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());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue