Author: thomas.diesler(a)jboss.com
Date: 2008-04-21 11:00:15 -0400 (Mon, 21 Apr 2008)
New Revision: 6578
Added:
framework/trunk/src/main/scripts/
framework/trunk/src/main/scripts/build-install.xml
Log:
Copied: framework/trunk/src/main/scripts (from rev 6577,
framework/trunk/src/main/assembly)
Copied: framework/trunk/src/main/scripts/build-install.xml (from rev 6577,
framework/trunk/src/main/ant/build-install.xml)
===================================================================
--- framework/trunk/src/main/scripts/build-install.xml (rev 0)
+++ framework/trunk/src/main/scripts/build-install.xml 2008-04-21 15:00:15 UTC (rev 6578)
@@ -0,0 +1,64 @@
+<?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="framework.dir" value="${basedir}"/>
+ <property name="framework.etc.dir"
value="${framework.dir}/src/main/etc"/>
+ <property name="framework.target.dir"
value="${framework.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.framework.jar.available"
file="${framework.target.dir}/jbossws-framework-${version.id}.jar"/>
+ <fail message="Cannot find jbossws-framework-${version.id}.jar. Did you run
'mvn package'?" unless="jbossws.framework.jar.available"/>
+
+ <!-- Check if the source jar is available -->
+ <available property="jbossws.framework.sources.jar.available"
file="${framework.target.dir}/jbossws-framework-${version.id}-sources.jar"/>
+ <fail message="Cannot find jbossws-framework-${version.id}-sources.jar. Did
you run 'mvn source:jar'?"
unless="jbossws.framework.sources.jar.available"/>
+
+ <!-- jboss/jbossws-framework -->
+ <property name="jboss.repository.dir"
value="${jboss.local.repository}/jboss/jbossws-framework/${repository.id}"/>
+ <mkdir dir="${jboss.repository.dir}/lib"/>
+ <copy file="${framework.target.dir}/jbossws-framework-${version.id}.jar"
tofile="${jboss.repository.dir}//lib/jbossws-framework.jar"
overwrite="true"/>
+ <copy
file="${framework.target.dir}/jbossws-framework-${version.id}-sources.jar"
tofile="${jboss.repository.dir}/lib/jbossws-framework-src.jar"
overwrite="true"/>
+ <copy
file="${framework.target.dir}/jbossws-framework-${version.id}-scripts.zip"
tofile="${jboss.repository.dir}/lib/jbossws-framework-scripts.zip"
overwrite="true"/>
+ <copy file="${framework.target.dir}/etc/component-info.xml"
tofile="${jboss.repository.dir}/component-info.xml"
overwrite="true"/>
+ </target>
+
+</project>