mirror of https://github.com/apache/cassandra
Update POM generation after migration to git
patch by stephenc; reviewed by slebresne for CASSANDRA-3732
This commit is contained in:
parent
3fd0fb6aa0
commit
062ee3f2ee
44
build.xml
44
build.xml
|
|
@ -24,12 +24,11 @@
|
|||
<property file="build.properties.default" />
|
||||
<property name="debuglevel" value="source,lines,vars"/>
|
||||
|
||||
<!-- default version and SCM information (we need the default SCM info as people may checkout with git-svn) -->
|
||||
<!-- default version and SCM information -->
|
||||
<property name="base.version" value="1.0.9"/>
|
||||
<property name="scm.default.path" value="cassandra/branches/cassandra-1.0.0"/>
|
||||
<property name="scm.default.connection" value="scm:svn:http://svn.apache.org/repos/asf/${scm.default.path}"/>
|
||||
<property name="scm.default.developerConnection" value="scm:svn:https://svn.apache.org/repos/asf/${scm.default.path}"/>
|
||||
<property name="scm.default.url" value="http://svn.apache.org/viewvc/${scm.default.path}"/>
|
||||
<property name="scm.connection" value="scm:git://git.apache.org/cassandra.git"/>
|
||||
<property name="scm.developerConnection" value="scm:git://git.apache.org/cassandra.git"/>
|
||||
<property name="scm.url" value="http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=tree"/>
|
||||
|
||||
<!-- directory details -->
|
||||
<property name="basedir" value="."/>
|
||||
|
|
@ -107,14 +106,6 @@
|
|||
<available file="${build.src.java}" type="dir" />
|
||||
</condition>
|
||||
|
||||
<condition property="scm.provider.git-svn">
|
||||
<available file="${basedir}/.git" type="dir"/>
|
||||
</condition>
|
||||
|
||||
<condition property="scm.provider.svn">
|
||||
<available file="${basedir}/.svn" type="dir"/>
|
||||
</condition>
|
||||
|
||||
<tstamp>
|
||||
<format property="YEAR" pattern="yyyy"/>
|
||||
</tstamp>
|
||||
|
|
@ -231,31 +222,6 @@
|
|||
</wikitext-to-html>
|
||||
</target>
|
||||
|
||||
<target name="scm-svn-info" description="Determines the current Subversion URL with peg revision"
|
||||
if="scm.provider.svn">
|
||||
<exec executable="svn" dir="${basedir}" output="${build.dir}/svn-info.xml">
|
||||
<arg line="info --xml"/>
|
||||
</exec>
|
||||
<xmlproperty file="${build.dir}/svn-info.xml" collapseAttributes="true" prefix="svn" keepRoot="false"/>
|
||||
<echo file="${build.dir}/scm.properties">
|
||||
connection=scm:svn:${svn.entry.url}@${svn.entry.commit.revision}
|
||||
developerConnection=scm:svn:${svn.entry.url}@${svn.entry.commit.revision}
|
||||
url=${svn.entry.url}?pathrev=${svn.entry.commit.revision}
|
||||
</echo>
|
||||
<replace file="${build.dir}/scm.properties">
|
||||
<replacefilter token="connection=scm:svn:https:" value="connection=scm:svn:http:"/>
|
||||
<replacefilter token="Connection=scm:svn:http:" value="Connection=scm:svn:https:"/>
|
||||
<replacefilter token="url=${svn.entry.repository.root}" value="url=http://svn.apache.org/viewvc"/>
|
||||
</replace>
|
||||
<property file="${build.dir}/scm.properties" prefix="scm"/>
|
||||
</target>
|
||||
|
||||
<target name="scm-info" description="Determines the SCM details"
|
||||
unless="scm.connection" depends="scm-svn-info">
|
||||
<property name="scm.connection" value="${scm.default.connection}"/>
|
||||
<property name="scm.developerConnection" value="${scm.default.developerConnection}"/>
|
||||
<property name="scm.url" value="${scm.default.url}"/>
|
||||
</target>
|
||||
<!--
|
||||
Fetch Maven Ant Tasks and Cassandra's dependencies
|
||||
These targets are intentionally free of dependencies so that they
|
||||
|
|
@ -330,7 +296,7 @@ url=${svn.entry.url}?pathrev=${svn.entry.commit.revision}
|
|||
<!-- this task defines the dependencies that will be fetched by Maven ANT Tasks
|
||||
the dependencies are re-used for publishing artifacts to Maven Central
|
||||
in order to keep everything consistent -->
|
||||
<target name="maven-declare-dependencies" depends="maven-ant-tasks-init, scm-info"
|
||||
<target name="maven-declare-dependencies" depends="maven-ant-tasks-init"
|
||||
description="Define dependencies and dependency versions">
|
||||
<!-- The parent pom defines the versions of all dependencies -->
|
||||
<artifact:pom id="parent-pom"
|
||||
|
|
|
|||
Loading…
Reference in New Issue