Target.getTasks returns UnknownElement

2007-08-01 Thread James Mao
Hi, I'm trying to parse the build.xml myself, and tried to get the tasks object with the following code File buildFile = new File("c:/myproject/build.xml"); Project project = new Project(); project.init(); project.setUserProperty( "ant.file" , buildFile.getAbsolute

ANT 1.7 with JUNIT4.0

2007-06-07 Thread James Mao
Hi, I just upgraded from ant 1.6 to ant 1.7, and now i also upgraded to junit 4 But i can not see the *ignored tests* in the brief formatter mode. Is it a known issue? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED]

Is it possible to get the CPU usage and memory usage from JAVA?

2005-08-25 Thread James Mao
Hi , Anyone know how to get the CPU usage and meory usage for a specified command line from JAVA? Cheers, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Fwd: How to add my Ant extension project into the 'Related Projects' list of ANT?]

2005-08-24 Thread James Mao
--- Begin Message --- Hi guys, I just released my first Ant extension project 'DANT' - distributed ant on http://dant.3322.org don't know how to add the project into the 'Related Projects' list of ANT. Anyone can give me a hand? Thanks in advance! Cheers, James. --- End Message --- ---