ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aris Green <aris.gr...@gmail.com>
Subject Re: I have given up on configurations - what good are they?
Date Sat, 29 Dec 2012 17:04:30 GMT
Here is my ivy.xml, build.xml, and settings.xml.  Could it be that having
[conf] in  the path does not work?

*ivy.xml*

<?xml version="1.0" encoding="utf-8"?>
<ivy-module version="2.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="
http://ant.apache.org/ivy/schemas/ivy.xsd"
            xmlns:e="http://ant.apache.org/ivy/extra">
  <info organisation="com.elucidev" module="My.Crapola"
revision="${ivy.revision}" status="integration"  />
  <configurations defaultconf="client">
    <conf name="client" />
    <conf name="server" />
  </configurations>
  <publications >
    <artifact name="crapola-client" type="exe" ext="exe" conf="client" />
    <artifact name="cr-client" type="config" ext="config" conf="client" />
    <artifact name="crapola" type="exe" ext="exe" conf="server" />
    <artifact name="cr-server" type="config" ext="config" conf="server" />
  </publications>
</ivy-module>

*build.xml*

<?xml version="1.0" encoding="utf-8"?>
<project name="save-artifacts" default="mypublish"
xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:e="
http://ant.apache.org/ivy/extra">


    <property name="bin.dir" value="bin" />
    <property name="ivy.revision" value="8.8.8-4444" />
    <property file="pp.build.properties" />

    <target name="foo">
    <ivy:resolve conf="client" transitive="false"/>
    <ivy:publish srcivypattern="bin/[conf]/ivy-delivered.xml"
                 artifactspattern="bin/[conf]/[artifact].[ext]"
                 resolver="internalconf"
                 conf="client"
                 status="integration"
                 update="true" />


    </target>
</project>

*settings.xml*

<?xml version="1.0" encoding="utf-8"?>
<project name="save-artifacts" default="mypublish"
xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:e="
http://ant.apache.org/ivy/extra">


    <property name="bin.dir" value="bin" />
    <property name="ivy.revision" value="8.8.8-4444" />
    <property file="pp.build.properties" />

    <target name="foo">
    <ivy:resolve conf="client" transitive="false"/>
    <ivy:publish srcivypattern="bin/[conf]/ivy-delivered.xml"
                 artifactspattern="bin/[conf]/[artifact].[ext]"
                 resolver="internalconf"
                 conf="client"
                 status="integration"
                 update="true" />


    </target>
</project>

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