Skip to content

Commit

Permalink
RMS-80 Ant build file targets Media Server version 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
morosev committed May 6, 2018
1 parent afbcec8 commit fe38b11
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions release/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@
<property name="sipservlets-build" value="89"/>
<property name="restcomm-sipservlets-as7.version" value="3.2.0-${sipservlets-build}"/>
<!--<property name="jain-sip-ri.version" value="7.0.3.190" />-->
<property name="restcomm-media.version" value="6.0"/>
<property name="restcomm-media.build" value="23"/>
<property name="restcomm-media.version" value="8.2.0"/>
<property name="restcomm-media.build" value="SNAPSHOT"/>
<!--property name="mobicents-diameter.version" value="6.1.2.GA" /-->

<!-- mobicents SIP Servlets 7.x on JBoss AS7-->
<property name="restcomm-sipservlets.as7.download.distro.file" value="restcomm-sip-servlets-3.2.0-89-jboss-as-7.2.0.Final.zip"/>
<property name="restcomm-sipservlets.as7.download.url" value="https://app.box.com/shared/static/bz0fnva3yiv5m93qnzn0xnn5j2zme8og.zip"/>
<property name="restcomm-sipservlets.as7.distro.zip.path" value="${checkout.dir}/${restcomm-sipservlets.as7.download.distro.file}"/>

<property name="restcomm-media.download.distro.file" value="restcomm-media-server.zip"/>
<property name="restcomm-media.download.distro.name" value="media-server-standalone-${restcomm-media.version}-${restcomm-media.build}"/>
<property name="restcomm-media.download.distro.file" value="${restcomm-media.download.distro.name}.zip"/>
<!--<property name="mobicents-media.download.url" value="https://github.com/Mobicents/mediaserver/releases/download/3.0.2.FINAL/mms-server-3.0.2.Final.zip" />-->
<!--property name="mobicents-media.download.url" value="https://mobicents.ci.cloudbees.com/view/MediaServer/job/Mobicents-MediaServer-2.x/lastSuccessfulBuild/artifact/bootstrap/target/mms-server.zip" /-->
<!--property name="mobicents-media.download.url" value="https://mobicents.ci.cloudbees.com/view/MediaServer/job/Mobicents-MediaServer-4.x/lastSuccessfulBuild/artifact/bootstrap/target/mms-server.zip"/-->
<property name="restcomm-media.download.url" value="https://mobicents.ci.cloudbees.com/view/MediaServer/job/Restcomm-MediaServer-6.x/${restcomm-media.build}/artifact/bootstrap/target/restcomm-media-server.zip"/>
<!--property name="restcomm-media.download.url" value="https://mobicents.ci.cloudbees.com/view/MediaServer/job/Restcomm-MediaServer-6.x/${restcomm-media.build}/artifact/bootstrap/target/restcomm-media-server.zip"/-->
<property name="restcomm-media.download.url" value="https://app.box.com/shared/static/hinshsd0zp8dk7my0d5t65n58dnwvwnu.zip"/>
<property name="restcomm-media.distro.zip.path" value="${checkout.dir}/${restcomm-media.download.distro.file}"/>

<!-- <property name="restcomm-olympus.download.url" value="https://mobicents.ci.cloudbees.com/job/Olympus/${olympus.build}/artifact/target/olympus.war"/> -->
Expand Down Expand Up @@ -134,9 +136,9 @@
<echo>Downloading Restcomm Media version: ${restcomm-media.version}.${restcomm-media.build}</echo>
<exec executable="wget" failonerror="true">
<arg value="${restcomm-media.download.url}"/>
<arg value="--output-document=${restcomm-media.download.distro.file}"/>
</exec>
<move file="${base.dir}/restcomm-media-server.zip" todir="${checkout.dir}"/>
<move file="${checkout.dir}/restcomm-media-server.zip" tofile="${checkout.dir}/${restcomm-media.download.distro.file}"/>
<move file="${base.dir}/${restcomm-media.download.distro.file}" todir="${checkout.dir}"/>
</target>

<!--Olympus-->
Expand All @@ -162,17 +164,18 @@

<target depends="get-restcomm-media" name="extract-restcomm-media">
<delete dir="${checkout.restcomm-media.dir}" failonerror="false"/>
<delete dir="${release.as7.dir}/mobicents-media-server" failonerror="false"/>
<delete dir="${release.as7.dir}/restcomm-media-server" failonerror="false"/>
<!--unzip src="${mobicents-media.distro.zip.path}" dest="${release.dir}/mobicents-media"/-->
<unzip dest="${release.as7.dir}/mediaserver" src="${restcomm-media.distro.zip.path}"/>
<exec executable="ls" failonerror="false">
<arg value="-l ${release.as7.dir}/mediaserver"/>
</exec>
<move todir="${release.as7.dir}/mediaserver">
<fileset dir="${release.as7.dir}/mediaserver/restcomm-media-server"/>
<fileset dir="${release.as7.dir}/mediaserver/${restcomm-media.download.distro.name}"/>
</move>
<!-- copy failonerror="true" file="${configuration.directory}/mms-server-beans.xml" tofile="${release.as7.dir}/mediaserver/deploy/server-beans.xml"/ -->
<chmod dir="${release.as7.dir}/mediaserver" includes="**/*.sh" perm="ugo+rx"/>
<chmod dir="${release.as7.dir}/mediaserver/bin" includes="**/*.sh" perm="ugo+rx"/>
<chmod dir="${release.as7.dir}/mediaserver/.autoconfig" includes="**/*.sh" perm="ugo+rx"/>
<chmod dir="${release.as7.dir}/mediaserver/.autoconfig/autoconfig.d" includes="**/*.sh" perm="ugo+rx"/>
</target>

<target name="build-restcomm">
Expand Down

0 comments on commit fe38b11

Please sign in to comment.