summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2011-03-09 15:22:49 +0000
committerHenri Sara <henri.sara@itmill.com>2011-03-09 15:22:49 +0000
commit39b5401fc90cd7f5c53a2afd7f60a0673974ae57 (patch)
treecfe0190d7be164f94a2f68f1a6f4667870b4ddb7 /build
parent6ee92fb6d5aa6993ea22f64436222cb24d5b4fd6 (diff)
downloadvaadin-framework-39b5401fc90cd7f5c53a2afd7f60a0673974ae57.tar.gz
vaadin-framework-39b5401fc90cd7f5c53a2afd7f60a0673974ae57.zip
Ant target local-maven-publish for creating and installing a Maven snapshot to the local repository
svn changeset:17688/svn branch:6.6
Diffstat (limited to 'build')
-rw-r--r--build/build.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/build/build.xml b/build/build.xml
index 5e168ff51e..793fea4ba6 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1126,6 +1126,31 @@
</artifact:mvn>
</target>
+ <target name="local-maven-pom.xml">
+ <echo>Creating pom.xml for local test build</echo>
+ <fail unless="version.major" message="Major version must be defined in version.major"/>
+ <fail unless="version.minor" message="Major version must be defined in version.minor"/>
+ <copy tofile="build/maven/pom.xml">
+ <filterchain>
+ <expandproperties />
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="VERSION-MAJOR.MINOR" value="${version.major}.${version.minor}" />
+ </replacetokens>
+ </filterchain>
+ <fileset file="build/maven/pom-template.xml"/>
+ </copy>
+ </target>
+
+ <target name="local-maven-publish" depends="local-maven-pom.xml">
+ <echo>Publishing ${output-dir}/WebContent/${lib-jar-name} to the local Maven repository</echo>
+ <artifact:mvn>
+ <arg value="install:install-file"/>
+ <!-- .. is a workaround as maven runs in the build directory -->
+ <sysproperty key="file" value="../${output-dir}/WebContent/${lib-jar-name}" />
+ <sysproperty key="pomFile" value="maven/pom.xml" />
+ </artifact:mvn>
+ </target>
+
<!-- ================================================================== -->
<!-- Automated tests. -->
<!-- ================================================================== -->