I have two versions of a resource that I am publishing to our svn repository
a "milestone" release and a "release" release. The artifacts are published
to the same directory but have different pubRevisions. Everytime I publish
one, the other gets deleted.  Below is the debug output. Is this expected
behavior? 

Adding file foo.bar/coreTools/coreTools-milestone-1.1.jar
Adding file foo.bar/coreTools/coreTools-milestone-1.1.jar.sha1
Adding file foo.bar/coreTools/coreTools-milestone-1.1.jar.md5
Adding file foo.bar/coreTools/ivy-milestone-1.1.xml
Adding file foo.bar/coreTools/ivy-milestone-1.1.xml.sha1
Adding file foo.bar/coreTools/ivy-milestone-1.1.xml.md5
Deleting foo.bar/coreTools/coreTools-release-1.1.jar
Deleting foo.bar/coreTools/ivy-release-1.1.xml
Deleting foo.bar/coreTools/coreTools-release-1.1.jar.md5
Deleting foo.bar/coreTools/ivy-release-1.1.xml.md5
Deleting foo.bar/coreTools/coreTools-release-1.1.jar.sha1
Deleting foo.bar/coreTools/ivy-release-1.1.xml.sha1

--- ANT targets

        <target name="milestoneIvySvn" depends="jar, setVersion" 
description="-->
publish this project in the blue ivy subversion repository">
                 <ivy:info file="ivy.xml"/>
                                 <ivy:buildnumber
                                         organisation="${ivy.organisation}" 
module="${ivy.module}"
                                        revision="milestone-1." 
defaultBuildNumber="1" revSep=""/>


            <ivy:publish artifactspattern="${build.dir}/[artifact].[ext]"
                    resolver="shared"
                        pubrevision="${ivy.new.revision}"
                    overwrite="false"
                    status="milestone"

            />
                <echo message="project ${ant.project.name} released with version
${revision}" />
            </target>

       <!-- =================================
             target: releaseIvySvn
            ================================= -->

        <target name="releaseIvySvn" depends="jar" description="--> release to
IvySvn">
                 <ivy:info file="ivy.xml" />
                 <ivy:buildnumber
                         organisation="${ivy.organisation}" 
module="${ivy.module}"
                        revision="release-1." defaultBuildNumber="1" revSep=""/>

                        <ivy:publish 
artifactspattern="${build.dir}/[artifact].[ext]"
                                resolver="shared"
                                pubrevision="${ivy.new.revision}"
                                status="release"/>

                <echo message="project ${ant.project.name} released with version
${ivy.new.revision}" />
            </target>
-- 
View this message in context: 
http://www.nabble.com/Publish-is-deleting-other-revisions-tp19908634p19908634.html
Sent from the ivy-user mailing list archive at Nabble.com.

Reply via email to