ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mondain <mond...@gmail.com>
Subject Ivy regex
Date Thu, 15 Jan 2009 18:36:05 GMT
I am using a regex in my ivysettings.xml and its not working as expected for
jars which have no revision. What I mean by not working is that it gets the
jar fine from the repository but it leaves a "-" character in the file name,
does anyone know what I'm doing wrong? or is this expected behavior?
ivysettings.xml

<ivysettings>
    <settings defaultResolver="local"/>
    <resolvers>
        <chain name="local">
<filesystem name="default">
<ivy
pattern="${user.home}/.ivy2/cache/[organisation]/[module]/ivys/ivy-[revision].xml"/>
         <artifact pattern="${ivy.lib.dir}/[artifact](-[revision]).[ext]" />
      </filesystem>
            <url name="googlecode">
                <artifact pattern="
http://red5.googlecode.com/svn/repository/[artifact](-[revision]).[ext]" />
                <artifact pattern="
http://red5.googlecode.com/svn/repository/[organisation]/[artifact](-[revision]).[ext]"
/>
            </url>
        </chain>
    </resolvers>
</ivysettings>

ivy.xml

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.3"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="
http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info organisation="red5" module="server" />
<configurations>
    <conf name="default"/>
<conf name="java5" extends="default" description="Java 5 dependencies"/>
<conf name="java6" extends="default" description="Java 6 dependencies"/>
<conf name="utest" extends="eclipse" description="Unit testing
dependencies"/>
<conf name="eclipse" description="Special dependencies in Eclipse"/>
</configurations>
    <dependencies>
        <!-- J2EE -->
        <dependency org="tomcat" name="jasper" rev="6.0.18" />
        <dependency org="javax" name="ejb3-persistence" rev="" />

---- SNIP ----

    </dependencies>
</ivy-module>

This produces a jar named: ejb3-persistence-.jar

Please note that I did not include the whole ivy.xml to keep the email
brief.

Thanks,
Paul

-- 
http://gregoire.org/
http://osflash.org/red5

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message