Author: thomas.diesler(a)jboss.com
Date: 2008-04-18 05:56:55 -0400 (Fri, 18 Apr 2008)
New Revision: 6495
Added:
spi/trunk/src/main/ant/
spi/trunk/src/main/ant/build-install.xml
Log:
Add ant scripts for install target
Added: spi/trunk/src/main/ant/build-install.xml
===================================================================
--- spi/trunk/src/main/ant/build-install.xml (rev 0)
+++ spi/trunk/src/main/ant/build-install.xml 2008-04-18 09:56:55 UTC (rev 6495)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at
http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+
+<project>
+
+ <!-- ================================================================== -->
+ <!-- Setup -->
+ <!-- ================================================================== -->
+
+ <property name="spi.dir" value="${basedir}"/>
+ <property name="spi.etc.dir"
value="${spi.dir}/src/main/etc"/>
+ <property name="spi.target.dir" value="${spi.dir}/target"/>
+
+ <!-- ================================================================== -->
+ <!-- Initialization -->
+ <!-- ================================================================== -->
+
+ <target name="init">
+ <property name="repository.id" value="${version.id}"/>
+ <echo message="version.id=${version.id}"/>
+ <echo message="repository.id=${repository.id}"/>
+ <echo message="jboss.local.repository=${jboss.local.repository}"/>
+ </target>
+
+ <target name="check-properties" depends="init">
+ <available property="jboss.local.repository.available"
type="dir" file="${jboss.local.repository}"/>
+ <fail message="Cannot find directory ${jboss.local.repository}. Did you copy
profiles-example.xml?" unless="jboss.local.repository.available"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Installation -->
+ <!-- ================================================================== -->
+
+ <!-- Install to jboss.local.repository -->
+ <target name="install" depends="check-properties"
description="Install to jboss.local.repository">
+
+ <!-- Check if the target jar is available -->
+ <available property="jbossws.spi.jar.available"
file="${spi.target.dir}/jbossws-spi-${version.id}.jar"/>
+ <fail message="Cannot find jbossws-spi-${version.id}.jar. Did you run
'mvn package'?" unless="jbossws.spi.jar.available"/>
+
+ <!-- Check if the source jar is available -->
+ <available property="jbossws.spi.sources.jar.available"
file="${spi.target.dir}/jbossws-spi-${version.id}-sources.jar"/>
+ <fail message="Cannot find jbossws-spi-${version.id}-sources.jar. Did you run
'mvn source:jar'?" unless="jbossws.spi.sources.jar.available"/>
+
+ <!-- jboss/jbossws-spi -->
+ <property name="jboss.repository.dir"
value="${jboss.local.repository}/jboss/jbossws-spi/${repository.id}"/>
+ <mkdir dir="${jboss.repository.dir}/lib"/>
+ <copy file="${spi.target.dir}/jbossws-spi-${version.id}.jar"
tofile="${jboss.repository.dir}//lib/jbossws-spi.jar"
overwrite="true"/>
+ <copy file="${spi.target.dir}/jbossws-spi-${version.id}-sources.jar"
tofile="${jboss.repository.dir}/lib/jbossws-spi-src.jar"
overwrite="true"/>
+ <copy file="${spi.target.dir}/etc/component-info.xml"
tofile="${jboss.repository.dir}/component-info.xml"
overwrite="true"/>
+ </target>
+
+</project>
Property changes on: spi/trunk/src/main/ant/build-install.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF