Revision: 16199
Author: [email protected]
Date: Thu Jan  6 03:26:06 2011
Log: [No log message]
http://code.google.com/p/mobicents/source/detail?r=16199

Modified:
 /trunk/protocols/ss7/management/shell/pom.xml
 /trunk/protocols/ss7/management/shell/src/main/assembly/pojo.xml

=======================================
--- /trunk/protocols/ss7/management/shell/pom.xml       Tue Dec 21 23:25:06 2010
+++ /trunk/protocols/ss7/management/shell/pom.xml       Thu Jan  6 03:26:06 2011
@@ -12,6 +12,13 @@
        <artifactId>shell</artifactId>
        <name>Mobicents SS7 :: Management :: ${pom.artifactId}</name>

+       <properties>
+               <tool.directory>
+                       ${project.build.directory}/release
+               </tool.directory>
+               <tool.directory.lib>${tool.directory}/lib</tool.directory.lib>
+       </properties>
+
        <dependencies>

                <!-- non mobicents -->
@@ -31,6 +38,179 @@
                </dependency>
        </dependencies>

+       <profiles>
+               <profile>
+                       <id>release</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               
<artifactId>maven-antrun-plugin</artifactId>
+                                               <version>1.1</version>
+                                               <executions>
+                                                       <execution>
+                                                               
<id>copy-resources</id>
+                                                               <goals>
+                                                                       
<goal>run</goal>
+                                                               </goals>
+                                                               
<phase>install</phase>
+                                                               
<inherited>false</inherited>
+                                                               <configuration>
+                                                                       <tasks>
+                                                                               <copy 
todir="${tool.directory}"
+                                                                                       
verbose="true">
+                                                                                  
     <fileset
+                                                                                               
dir="src/main/config" includes="*.sh" />
+                                                                                  
     <fileset
+                                                                                               
dir="src/main/config" includes="*.bat" />
+                                                                               
</copy>
+                                                                       </tasks>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+
+                                       </plugin>
+
+                                       <plugin>
+                                               
<groupId>org.apache.maven.plugins</groupId>
+                                               
<artifactId>maven-dependency-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               
<id>copy-dependency-jar</id>
+                                                               
<phase>install</phase>
+                                                               <goals>
+                                                                       
<goal>copy</goal>
+                                                               </goals>
+                                                               <configuration>
+
+                                                                       <!-- 
Mobicents part -->
+                                                                       
<artifactItems>
+                                                                               
<artifactItem>
+                                                                                     
  <groupId>
+                                                                               
                ${pom.groupId}
+                                                                                     
  </groupId>
+                                                                                     
  <artifactId>
+                                                                               
                ${pom.artifactId}
+                                                                                     
  </artifactId>
+                                                                                     
  <version>
+                                                                               
                ${pom.version}
+                                                                                     
  </version>
+                                                                                       
<type>jar</type>
+                                                                                       
<overWrite>true</overWrite>
+                                                                                     
  <outputDirectory>
+                                                                               
                ${tool.directory}
+                                                                                     
  </outputDirectory>
+                                                                                     
  <destFileName>
+                                                                               
                mobicents-ss7-shell.jar
+                                                                                     
  </destFileName>
+                                                                               
</artifactItem>
+                                                                       
</artifactItems>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+               <profile>
+                       <id>jboss</id>
+                       <activation>
+                               <activeByDefault>true</activeByDefault>
+                       </activation>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               
<artifactId>maven-antrun-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <id>deploy</id>
+                                                               
<phase>install</phase>
+                                                               <goals>
+                                                                       
<goal>run</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <tasks>
+                                                                               
<copy
+                                                                                       
todir="${jboss.home}/bin">
+                                                                                  
     <fileset
+                                                                                            
   dir="${project.build.directory}">
+                                                                                  
             <filename
+                                                                                            
           name="mobicents-ss7-shell.jar" />
+                                                                                     
  </fileset>
+                                                                                  
     <fileset
+                                                                                            
   dir="${project.build.directory}/../src/main/config">
+                                                                                               
<include name="*.*" />
+                                                                                     
  </fileset>
+                                                                               
</copy>
+                                                                       </tasks>
+                                                               </configuration>
+                                                       </execution>
+                                                       <execution>
+                                                               
<id>undeploy</id>
+                                                               
<phase>clean</phase>
+                                                               <goals>
+                                                                       
<goal>run</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <tasks>
+                                                                               <delete 
failonerror="false">
+                                                                                  
     <fileset
+                                                                                            
   dir="${basedir}/src/main/resources">
+                                                                                  
             <include
+                                                                                            
           name="standard-components-du.jar" />
+                                                                                     
  </fileset>
+                                                                               
</delete>
+                                                                               <delete 
failonerror="false"
+                                                                                       
includeemptydirs="true">
+                                                                                  
     <fileset
+                                                                                            
   dir="${jboss.home}/server/all/deploy/${build.finalName}" />
+                                                                               
</delete>
+                                                                       </tasks>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               
<groupId>org.apache.maven.plugins</groupId>
+                                               
<artifactId>maven-dependency-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <id>copy</id>
+                                                               
<phase>package</phase>
+                                                               <goals>
+                                                                       
<goal>copy</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       
<artifactItems>
+                                                                               
<artifactItem>
+                                                                                     
  <groupId>
