Sunday, August 29, 2010

Android hello world app

I was able to create a simple Android app. It simply displays the text "Jim's Application." But it is a start.
Published with Blogger-droid v1.5.5.2

Tuesday, May 18, 2010

JUnits in Ant

I have no problems running JUnits in Eclipse provided in the Ant baseline and there are plenty of JUnits, so I would not be setting precedent by creating a new one or adding to an existing one.

Antunit Script to Plug into JUnit Runner

I pulled down the Antunit source code and was unable to find anything that looked like a tool I could plug into JUnit Runner, although, I am not sure what such a tool would look like.

Searching in the Antunit site did not turn up much either.

Not able to hit breakpoint in Eclipse

When I put a breakpoint in the execute method of Replace, however, Eclipse did not hit my breakpoint.

I looked over the post from the developer group and I noticed that Gles did not suggest that I use an Eclipse plugin for antunit, but a tool in the antunit trunk to plug antunit into Eclipse's JUnit runner.

Antunit and antdotnet

From http://ant.apache.org/antlibs/bindownload.cgi
I downloaded apache-ant-dotnet-1.0-bin.zip and apache-ant-antunit-1.1-bin.zip, found the .jar file in each and added them to my installation of ant.

This seemed to clear up problems I had with "ant test", although it ran for a while and just hung up.

After doing this, I was able to run one of the ant scripts which used antunit.
I ran src/test/antunit/taskdefs/replace-test.xml
And it ran successfully in Eclipse.

Monday, May 17, 2010

Zero errors!

Clean build in Eclipse (in Windows)

Project name: ant-core

Source Folders
ant-core/src
ant-core/src/main
ant-core/src/tests/junit

Libraries
C:\Documents and Settings\c744873\.maven\repository\groovy\jars\groovy-all-1.0.jar
/ant-core/lib/optional/activation-1.1.jar
/ant-core/lib/optional/antlr-2.7.7.jar
/ant-core/lib/optional/asm-2.2.3.jar
/ant-core/lib/optional/asm-commons-2.2.3.jar
/ant-core/lib/optional/asm-tree-2.2.3.jar
/ant-core/lib/optional/bcel-5.1.jar
/ant-core/lib/optional/bsf-2.4.0.jar
/ant-core/lib/optional/bsh-2.0b4.jar
/ant-core/lib/optional/bsh-core-2.0b4.jar
/ant-core/lib/optional/commons-logging-1.0.4.jar
/ant-core/lib/optional/commons-logging-api-1.1.jar
/ant-core/lib/optional/commons-net-1.4.1.jar
/ant-core/lib/optional/jai_codec.jar
/ant-core/lib/optional/jai_core.jar
/ant-core/lib/optional/jasper-compiler-4.1.36.jar
/ant-core/lib/optional/jasper-runtime-4.1.36.jar
/ant-core/lib/optional/jdepend-2.9.1.jar
/ant-core/lib/optional/jruby-0.9.8.jar
/ant-core/lib/optional/js-1.6R7.jar
/ant-core/lib/optional/log4j-1.2.14.jar
/ant-core/lib/optional/mail-1.4.jar
/ant-core/lib/optional/maven-artifact-ant-2.0.4-dep.jar
/ant-core/lib/optional/NetRexxC.jar
/ant-core/lib/optional/oro-2.0.8.jar
/ant-core/lib/optional/regexp-1.3.jar
/ant-core/lib/optional/serializer-2.7.1.jar
/ant-core/lib/optional/servlet-api-2.3.jar
/ant-core/lib/optional/which-1.0.jar
/ant-core/lib/optional/xalan-2.7.1.jar
/ant-core/lib/optional/xml-apis-1.3.04.jar
/ant-core/lib/optional/xml-resolver-1.2.jar
/ant-core/lib/optional/jsch-0.1.42.jar

Sunday, May 16, 2010

Message looks like an error after tests complete

All the tests complete just fine from both the command-line and in Eclipse. It ran 1678 unit tests in about 12 1/2 minutes. I get the message below, however, about problems with the antunit task. I still cannot explain this one. But for what I need to do, I can probably run individual antunits rather than run the full unit test suite for my development.

antunit-tests:
[mkdir] Created dir: /home/chyjm/workspace/ant-core/build/antunit/xml

BUILD FAILED
/home/chyjm/workspace/ant-core/build.xml:1817: Problem: failed to create task or type antlib:org.apache.ant.antunit:antunit
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/local/apache-ant-1.8.1/lib
-/home/chyjm/.ant/lib
-a directory added on the command line with the -lib argument


Total time: 12 minutes 38 seconds