Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2019-07-13 20:58:55 +1000
committerOlivier Mehani <shtrom@ssji.net>2019-07-13 20:58:55 +1000
commit164e46e7a78347cddb58c98a01c3fca8d6fd30af (patch)
tree49a8d668aa65606c310270fd854716f8c6250f2c
Initial commitHEADmaster
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--Makefile25
-rw-r--r--src/main/java/net/ssji/narf/rfc6555/Gai.classbin0 -> 507 bytes
-rw-r--r--src/main/java/net/ssji/narf/rfc6555/Gai.java10
3 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..08f487c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+MODES= \
+ Gai \
+ #END
+
+CLASSPATH=src/main/java/
+PKGPATH=net/ssji/narf/rfc6555/
+TARGETS=$(addprefix $(CLASSPATH)$(PKGPATH),\
+ $(addsuffix .class,\
+ $(MODES)\
+ ))
+
+all: $(TARGETS)
+
+%.class: %.java
+ javac $^
+
+run-%: $(CLASSPATH)$(PKGPATH)%.class
+ yes | nc -4klp 1025 &
+ java -classpath $(CLASSPATH) net.ssji.narf.rfc6555.Gai localhost 1025
+ killall -9 nc
+
+clean:
+ rm -rf $(TARGETS)
+
+.PHONY: all
diff --git a/src/main/java/net/ssji/narf/rfc6555/Gai.class b/src/main/java/net/ssji/narf/rfc6555/Gai.class
new file mode 100644
index 0000000..12357c6
--- /dev/null
+++ b/src/main/java/net/ssji/narf/rfc6555/Gai.class
Binary files differ
diff --git a/src/main/java/net/ssji/narf/rfc6555/Gai.java b/src/main/java/net/ssji/narf/rfc6555/Gai.java
new file mode 100644
index 0000000..f13df43
--- /dev/null
+++ b/src/main/java/net/ssji/narf/rfc6555/Gai.java
@@ -0,0 +1,10 @@
+package net.ssji.narf.rfc6555;
+
+class Gai {
+ public static void main(String[] args) {
+ for (String a: args) {
+ System.out.println(a);
+ }
+ }
+
+}