compressor step is now optional
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40812
This commit is contained in:
parent
6328445043
commit
ca52426825
@ -173,25 +173,28 @@ namespace builder
|
|||||||
}
|
}
|
||||||
|
|
||||||
string pkg_file = null;
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user