Menu

#4 get-libs.xml

open
Ant scripts (3)
5
2005-04-13
2005-04-11
macbudo
No

Has problem with multiple repositories. I have three
repositores specified in my build.properties. One is
maven on ibiblio, one is jam's repo and the other is my
local corporate repo. Dependencies in jam and
local-corporate repo's dont resolve correctly in
get-libs.xml.

Discussion

  • Richard Easterling

    Logged In: YES
    user_id=1029679

    fixed

     
  • Richard Easterling

    • assigned_to: nobody --> reaster
    • status: open --> closed
     
  • macbudo

    macbudo - 2005-04-13

    Logged In: YES
    user_id=1250419

    Looks like that will work. New problem is if ther is a
    trailing '/' on the url for ${_repo} it will create
    something like this (note the '//' after maven):
    src="http://www.javagen.org/maven//csp-balancedue/jars/csp
    l took that base url from the JAM documentation on setup and
    install.

    Tried to fix it with this but having problems with the
    u:replace thing:
    <j:set var="srcurl"
    value="${_repo}/${dep.artifactDirectory}/${dep.type}s/${dep.artifact}"/>
    <u:replace var="srcurl" value="${srcurl}" old="http://"
    new="http:///"/>
    <u:replace var="srcurl" value="${srcurl}" old="//"
    new="/"/>
    <!-- ${srcrul} -->
    <get
    dest="$${local.repo}/${dep.artifactDirectory}/${dep.type}s/${dep.artifact}"
    usetimestamp="true" ignoreerrors="true" src="${srcurl}"/>

     
  • macbudo

    macbudo - 2005-04-13
    • status: closed --> open
     
  • macbudo

    macbudo - 2005-04-13

    Logged In: YES
    user_id=1250419

    OK, its an old version of jelly utilities, try this instead....

    <u:tokenize var="urlparts" delim="/">${_repo}</u:tokenize>
    <j:set var="srcurl" value="http:/"/>
    <j:forEach var="parts" items="${urlparts}">
    <j:if test="${parts}!='http' and ${parts} != ''">
    <j:set var="srcurl" value="${srcurl}/${parts}"/>
    </j:if>
    </j:forEach>
    <j:set var="srcurl"
    value="${srcurl}/${dep.artifactDirectory}/${dep.type}s/${dep.artifact}"/>
    <!-- ${srcrul} -->

     
  • macbudo

    macbudo - 2005-04-13

    Logged In: YES
    user_id=1250419

    oops, still getting used to jelly, upon closer inspection
    had a problem. Here is a betterfix.

     

Log in to post a comment.