Monthly Archives: July 2012

MacOS X : set modification date to creation date

Quick hack: for file in *; do eval `stat -s $file` perl -e ‘utime $ARGV[0], $ARGV[0], $ARGV[1]’ $st_birthtime “$file” done If you need to do the opposite, e.g. set the creation date from the modification date, use: for f in … Continue reading

Posted in Mac | Leave a comment

Maven’s pom.xml is not included when using assembly plugin with ref “jar-with-dependencies”

Maven has a bug that causes the pom.xml of the current artifact to be ignored when using assembly / jar-with-dependencies. There is even a┬ábug report from 2008 with priority “Major” (!). As a workaround, create an XML file “assembly.xml” with … Continue reading

Posted in Java | Leave a comment