2 Replies Latest reply on Feb 8, 2009 3:55 PM by Nick Belaevski

    generated resources-config.xml - leading slashes - bug or fe

    Dimitri Alexeev Newbie

      While referencing images from my custom XCSS file:


      <u:selector name="#cssClassName">
      
       <u:style name="a">
       <f:resource f:key="/images/Banner1.jpeg" />
       </u:style>
      
       <u:style name="b">
       <f:resource f:key="images/Banner2.jpeg" />
       </u:style>
      
      </u:selector>


      The following target\generated-component\resources\META-INF\resources-config.xml was generated by maven:

      ...
      <resource>
       <name>images/Banner1.jpeg</name>
       <path>images/Banner1.jpeg</path>
      </resource>
      
      <resource>
       <name>images/Banner2.jpeg</name>
       <path>/images/Banner2.jpeg</path>
      </resource>
      ...
      


      Can you please comment this behavior? I was expecting something like
      ...
      <resource>
       <name>/images/Banner1.jpeg</name>
       <path>/images/Banner1.jpeg</path>
      </resource>
      
      <resource>
       <name>images/Banner2.jpeg</name>
       <path>images/Banner2.jpeg</path>
      </resource>
      ...