I really believe in the code reutilization. Jakarta commons lang is part of the core of Cocoon. Why we need to wrote the same code over and over?
But with a change like
- File workDirParent = new File(System.getProperty("java.io.tmpdir", "."));
+ File workDirParent = new File(SystemUtils.JAVA_IO_TMPDIR != null ?
SystemUtils.JAVA_IO_TMPDIR : ".");
you seem to counteract this goal.
System.getProperty(String key, String default) has probably the same logic that you implemented above on your own.
Joerg
