Code cleanup / minor fixes.

This commit is contained in:
Norberto Lopez
2016-05-11 17:01:16 +00:00
parent 33921127f6
commit b0279b1d64
3 changed files with 11 additions and 1 deletions

View File

@@ -405,8 +405,8 @@ def buildPListInfoStatic(destFile, args, jreTarGzFile):
# if icnsStr != None:
# writeln(f, 3, '<string>-Xdock:icon=Contents/Resources/' + icnsStr + '</string>')
writeln(f, 3, '<string>-Dapple.laf.useScreenMenuBar=true</string>')
writeln(f, 3, '<string>-Dcom.apple.macos.use-file-dialog-packages=true</string>')
writeln(f, 3, '<string>-Dcom.apple.macos.useScreenMenuBar=true</string>')
writeln(f, 3, '<string>-Dcom.apple.macos.use-file-dialog-packages=true</string>')
writeln(f, 3, '<string>-Dcom.apple.mrj.application.apple.menu.about.name=' + args.name + '</string>')
writeln(f, 3, '<string>-Dapple.awt.application.name=' + args.name + '</string>')
writeln(f, 3, '<string>-Djava.system.class.loader=appLauncher.RootClassLoader</string>')

View File

@@ -155,6 +155,10 @@ public class MiscUtils
TarArchiveEntry entry = null;
while ((entry = (TarArchiveEntry)debInputStream.getNextEntry()) != null)
{
// Bail if we have been aborted
if (aTask.isActive() == false)
return null;
final File outputFile = new File(aDestPath, entry.getName());
if (entry.isDirectory())
{
@@ -225,7 +229,13 @@ public class MiscUtils
// Update all of the times on the folders last
for (File aDir : pathMap.keySet())
{
// Bail if we have been aborted
if (aTask.isActive() == false)
return null;
aDir.setLastModified(pathMap.get(aDir));
}
aTask.infoAppendln("\tUnpacked: " + untaredFiles.size() + " files\n");

Binary file not shown.