Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2.0
-
None
-
None
-
None
-
Windows 7
Description
I have the following build.xml:
<project name="test" default="publish" xmlns:ivy="antlib:org.apache.ivy.ant"> <target name="info" description="--> configure ivy"> <ivy:info file="${basedir}\ivy.xml"/> </target> <target name="configure" description="--> configure ivy"> <ivy:configure file="..\ivysettings.xml"/> </target> <target name="publish_debug" depends="configure,info"> <ivy:publish artifactspattern="${basedir}\bin\Debug\[artifact].[ext]" resolver="development" pubrevision="1.0.0.0" pubdate="${NOW_US}" overwrite="true" conf="debug" /> </target> </publish>
I have the following ivysettings.xml:
<ivysettings> <property name="repo.dir" value="\\titan.englab.local\Users\mfancy\ivyRepo"/> <settings defaultResolver="development"/> <resolvers> <filesystem name="development"> <ivy pattern="${repo.dir}/development/[organisation]/[module]/[revision]/ivy.xml" /> <artifact pattern="${repo.dir}/development/[organisation]/[module]/[revision]/[conf]/[artifact].[ext]" /> </filesystem> </resolvers> </ivysettings>
I have the following ivy.xml:
<ivy-module version="2.0"> <info organisation="ironmountain" module="HelloWorldCL" revision="1.0.0.0"/> <configurations defaultconf="debug"> <conf name="release"/> <conf name="debug"/> </configurations> <publications> <artifact name="HelloWorldCL" ext="dll" type="dll" conf="debug,release"/> <artifact name="HelloWorldCL" ext="pdb" type="pdb" conf="debug,release"/> </publications> </ivy-module>
When I run "ant publish" I get the following structure in my repository.
development\ironmountain\HelloWorldCL\1.0.0.0\ivy.xml development\ironmountain\HelloWorldCL\1.0.0.0\ivy.xml.sha1 development\ironmountain\HelloWorldCL\1.0.0.0\ivy.xml.md5 development\ironmountain\HelloWorldCL\1.0.0.0\default\HelloWorldCL.dll development\ironmountain\HelloWorldCL\1.0.0.0\default\HelloWorldCL.dll.sha1 development\ironmountain\HelloWorldCL\1.0.0.0\default\HelloWorldCL.dll.md5
I was expecting the "default" to be replaced by "debug" since it was specified with a switch on the ivy.publish target.