Commit 3129e9d6 authored by Nicolas Tachker's avatar Nicolas Tachker

maven migration.

parent 010fe3b9
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="a3/common/target/classes" path="a3/common/src/main/java"/>
<classpathentry kind="src" output="a3/rt/target/classes" path="a3/rt/src/main/java"/>
<classpathentry kind="src" output="jndi/shared/target/classes" path="jndi/shared/src/main/java"/>
<classpathentry kind="src" output="jndi/server/target/classes" path="jndi/server/src/main/java"/>
<classpathentry kind="src" output="jndi/client/target/classes" path="jndi/client/src/main/java"/>
<classpathentry kind="src" output="joram/shared/target/classes" path="joram/shared/src/main/java"/>
<classpathentry kind="src" output="joram/mom/target/classes" path="joram/mom/src/main/java"/>
<classpathentry kind="src" output="joram/mom/core/target/classes" path="joram/mom/core/src/main/java"/>
<classpathentry kind="src" output="joram/client/jms/target/classes" path="joram/client/jms/src/main/java"/>
<classpathentry kind="src" output="joram/client/jca/target/classes" path="joram/client/jca/src/main/java"/>
<classpathentry kind="src" output="joram/mom/extensions/collector/target/classes" path="joram/mom/extensions/collector/src/main/java"/>
<classpathentry kind="src" output="joram/mom/extensions/ftp/target/classes" path="joram/mom/extensions/ftp/src/main/java"/>
<classpathentry kind="src" output="joram/mom/extensions/jmsbridge/target/classes" path="joram/mom/extensions/jmsbridge/src/main/java"/>
<classpathentry kind="src" output="joram/mom/extensions/mail/target/classes" path="joram/mom/extensions/mail/src/main/java"/>
<classpathentry kind="src" output="joram/mom/extensions/scheduler/target/classes" path="joram/mom/extensions/scheduler/src/main/java"/>
<classpathentry kind="src" output="samples/classes" path="samples/src/joram"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0"?>
<project name="joram" default="releases" basedir=".">
<target name="clean">
<ant dir="src" antfile="joram.xml" target="clean"/>
<ant dir="src" antfile="joram.xml" target="clean.releases"/>
</target>
<!-- JORAM releases target -->
<target name="releases"
description="--> Builds a Joram complete distribution.">
<ant dir="src" antfile="joram.xml" target="releases"/>
<antcall target="maven:deploy" inheritall="true"/>
</target>
<!-- JORAM snapshot releases target -->
<target name="snapshot"
description="--> Builds a Joram complete snapshot distribution.">
<ant dir="src" antfile="joram.xml" target="snapshot"/>
<antcall target="deploy_snapshot" inheritall="true"/>
</target>
<!-- JORAM shipment target -->
<target name="ship"
description="--> Build jars needed to use Joram">
<ant dir="src" antfile="joram.xml" target="clean" />
<ant dir="src" antfile="joram.xml" target="ship" />
</target>
<target name="ship.all">
<!-- ant dir="src" antfile="joram.xml" target="clean" / -->
<ant dir="src" antfile="joram.xml" target="ship.adapters"/>
<ant dir="src" antfile="joram.xml" target="ship.osgi"/>
</target>
<!-- =================================
target: deploy_snapshot
================================= -->
<target name="deploy_snapshot"
depends="ship.all"
description="--> Deploy JORAM SNAPSHOT on the OW2 repository">
<ant antfile="maven-build.xml" target="deploy_snapshot" />
</target>
<!-- =================================
target: install_snapshot
================================= -->
<target name="install_snapshot"
depends="ship.all"
description="--> Install JORAM SNAPSHOT in the local artifact repository">
<ant antfile="maven-build.xml" target="install_snapshot" />
</target>
<!-- =================================
target: maven:deploy
================================= -->
<target name="maven:deploy"
depends="ship.all"
description="--> Deploy JORAM on the OW2 Release repository">
<ant antfile="maven-build.xml" target="deploy" />
</target>
<!-- =================================
target: maven:install
================================= -->
<target name="maven:install"
depends="ship.all"
description="--> Install JORAM in the local artifact repository">
<ant antfile="maven-build.xml" target="install" />
</target>
</project>
<?xml version="1.0"?>
<project default="init" basedir=".">
<!-- Initializes the environment paths and properties -->
<target name="init">
<!-- Initializes the directory structure properties -->
<property name="lib.dir" location="ship/lib"/>
<property name="tmp.dir" location="tmp"/>
</target>
<!-- ***************************************************************** -->
<!-- * Update Joram in JOnAS * -->
<!-- ***************************************************************** -->
<target name="jonas.env" depends="init">
<property environment="env"/>
<condition property="jonas.root" value="${env.JONAS_ROOT}">
<and>
<isset property="env.JONAS_ROOT"/>
</and>
</condition>
<fail message="You have to define the JONAS_ROOT environnement variable or the jonas.root property"
unless="jonas.root"/>
<condition property="jonas.base" value="${env.JONAS_BASE}">
<and>
<isset property="env.JONAS_BASE"/>
</and>
</condition>
<echo message="JONAS_ROOT=${jonas.root}"/>
<echo message="JONAS_BASE=${jonas.base}"/>
<available file="${jonas.root}/lib/commons/jonas/joram" type="dir"
property="jonas.root.lib.present"/>
<available file="${jonas.base}/lib/commons/jonas/joram" type="dir"
property="jonas.base.lib.present"/>
<available file="${jonas.root}/rars/joram_for_jonas_ra.rar"
property="jonas.root.rars.present"/>
<available file="${jonas.base}/rars/joram_for_jonas_ra.rar"
property="jonas.base.rars.present"/>
<available file="${jonas.root}/rars/autoload/joram_for_jonas_ra.rar"
property="jonas.root.rars.auto.present"/>
<available file="${jonas.base}/rars/autoload/joram_for_jonas_ra.rar"
property="jonas.base.rars.auto.present"/>
<available file="${jonas.root}/lib/client.jar"
property="jonas.root.clt.present"/>
<available file="${jonas.base}/lib/client.jar"
property="jonas.base.clt.present"/>
</target>
<target name="putJoramInJonas"
depends="jonas.env"
description="--> Install Joram into JOnAS (updating librairies)">
<antcall target="putJarInJonasRoot" inheritAll="true"/>
<antcall target="putJarInJonasBase" inheritAll="true"/>
<antcall target="putRarInJonasRoot" inheritAll="true"/>
<antcall target="putRarInJonasBase" inheritAll="true"/>
<antcall target="putRarInJonasRootAuto" inheritAll="true"/>
<antcall target="putRarInJonasBaseAuto" inheritAll="true"/>
<antcall target="updateClientInJonasRoot" inheritAll="true"/>
<antcall target="updateClientInJonasBase" inheritAll="true"/>
</target>
<target name="putJarInJonasRoot" if="jonas.root.lib.present">
<copy toDir="${jonas.root}/lib/commons/jonas/joram" overwrite="true">
<fileset dir="${lib.dir}">
<include name="joram-client.jar"/>
<include name="joram-connector.jar"/>
<include name="joram-mom.jar"/>
<include name="joram-shared.jar"/>
</fileset>
</copy>
</target>
<target name="putJarInJonasBase" if="jonas.base.lib.present">
<copy toDir="${jonas.base}/lib/commons/jonas/joram" overwrite="true">
<fileset dir="${lib.dir}">
<include name="joram-client.jar"/>
<include name="joram-connector.jar"/>
<include name="joram-mom.jar"/>
<include name="joram-shared.jar"/>
</fileset>
</copy>
</target>
<target name="putRarInJonasRoot" if="jonas.root.rars.present">
<copy file="${lib.dir}/joram_for_jonas_ra.rar" toDir="${jonas.root}/rars" overwrite="true"/>
</target>
<target name="putRarInJonasBase" if="jonas.base.rars.present">
<copy file="${lib.dir}/joram_for_jonas_ra.rar" toDir="${jonas.base}/rars" overwrite="true"/>
</target>
<target name="putRarInJonasRootAuto" if="jonas.root.rars.auto.present">
<copy file="${lib.dir}/joram_for_jonas_ra.rar" toDir="${jonas.root}/rars/autoload" overwrite="true"/>
</target>
<target name="putRarInJonasBaseAuto" if="jonas.base.rars.auto.present">
<copy file="${lib.dir}/joram_for_jonas_ra.rar" toDir="${jonas.base}/rars/autoload" overwrite="true"/>
</target>
<target name="updateClientInJonasRoot" if="jonas.root.clt.present">
<delete dir="${tmp.dir}"/>
<mkdir dir="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-client.jar" dest="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-shared.jar" dest="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-connector.jar" dest="${tmp.dir}"/>
<jar destfile="${jonas.root}/lib/client.jar"
update="true"
basedir="${tmp.dir}">
</jar>
<delete dir="${tmp.dir}"/>
</target>
<target name="updateClientInJonasBase" if="jonas.base.clt.present">
<delete dir="${tmp.dir}"/>
<mkdir dir="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-client.jar" dest="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-shared.jar" dest="${tmp.dir}"/>
<unzip src="${lib.dir}/joram-connector.jar" dest="${tmp.dir}"/>
<jar destfile="${jonas.base}/lib/client.jar"
update="true"
basedir="${tmp.dir}">
</jar>
<delete dir="${tmp.dir}"/>
</target>
</project>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment