雖然發佈使用常春藤文物:發佈 Ant任務,文物名稱與任何附加我們指定修訂/ pubrevision常春藤的屬性:發佈任務。的Apache常春藤:如何有時間標記附加到的文物,同時發佈
有沒有辦法給這個名字追加時間戳?
要詳細闡述一下... 我想發佈我的工件(例如test.jar)到版本爲DEV.SNAPSHOT的存儲庫(可能是公共或共享),但發佈的JAR的名稱應該像測試-DEV.SNAPSHOT.currentTimestamp.jar
但我發佈Ant任務是爲後續的發佈爲測試DEV.SNAPSHOT.jar
<target name="publish-local" depends="jar">
<tstamp>
<format property="snapshot.timestamp" pattern="yyyyMMdd.HHmmss"/>
</tstamp>
<move file="${jar.file}" tofile="${build.dir}/${ant.project.name}-DEV.SNAPSHOT.${snapshot.timestamp}.jar"/>
<ivy:deliver deliverpattern="${build.dir}/ivy-[revision].${snapshot.timestamp}.xml" pubrevision="DEV.SNAPSHOT" status="integration"/>
<ivy:resolve/>
<ivy:publish resolver="my-local" pubrevision="DEV.SNAPSHOT" status="integration" overwrite="true" publishivy="true">
<ivy:artifacts pattern="${build.dir}/[artifact]-[revision].${snapshot.timestamp}.[ext]"/>
</ivy:publish>
</target>
不理解爲什麼常春藤:發佈更名神器?任何幫助?