From 044b408ae99989be9a7eed89ed51a6aba5aa42d9 Mon Sep 17 00:00:00 2001
From: jestin
Date: Wed, 5 Jun 2002 09:35:57 +0000
Subject: Clean package build.
---
src/Ivy.java | 2 +-
src/Makefile | 2 +-
src/TestIvy.java | 127 --------------------------
src/TestIvySwing.java | 243 --------------------------------------------------
4 files changed, 2 insertions(+), 372 deletions(-)
delete mode 100755 src/TestIvy.java
delete mode 100644 src/TestIvySwing.java
(limited to 'src')
diff --git a/src/Ivy.java b/src/Ivy.java
index f5e32e2..fc0a613 100755
--- a/src/Ivy.java
+++ b/src/Ivy.java
@@ -43,7 +43,7 @@ public class Ivy implements Runnable, IvyApplicationListener {
/**
* the library version
*/
- public static String libVersion ="1.0.10";
+ public static String libVersion ="1.0.11";
private boolean debug;
private static int serial=0; /* an unique ID for each regexp */
diff --git a/src/Makefile b/src/Makefile
index c5e5060..6a3d19c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,7 +5,7 @@ JAVACOPTS = -d . -deprecation
SRCS = *.java
OBJS = $(SRCS:.java=.class)
JAR = ../lib/Ivy.jar
- VER = 1.0.10
+ VER = 1.0.11
DIST = ../lib/ivy-java-$(VER).jar
JAVAC = jikes
#JAVAC = javac
diff --git a/src/TestIvy.java b/src/TestIvy.java
deleted file mode 100755
index 802f982..0000000
--- a/src/TestIvy.java
+++ /dev/null
@@ -1,127 +0,0 @@
-package fr.dgac.ivy ;
-
-import java.awt.* ;
-import java.awt.event.* ;
-
-/**
- * toy tool to probe the Ivy software bus.
- * it relies on the AWT, and is less useable than TestIvySwing, which should
- * be preferred.
- *
- * @see fr.dgac.ivy.TestIvySwing
- * @author François-Régis Colin
- * @author Yannick Jestin
- * @author http://www.tls.cena.fr/products/ivy/
- *
- * CHANGELOG
- * 1.0.10:
- * - System.exit on bus die
- */
-
-class TestIvy extends Panel implements IvyApplicationListener {
- private Ivy bus ;
- private String regexp="";
- private TextField tfRegex, tfSend ;
- private TextArea ta ;
- private Button buApply, buSend, buClear ;
- private java.text.SimpleDateFormat format = new
- java.text.SimpleDateFormat("hh:mm:ss");
- private int regexp_id;
-
- public TestIvy() throws IvyException {
- super(new BorderLayout());
- ta = new TextArea();
- ta.setEditable(false);
- add(ta,BorderLayout.CENTER);
- Panel p = new Panel(new BorderLayout());
- p.add(new Label("Regex:"),BorderLayout.WEST);
- tfRegex = new TextField(regexp);
- tfRegex.addActionListener(new REGCB());
- p.add(tfRegex,BorderLayout.CENTER);
- add(p,BorderLayout.NORTH);
- p = new Panel(new BorderLayout());
- p.add(new Label("Msg:"),BorderLayout.WEST);
- tfSend = new TextField("");
- tfSend.addActionListener(new SENDCB());
- p.add(tfSend,BorderLayout.CENTER);
- add(p,BorderLayout.SOUTH);
- bus = new Ivy("JAVATESTBUS","Testbus is ready",this);
- bus.start(null);
- append( "Ivy Domain: "+ bus.getDomain(null) );
- }
-
- public static Frame f;
-
- public static void main(String[] args) throws IvyException {
- TestIvy tb = new TestIvy();
- f = new Frame("TestIvy");
- f.addWindowListener( tb.new WCCB(f,tb)) ;
- f.add(tb, BorderLayout.CENTER);
- f.pack();
- f.setVisible(true);
- }
-
- public void connect(IvyClient client) {
- append(client.getApplicationName() + " connected " );
- }
-
- public void disconnect(IvyClient client) {
- append(client.getApplicationName() + " disconnected " );
- }
- public void die(IvyClient client, int id) {
- f.dispose();
- System.exit(0);
- }
- public void directMessage(IvyClient client, int id, String arg) {
- append(client.getApplicationName() + " direct Message "+ id + arg );
- }
-
- class REGCB implements ActionListener, IvyMessageListener {
- public void actionPerformed(ActionEvent e) {
- try {
- bus.unBindMsg(regexp_id);
- } catch (IvyException ie) {
- System.out.println("Big badaboum"); // this should not happen
- }
- regexp=tfRegex.getText();
- regexp.trim();
- regexp_id = bus.bindMsg(regexp,this);
- tfRegex.setText("");
- }
- public void receive(IvyClient client, String[] args) {
- String out="client " + client.getApplicationName() + " envoie: [ ";
- for (int i=0;ihttp://www.tls.cena.fr/products/ivy/
- */
-class TestIvySwing extends JPanel implements IvyApplicationListener {
-
- /**
- * help message for the standalone program
- */
- public static final String helpmsg = "usage: java fr.dgac.ivy.TestIvySwing [options]\n\t-b BUS\tspecifies the Ivy bus domain\n\t-q\tquiet, no tty output\n\t-d\tdebug\n\t-h\thelp\n";
- public static final int WIDTH=30;
- public static final int HEIGHT=30;
-
- private static int index;
- private static int nbTIS=0;
- private String localname;
- private Ivy bus ;
- private String domain;
- private String regexp = "(.*)";
- private JLabel laRegex;
- private JTextArea ta ;
- private JTextField tfRegex, tfSend ;
- private JButton buApply, buSend, buClear ;
- private JComboBox ports;
- private int regexp_id;
- private REGCB reg;
- private java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("hh:mm:ss");
- private static String[] startDomainList = {
- "127.255.255.255:2010",
- "10.192.36:3110",
- "10.0.0:54321",
- "228.1.2.4:4567",
- };
- private static java.util.Vector domainList;
-
- static {
- // initialize the domainlist
- domainList = new java.util.Vector();
- for (int i = 0; i