[izpack-changes] izpack-src/src/lib/com/izforge/izpack/util IoHelper.java,1.22.4.1,1.22.4.2
eppelman
nobody at sheep.berlios.de
Thu Feb 9 14:19:32 CET 2006
Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util
In directory sheep:/tmp/cvs-serv27075/src/lib/com/izforge/izpack/util
Modified Files:
Tag: branch-3-8
IoHelper.java
Log Message:
3.8-Branch: Fixed detection of getFreeSpace() for HP-UX
Index: IoHelper.java
===================================================================
RCS file: /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util/IoHelper.java,v
retrieving revision 1.22.4.1
retrieving revision 1.22.4.2
diff -u -d -r1.22.4.1 -r1.22.4.2
--- IoHelper.java 3 Jan 2006 13:53:47 -0000 1.22.4.1
+++ IoHelper.java 9 Feb 2006 13:19:28 -0000 1.22.4.2
@@ -296,6 +296,14 @@
fe.executeCommand(params, output);
retval = extractLong(output[0], -3, 3, "%") * 1024;
}
+ else if (OsVersion.IS_HPUX)
+ {
+ String[] params = { "bdf", path };
+ String[] output = new String[2];
+ FileExecutor fe = new FileExecutor();
+ fe.executeCommand(params, output);
+ retval = extractLong(output[0], -3, 3, "%") * 1024;
+ }
else if (OsVersion.IS_UNIX)
{
String[] params = { "df", "-Pk", path};
More information about the izpack-changes
mailing list