Dave released Roller 1.0 yesterday, so I decided to spend 20 minutes and upgrade today. I have customized a few pieces in Roller and added a bunch of my own files, so I always build from CVS for this site. I did find a bug with twisty comments (fixed in CVS) when testing locally, but everything else appears to be working OK. Let me know if you see any issues and feel free to play with my test user if you like. Username is "test", password is "roller". Well done Dave!
Update: Remember Me seems to be broken. I thought I fixed it last week. I'll investigate further tomorrow.
Update 2: Strange... it works when I test it locally, but not on this site.
Solved: It turned out to be related to installing Roller as the root app, and only seems to affect Firefox. Fixed in CVS.
According to the Gentoo Java Roadmap, AppFuse is on the list of apps to integrate. Nice! I'm going to rebuild my Windows 2000 Server as a Suse 9.2 box in the next couple of weeks, but I might have to reconsider and go with Gentoo. I was going to buy a gig o' RAM for the box, but it looks pretty spendy.
Today I added another item for AppFuse 1.8 in the roadmap: create an installer using MyJavaPack that can install Ant, AppFuse, MySQL and Tomcat. Basically, give developer's a way to install and start developing with AppFuse in under 5 minutes. Let me know if you're interested in helping out with this.
According to quite a few sources, Apple will be shipping PowerBook G5s in the next 6 months. The timing sounds right. Tiger will be shipping by the Developer's conference and they need to announce something big - so G5 Laptops sounds like a logical choice. I can wait 6 months - where can I pre-order a 17"?
Yesterday, I integrated Cargo into our application so we could start/stop Tomcat before running our jWebUnit tests. I use Cargo in AppFuse and Equinox - which are both Ant-based. Since we're using Maven on our project, I had to do a bit of futzing to get Cargo integrated into Maven. I prefer to use the Ant tasks from Cargo than the programmatic API because it's nice to run your tests when you start Tomcat manually. If you use the programmatic API, and start/stop Tomcat in setUp()/tearDown() methods - your test will fail if Tomcat is already running.
Below is what I added to maven.xml. With this, we can run "maven test-web" to test our UI with Tomcat running or "maven test-tomcat" to start/stop Tomcat before running our tests. Now I just need to figure out the best way to configure the proper port in my jWebUnit test. I'll probably put it into project.properties and the read the value as part of my test. I've also included a "deploy" goal in this example to demonstrate an easy way to deploy to Tomcat.
<property environment="env"/>
<property name="maven.tomcat.home" value="${env.CATALINA_HOME}"/>
<!-- deploy the directory created by war:webapp to tomcat/webapps -->
<goal name="deploy" prereqs="war:webapp">
<copy todir="${maven.tomcat.home}/webapps">
<fileset dir="${maven.build.dir}">
<include name="${pom.artifactId}/**"/>
</fileset>
</copy>
</goal>
<goal name="test-tomcat" prereqs="war:war"
description="Starts Tomcat, runs jWebUnit tests, stops Tomcat">
<taskdef resource="cargo.tasks" classpathref="maven.dependency.classpath"/>
<cargo-tomcat5x homeDir="${maven.tomcat.home}"
output="${maven.test.dest}/cargo.log" action="start" >
<war warFile="${maven.war.build.dir}/${maven.war.final.name}"/>
<configuration dir="${maven.test.dest}/tomcat5x">
<property name="cargo.logging" value="high"/>
<property name="cargo.servlet.port" value="8280"/>
</configuration>
</cargo-tomcat5x>
<attainGoal name="test-web"/>
<cargo-tomcat5x homeDir="${maven.tomcat.home}" action="stop"/>
</goal>
<goal name="test-web" prereqs="test:compile" description="Runs JUnit tests">
<taskdef name="junit"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
<mkdir dir="${maven.test.reportsDirectory}"/>
<junit printsummary="no" errorProperty="test.failed"
failureProperty="test.failed">
<classpath>
<pathelement location="${maven.test.dest}"/>
<pathelement location="${maven.build.dest}"/>
<path refid="maven.dependency.classpath"/>
<path location="web"/>
</classpath>
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<batchtest todir="${maven.test.reportsDirectory}" if="testcase">
<fileset dir="${maven.test.dest}">
<include name="**/*${testcase}*"/>
<exclude name="**/*TestCase.class"/>
<exclude name="**/*$*.class"/>
</fileset>
</batchtest>
<batchtest todir="${maven.test.reportsDirectory}" unless="testcase">
<fileset dir="${maven.test.dest}">
<include name="**/*WebTest.class"/>
</fileset>
</batchtest>
</junit>
<fail if="test.failed">
Unit tests failed. For error messages, check the log files in
${maven.test.reportsDirectory}.</fail>
</goal>