Thursday 20 September 2007

Mac + Mozilla = clutterville population you

Tired of the way Thunderbird and Firefox clutter the desktop of your Mac. I certainly was. Each and every file I opened was left on the desktop until I could no longer separate the important files from the thrash. So I tried to search for a solution.

I found it in a two year old bug report (some bug report). Seems like Mozilla only uses the Mac OS X standard user temporary directory; which is the desktop. So; how to fix it. Simply open Safari and open the configuration and change the download directory under the general tab. So easy; so far fetched :-)

If you don't like this fix you could choose another route by telling Firefox to delete downloaded temporary files on exit. I don't know if the same can be done for Thunderbird. I chose the first solution because I often find myself editing opened documents forgetting that I opened them in Firefox; and I don't want to loose the changes. Nevertheless; this comment shows how: some bug report comment.

Friday 31 August 2007

Maven2 classpaths printout

Ever needed to find the classpaths your maven2-project uses? Add this to build-plugins of your pom and run mvn antrun:run:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<property name="compile_classpath" refid="maven.compile.classpath"/>
<property name="runtime_classpath" refid="maven.runtime.classpath"/>
<property name="test_classpath" refid="maven.test.classpath"/>
<property name="plugin_classpath" refid="maven.plugin.classpath"/>

<echo message="compile classpath: ${compile_classpath}"/>
<echo message="runtime classpath: ${runtime_classpath}"/>
<echo message="test classpath: ${test_classpath}"/>
<echo message="plugin classpath: ${plugin_classpath}"/>
</tasks>
</configuration>
</plugin>