Skip to content

Commit

Permalink
ISSUE_4
Browse files Browse the repository at this point in the history
  • Loading branch information
baranowb committed May 21, 2012
1 parent 2d094b4 commit e9a8e77
Show file tree
Hide file tree
Showing 45 changed files with 1,368 additions and 342 deletions.
247 changes: 247 additions & 0 deletions core/bootstrap/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

<parent>
<groupId>org.mobicents.applications.ussd</groupId>
<artifactId>core</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>bootstrap</artifactId>
<name>Bootstrap</name>

<dependencies>
<!-- USSD Dependency -->
<!-- once some meat is added into oam, we will have to uncomment this out -->
<dependency>
<groupId>org.mobicents.applications.ussd</groupId>
<artifactId>oam</artifactId>
<version>${pom.version}</version>
</dependency>

<dependency>
<groupId>org.mobicents.applications.ussd</groupId>
<artifactId>ussdgateway-domain</artifactId>
<version>${pom.version}</version>
</dependency>

<dependency>
<groupId>org.mobicents.applications.ussd</groupId>
<artifactId>ussdgateway-rules</artifactId>
<version>${pom.version}</version>
</dependency>

<dependency>
<groupId>org.mobicents.applications.ussd</groupId>
<artifactId>ussdgateway-xml</artifactId>
<version>${pom.version}</version>
</dependency>

<!-- javolution -->
<dependency>
<groupId>javolution</groupId>
<artifactId>javolution</artifactId>
<version>${javolution.version}</version>
</dependency>
<!-- ASN -->
<dependency>
<groupId>org.mobicents.protocols.asn</groupId>
<artifactId>asn</artifactId>
<version>${asn.version}</version>
</dependency>
<!-- STREAM -->
<dependency>
<groupId>org.mobicents.protocols.stream</groupId>
<artifactId>stream</artifactId>
<version>${stream.version}</version>
</dependency>
<!-- commons -->
<dependency>
<groupId>org.mobicents.commons</groupId>
<artifactId>commons</artifactId>
<version>${commons.version}</version>
</dependency>
<!-- SCTP -->
<dependency>
<groupId>org.mobicents.protocols.sctp</groupId>
<artifactId>sctp-api</artifactId>
<version>${sctp.version}</version>
</dependency>

<dependency>
<groupId>org.mobicents.protocols.sctp</groupId>
<artifactId>sctp-impl</artifactId>
<version>${sctp.version}</version>
</dependency>

<!-- SS7 Dependency -->

<!-- Congestion -->
<dependency>
<groupId>org.mobicents.protocols.ss7.congestion</groupId>
<artifactId>congestion</artifactId>
<version>${ss7.version}</version>
</dependency>

<!-- Clock -->
<!-- Not really sure if clock is required for ussd gateway -->
<dependency>
<groupId>org.mobicents.protocols.ss7.clock</groupId>
<artifactId>clock</artifactId>
<version>${ss7.version}</version>
</dependency>

<!-- Management Shell -->
<dependency>
<artifactId>shell</artifactId>
<groupId>org.mobicents.protocols.ss7.management</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- Management linkset -->
<dependency>
<artifactId>linkset</artifactId>
<groupId>
org.mobicents.protocols.ss7.management
</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- Hardware Dialogic Java -->
<dependency>
<artifactId>mobicents-dialogic</artifactId>
<groupId>org.mobicents.protocols.ss7.hardware</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- MTP -->
<dependency>
<artifactId>mtp</artifactId>
<groupId>org.mobicents.protocols.ss7.mtp</groupId>
<version>${ss7.version}</version>
</dependency>
<dependency>
<artifactId>mtp-api</artifactId>
<groupId>org.mobicents.protocols.ss7.mtp</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- M3UA -->
<dependency>
<artifactId>m3ua-api</artifactId>
<groupId>org.mobicents.protocols.ss7.m3ua</groupId>
<version>${ss7.version}</version>
</dependency>
<dependency>
<artifactId>m3ua-impl</artifactId>
<groupId>org.mobicents.protocols.ss7.m3ua</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- SCCP -->
<dependency>
<artifactId>sccp-api</artifactId>
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
<version>${ss7.version}</version>
</dependency>
<dependency>
<artifactId>sccp-impl</artifactId>
<groupId>org.mobicents.protocols.ss7.sccp</groupId>
<version>${ss7.version}</version>
</dependency>

