first busted commit ... it turns out I cannot create a simple java class without looking it up ... #fail
This commit is contained in:
commit
3a28a04902
21
build.xml
Normal file
21
build.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="LearningJava" default="compile">
|
||||
|
||||
<target name="clean" description="remove intermediate files">
|
||||
<delete>
|
||||
<fileset dir="obj" includes="**/*.class" />
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="build" description="compile Java sources">
|
||||
<javac srcdir="src" destdir="obj" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="build"
|
||||
description="create Jar from compiled sources">
|
||||
<jar destfile="dist/learning-java.jar">
|
||||
<fileset dir="obj" includes="**/*.class" />
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
</project>
|
10
src/com/meatballhat/learningjava/HelloSir.java
Normal file
10
src/com/meatballhat/learningjava/HelloSir.java
Normal file
@ -0,0 +1,10 @@
|
||||
package com.meatballhat.learningjava;
|
||||
|
||||
|
||||
public class HelloSir {
|
||||
|
||||
public static int main(String[] argv) {
|
||||
System.out.println("OMG Hi Der");
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user