+                                                                               
                javolution
+                                                                                     
  </groupId>
+                                                                                     
  <artifactId>
+                                                                               
                javolution
+                                                                                     
  </artifactId>
+                                                                                     
  <version>
+                                                                               
                ${javolution.version}
+                                                                                     
  </version>
+                                                                                       
<type>jar</type>
+                                                                                     
  <outputDirectory>
+                                                                               
                ${jboss.home}/bin/lib
+                                                                                     
  </outputDirectory>
+                                                                                     
  <destFileName>
+                                                                               
                javolution.jar
+                                                                                     
  </destFileName>
+                                                                               
</artifactItem>
+                                                                       
</artifactItems>
+                                                                       <!-- other 
configurations here -->
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+
        <build>
                <finalName>mobicents-ss7-shell</finalName>
                <resources>
@@ -59,107 +239,6 @@
                                        </archive>
                                </configuration>
                        </plugin>
-                       <!-- plugin>
-                               <artifactId>maven-assembly-plugin</artifactId>
-                               <configuration>
-                               <descriptors>
-                               <descriptor>
-                               src/main/assembly/pojo.xml
-                               </descriptor>
-                               </descriptors>
-                               <finalName>${pom.artifactId}</finalName>
-                               </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>
-                                                               <copy 
todir="${jboss.home}/bin">
-                                                                       <fileset
-                                                                               
dir="${project.build.directory}">
-                                                                               
<filename
-                                                                                       
name="mobicents-ss7-shell.jar" />
-                                                                       
</fileset>
-                                                                       <fileset
-                                                                               
dir="${project.build.directory}/../src/main/config">
-                                                                               <include 
name="*.*" />
-                                                                       
</fileset>
-                                                               </copy>
-                                                       </tasks>
-                                               </configuration>
-                                       </execution>
-                                       <execution>
-                                               <id>undeploy</id>
-                                               <phase>clean</phase>
-                                               <goals>
-                                                       <goal>run</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <tasks>
-                                                               <delete 
failonerror="false">
-                                                                       <fileset
-                                                                               
dir="${basedir}/src/main/resources">
-                                                                               
<include
-                                                                                       
name="standard-components-du.jar" />
-                                                                       
</fileset>
-                                                               </delete>
-                                                               <delete 
failonerror="false"
-                                                                       
includeemptydirs="true">
-                                                                       <fileset
-                                                                               
dir="${jboss.home}/server/all/deploy/${build.finalName}" />
-                                                               </delete>
-                                                       </tasks>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-dependency-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <id>copy</id>
-                                               <phase>package</phase>
-                                               <goals>
-                                                       <goal>copy</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <artifactItems>
-                                                               <artifactItem>
-                                                                       
<groupId>javolution</groupId>
-                                                                       
<artifactId>javolution</artifactId>
-                                                                       
<version>
-                                                                               
${javolution.version}
-                                                                       
</version>
-                                                                       
<type>jar</type>
-                                                                       
<outputDirectory>
-                                                                               
${jboss.home}/bin/lib
-                                                                       
</outputDirectory>
-                                                                       
<destFileName>
-                                                                               
javolution.jar
-                                                                       
</destFileName>
-                                                               </artifactItem>
-                                                       </artifactItems>
-                                                       <!-- other configurations 
here -->
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
                </plugins>
        </build>

=======================================
--- /trunk/protocols/ss7/management/shell/src/main/assembly/pojo.xml Sun Dec 12 22:46:45 2010 +++ /trunk/protocols/ss7/management/shell/src/main/assembly/pojo.xml Thu Jan 6 03:26:06 2011
@@ -6,22 +6,22 @@
        <includeBaseDirectory>false</includeBaseDirectory>
        <files>
                <file>
-                       <source>src/main/config/run.sh</source>
+                       <source>src/main/config/ss7-run.sh</source>
                        <fileMode>0744</fileMode>
                        <filtered>true</filtered>
                        <destName>bin/run.sh</destName>
                </file>
                <file>
-                       <source>src/main/config/run.bat</source>
+                       <source>src/main/config/ss7-run.bat</source>
                        <fileMode>0744</fileMode>
                        <filtered>true</filtered>
                        <destName>bin/run.bat</destName>
                </file>
                <file>
-                       <source>target/ss7-shell.jar</source>
+                       <source>target/mobicents-ss7-shell.jar</source>
                        <fileMode>0744</fileMode>
                        <filtered>true</filtered>
-                       <destName>bin/ss7-shell.jar</destName>
+                       <destName>bin/mobicents-ss7-shell.jar</destName>
                </file>

        </files>
@@ -31,15 +31,7 @@
                        <unpack>false</unpack>
                        <scope>runtime</scope>
                        <excludes>
-                               <exclude>
-                                       
org.mobicents.protocols.ss7.m3ua:m3ua-api
-                               </exclude>
-                               <exclude>
-                                       
org.mobicents.protocols.ss7.m3ua:m3ua-impl
-                               </exclude>
-                               
<exclude>org.mobicents.protocols.stream:stream</exclude>
-                               
<exclude>org.mobicents.protocols.ss7.mtp:mtp</exclude>
-                               
<exclude>org.mobicents.protocols.ss7.management:shell</exclude>
+
                        </excludes>
                </dependencySet>
        </dependencySets>

Reply via email to