Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » URL parse doesn't find link?(How to use correctly)
URL parse doesn't find link? [message #633731] Tue, 19 October 2010 07:28
Fabian Baboschi is currently offline Fabian Baboschi
Messages: 40
Registered: December 2009
Member
I'm using Buckminster for 3.6.1 (1.3.1.r11579)

I have a url matcher that is supposed to get a link from a webpage (actually it's an artifact without a pom...).

The contents of the RMap search path is:

<rm:searchPath name="maven">
    <rm:provider componentTypes="jar" readerType="url" source="false" mutable="false">
      <rm:matcher base="http://server:80/artifactory/repo/com/company/project/SomeJar/3.1.12/">
      	<rm:group name="WOW">
        	<rm:name pattern="SomeJar" 
        		prefix="http://server:80/artifactory/repo/com/company/project/SomeJar/3.1.12/" 
        		suffix="-"/>
        	<rm:version pattern="3\.1\.12"  suffix=".jar"/>
        </rm:group>
      </rm:matcher>
      <rm:uri format="http://server:80/artifactory/repo/com/company/project/{0}/{1}/{0}-{1}.jar">
      	<bc:propertyRef key="name"/>
        <bc:propertyRef key="version"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>


I checked the regexp that appears in the log when trying to resolve the artifact and it should match the href from here:

<a class="icon-link jar" href=" http://server/artifactory/repo/com/company/project/SomeJar/3 .1.12/SomeJar-3.1.12.jar">SomeJar-3.1.12.jar</a>

I actually get this message:
The property ${ name } has not been set and will default to null
The property ${ version } has not been set and will default to null

I tried with normal properties in the match, also with buckminster.component(.version) properties and I get the same message about the null value.

Is this a bug because of the class="..." in the <a href=" tag?
What am I doing wrong? How can I define a property in the matcher that I can actually use in the uri just below it? Can you give me a working example?
Previous Topic:Use ant properties in a customized category.xml
Next Topic:An internal error occurred during: "Refreshing external folders"
Goto Forum:
  


Current Time: Thu Oct 02 08:43:14 GMT 2014

Powered by FUDForum. Page generated in 0.09675 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software