diff -r 0f5e3a7fb6af -r 85df38eb4012 buildframework/helium/tools/preparation/ido-prep.ant.xml --- a/buildframework/helium/tools/preparation/ido-prep.ant.xml Thu Mar 04 15:10:37 2010 +0200 +++ b/buildframework/helium/tools/preparation/ido-prep.ant.xml Tue Apr 27 08:33:08 2010 +0300 @@ -63,32 +63,54 @@ - + - - - - - - - - - - - - - - - - - - + + + @@ -172,6 +194,19 @@ + + + + + - - - inputfile: antProperty(ado.mapping.file) - ant: antProperties() - data: eval(' - java.io.FileInputStream pin = new java.io.FileInputStream(filename); - java.util.Properties props = new java.util.Properties(); - props.load(pin); - return props; - ', {filename:get(inputfile)}) - - - - - - inputfile: antProperty(ado.mapping.file) @@ -287,9 +304,12 @@ prefix = pathaddition.relative.commonprefix(config.keys()) if not os.path.exists(prefix): raise Exception("Could not find common prefix for the following paths:\n" + "\n".join(config.keys())) -self.log(str('Substing %s' % prefix)) -drive = fileutils.get_next_free_drive() -fileutils.subst(drive, prefix) +if os.sep == '\\': + self.log(str('Substing %s' % prefix)) + drive = fileutils.get_next_free_drive() + fileutils.subst(drive, prefix) +else: + drive = prefix project.setProperty('internal.codescanner.drive', drive) # creating the structure form subst drive. @@ -302,12 +322,21 @@ pe.setPath(location) project.addReference('substed.ado.src.path', path) - - - - + + + + + + + + + + + + + @@ -479,8 +508,13 @@ + + + + - + @@ -567,7 +601,7 @@ } self.log("Creating reference: " + attributes.get("pathid")); project.addReference(attributes.get("pathid"), path); - } catch (Exception e) { + } catch (java.io.IOException e) { throw new org.apache.tools.ant.BuildException(e); }