<!-- SLEE DU -->
<dependency>
<artifactId>ussdgateway-services-DU</artifactId>
<groupId>${pom.groupId}</groupId>
<version>${pom.version}</version>
</dependency>

</dependencies>

<!-- -->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/descriptor.xml</descriptor>
</descriptors>
<finalName>mobicents-ussd-gateway</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>directory-inline</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>deploy</id>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>
${jboss.home}server/default/deploy
</echo>
<echo>
${project.build.directory}/mobicents-ussd-gateway
</echo>
<copy
todir="${jboss.home}/server/${node}/deploy/mobicents-ussd-gateway">
<fileset dir="${project.build.directory}/mobicents-ussd-gateway">

</fileset>
</copy>
<copy file="${basedir}/src/main/config/USSDGateway.drl" tofile="${jboss.home}/server/${node}/conf/USSDGateway.drl">
</copy>
<copy file="${basedir}/src/main/config/USSDGatewayChangeSet.xml" tofile="${jboss.home}/server/${node}/conf/USSDGatewayChangeSet.xml">
</copy>
<unzip src="${basedir}/src/main/guvnor/drools-guvnor.war.zip" dest="${jboss.home}/server/${node}/deploy/${application.name}/" />
</tasks>
</configuration>
</execution>
<execution>
<id>undeploy</id>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete failonerror="false" includeemptydirs="true">
<fileset
dir="${jboss.home}/server/${node}/deploy/mobicents-ussd-gateway" />
</delete>
<delete file="${jboss.home}/server/${node}/conf/USSDGateway.drl"/>
<delete file="${jboss.home}/server/${node}/conf/USSDGatewayChangeSet.xml"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<outputDirectory>META-INF</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</includes>
</fileSet>
</fileSets>
<dependencySets>
Expand All @@ -25,6 +25,3 @@
</dependencySet>
</dependencySets>
</component>



72 changes: 72 additions & 0 deletions core/bootstrap/src/main/assembly/descriptor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<assembly>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>

<files>
<file>
<source>src/main/config/USSDGateway.drl</source>
<destName>rules/USSDGateway.drl</destName>
</file>
<file>
<source>src/main/config/USSDGatewayChangeSet.xml</source>
<destName>config/USSDGatewayChangeSet.xml</destName>
<filtered>true</filtered>
</file>
</files>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<includes>
<!-- SLEE DU -->
<include>org.mobicents.applications.ussd:ussdgateway-services-DU</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<includes>
<!-- USSD libraries -->
<include>org.mobicents.applications.ussd:bootstrap</include>
<include>org.mobicents.applications.ussd:oam</include>
<include>org.mobicents.applications.ussd:xml</include>

<!-- rules and domain library -->
<include>org.mobicents.applications.ussd:ussdgateway-rules</include>
<include>org.mobicents.applications.ussd:ussdgateway-domain</include>


<!-- Not strictly SS7, But needed by SS7 -->
<include>javolution:javolution</include>
<include>org.mobicents.protocols.sctp:sctp-api</include>
<include>org.mobicents.protocols.sctp:sctp-impl</include>
<include>org.mobicents.commons:commons</include>
<include>org.mobicents.protocols.stream:stream</include>
<include>org.mobicents.protocols.asn:asn</include>

<!-- SS7 Libraries -->
<include>org.mobicents.protocols.ss7.sccp:sccp-api</include>
<include>org.mobicents.protocols.ss7.sccp:sccp-impl</include>
<include>org.mobicents.protocols.ss7.m3ua:m3ua-api</include>
<include>org.mobicents.protocols.ss7.m3ua:m3ua-impl</include>
<include>org.mobicents.protocols.ss7.mtp:mtp</include>
<include>org.mobicents.protocols.ss7.mtp:mtp-api</include>
<include>org.mobicents.protocols.ss7.management:shell</include>
<include>org.mobicents.protocols.ss7.management:linkset</include>
<!-- <include>org.mobicents.protocols.ss7.hardware:mobicents-dahdi</include> -->
<include>org.mobicents.protocols.ss7.hardware:mobicents-dialogic</include>
<include>org.mobicents.protocols.ss7.congestion:congestion</include>

</includes>
</dependencySet>
</dependencySets>
<componentDescriptors>
<componentDescriptor>
src/main/assembly/common.xml
</componentDescriptor>
</componentDescriptors>
</assembly>
Loading

0 comments on commit e9a8e77

Please sign in to comment.