compressor step is now optional

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40812
This commit is contained in:
David Anderson 2007-05-16 23:32:22 +00:00
parent 6328445043
commit ca52426825

View File

@ -173,25 +173,28 @@ namespace builder
}
string pkg_file = null;
if ((pkg_file=CompressPackage(pkg)) == null)
if (cfg.Compressor != null)
{
throw new System.Exception("Failed to compress package: " + pkg.GetPackageName());
if ((pkg_file=CompressPackage(pkg)) == null)
{
throw new System.Exception("Failed to compress package: " + pkg.GetPackageName());
}
string lpath = null, ltarget = null;
pkg.GetCompressBases(ref lpath, ref ltarget);
lpath = Config.PathFormat("{0}/{1}/{2}",
cfg.OutputBase,
lpath,
pkg_file);
ltarget = Config.PathFormat("{0}/{1}", cfg.OutputBase, pkg_file);
if (File.Exists(ltarget))
{
File.Delete(ltarget);
}
File.Move(lpath, ltarget);
}
string lpath = null, ltarget = null;
pkg.GetCompressBases(ref lpath, ref ltarget);
lpath = Config.PathFormat("{0}/{1}/{2}",
cfg.OutputBase,
lpath,
pkg_file);
ltarget = Config.PathFormat("{0}/{1}", cfg.OutputBase, pkg_file);
if (File.Exists(ltarget))
{
File.Delete(ltarget);
}
File.Move(lpath, ltarget);
}
}
}