[Firebug-cvs] firebug/project/zaurus/net/tinyos/tostools PortLister.java,NONE,1.1 Listener.java,1.1,
Brought to you by:
doolin
From: <do...@us...> - 2003-07-30 21:43:24
|
Update of /cvsroot/firebug/firebug/project/zaurus/net/tinyos/tostools In directory sc8-pr-cvs1:/tmp/cvs-serv5788/project/zaurus/net/tinyos/tostools Modified Files: Listener.java Added Files: PortLister.java Log Message: listenFB will now run from build.xml using ant if the build properties has the paths set correctly. --- NEW FILE: PortLister.java --- package net.tinyos.tostools; import java.io.*; import javax.comm.*; import java.util.*; class PortLister { public static void main (String[] args) { Enumeration pList = CommPortIdentifier.getPortIdentifiers(); CommPortIdentifier cpi = null; System.out.println("Elements: " + pList.hasMoreElements()); while (pList.hasMoreElements()) { cpi = (CommPortIdentifier) pList.nextElement(); System.out.println("Port " + cpi.getName()); System.out.println("PortType " + cpi.getPortType()); } } } Index: Listener.java =================================================================== RCS file: /cvsroot/firebug/firebug/project/zaurus/net/tinyos/tostools/Listener.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Listener.java 29 Jul 2003 23:33:16 -0000 1.1 --- Listener.java 30 Jul 2003 21:43:21 -0000 1.2 *************** *** 29,33 **** import javax.comm.*; - //import net.tinyos.util.*; public class Listener { --- 29,32 ---- |