ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Stevenson <>
Subject Publish task not consistently respecting extra attributes
Date Tue, 18 Dec 2012 23:42:25 GMT
Hi, thanks in advance for the help!  (or at least reading this)

I'm having difficulties with the Publish task.  The task is correctly using
the value of an extra attribute/token value as defined in the src ivy
pattern when it does its internal deliver task of the ivy file, but then
ignoring the value of that attribute/token when retrieving the resolved Ivy
file for publishing.

Here is a simplified case.  I have a C# .NET project that produces a .dll
(no dependencies), and publishes that .dll to a file system repository.

Short version:
I define an extra attribute e:folderItegRev on my Ivy file, and set it
using an ant property set to the value "101."
I call ivy:publish with:
The internal publish task delivers ivy file
as " [...]\PublishTest\bin\Release\PublishTest-101-ivy.xml" as expected,
but fails to publish the ivy file, apparently looking for
"[...]\PublishTest\bin\Release\PublishTest-ivy.xml," which is not what was
delivered (missing the "101").

Long version, with code:
Ivy file (ivy.xml):

<ivy-module version="2.0" xmlns:e="">
    <info organisation="Personal" module="PublishTest"
<conf name="Primary" visibility="public"/>
<artifact name="PublishTest" ext="dll" type="dll" conf="Primary"

Ivy settings (ivysettings.xml):

<settings defaultResolver="localRepo"/>
<filesystem name="localRepo">

Ant build file (build.xml):

<project default="build" xmlns:dn="antlib:org.apache.ant.dotnet"
<property name="folder.itegrev" value="101"/>
 <target name="build">
<ivy:configure file="ivysettings.xml" />
<ivy:resolve conf="Primary" />
<dn:msbuild buildfile="${basedir}/${ivy.module}.csproj">
<property name="Configuration" value="Release" />
<property name="BuildProjectReferences" value="false"/>
<property name="WarningLevel" value="4"/>

My build works successfully and ivy:publish is called.  The deliver task
delivers the resolved Ivy file as expected, including the folderItegRev

[ivy:publish] :: delivering :: Personal#PublishTest;working@computer ::
20121218161637 :: integration :: Tue Dec 18 16:16:37 MST 2012
[ivy:publish] options = status=integration pubdate=Tue Dec 18 16:16:37 MST
2012 validate=true resolveDynamicRevisions=true merge=true resolveId=null
[ivy:publish] delivering ivy file to
[ivy:publish] deliver done (16ms)

Note that the delivered Ivy file is "PublishTest-101-ivy.xml," including
the [folderItegRev] value, as expected.  But when the publish is called an
IllegalArgumentException is thrown that the ivy file to publish was not

[...]\PublishTest\build.xml:17: impossible to publish artifacts for
Personal#PublishTest;working@computer: java.lang.IllegalArgumentException:
ivy file to publish not found for Personal#PublishTest;working@computer:
call deliver before ([...]\PublishTest\bin\Release\PublishTest-ivy.xml)

I've tried explicitly calling <ivy:deliver /> prior to publish, and it
again works as expected, but the publish does not.  I've tried manually
calling <ivy:info /> prior to publish, thinking it might update a necessary
property that publish is not setting... no luck.

I'm about ready to go spelunking through the source, but thought I'd ask
the experts first.  Thanks again!


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