buildframework/helium/tools/compile/compile.ant.xml
branchhelium-7.0.x
changeset 593 4367a1b2db65
parent 179 d8ac696cc51f
--- a/buildframework/helium/tools/compile/compile.ant.xml	Wed Jun 23 16:25:55 2010 +0300
+++ b/buildframework/helium/tools/compile/compile.ant.xml	Wed Jun 23 16:36:23 2010 +0300
@@ -94,8 +94,15 @@
                         <scriptmapper language="jython">
 <![CDATA[
 import os
+counter = project.getProperty(".unique.counter");
+if not counter:
+    counter = 0
+else:
+    counter = int(counter)
+counter = counter + 1
+project.setProperty(".unique.counter", str(counter));
 (drive, _) = os.path.splitdrive(r'@{file}')
-path = r'@{file}'.replace(drive + os.sep, "", 1)
+path = r'@{file}'.replace(drive + os.sep, "%08d%s" % ((counter-1), os.sep), 1)
 self.addMappedName(path)
 ]]>
                         </scriptmapper>