diff -r 238f4cb8391f -r ad8ffc8e1982 buildframework/helium/tools/preparation/ido-prep.ant.xml --- a/buildframework/helium/tools/preparation/ido-prep.ant.xml Thu Jun 10 13:50:24 2010 +0800 +++ b/buildframework/helium/tools/preparation/ido-prep.ant.xml Mon Jul 26 11:04:29 2010 +0800 @@ -59,36 +59,63 @@ @type string --> + + + - + - - - - - - - - - - - - - - - - - - + + + @@ -172,6 +199,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 +309,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 +327,21 @@ pe.setPath(location) project.addReference('substed.ado.src.path', path) - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -479,8 +539,13 @@ + + + + - + @@ -567,7 +632,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); }