[Yanel-dev] [Bug 5270] It seems like realms with "external" resources do not seem to work on Windows

bugzilla-daemon at bugzilla.wyona.com bugzilla-daemon at bugzilla.wyona.com
Sat Apr 14 01:51:19 CEST 2007


http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5270





------- Additional Comments From jonathan.addison at wyona.com  2007-04-14 01:51 -------
I tried several different absolute paths within local.resource-types.xml.

c:/src/gurit-import/yanel/resource-types/xml-gurit/

did not work, but

/src/gurit-import/yanel/resource-types/xml-gurit/

did work.

The problem stems from this bit of code in yanel2resources.xsl:
<xsl:choose>
        <xsl:when test="starts-with(@src, '/')">
    <ant inheritAll="false" antfile="{@src}/build.xml" target="compile">
      <property name="yanel.source.version" value="{$yanel.source.version}"/>
    </ant>
        </xsl:when>
        <xsl:otherwise>
    <ant inheritAll="false" antfile="${{build.dir}}/{@src}/build.xml"
target="compile">
      <property name="yanel.source.version" value="{$yanel.source.version}"/>
    </ant>
        </xsl:otherwise>
      </xsl:choose>

It only checks whether the @src starts with '/', so if it starts with 'c:/' then
 'c:/' gets inserted into the middle of the build path, causing the build to fail.

I'm working on a way to check for this, but it's difficult on Windows since we
need to account for all possible drive letter names.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Yanel-development mailing list