Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1121 af712e577 -> ea150835d


# IGNITE-1121 Pack agent to zip file.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ea150835
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ea150835
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ea150835

Branch: refs/heads/ignite-1121
Commit: ea150835dad89a75568791493a97636e75a7cb08
Parents: af712e5
Author: sevdokimov <sevdoki...@gridgain.com>
Authored: Thu Jul 23 15:10:06 2015 +0300
Committer: sevdokimov <sevdoki...@gridgain.com>
Committed: Thu Jul 23 15:10:22 2015 +0300

----------------------------------------------------------------------
 modules/control-center-agent/pom.xml            | 22 +++++++++++++
 .../control-center-agent/src/assembly/build.xml | 33 ++++++++++++++++++++
 modules/control-center-agent/src/bin/agent.sh   | 19 +++++++++++
 3 files changed, 74 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea150835/modules/control-center-agent/pom.xml
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/pom.xml 
b/modules/control-center-agent/pom.xml
index d042daf..59bc595 100644
--- a/modules/control-center-agent/pom.xml
+++ b/modules/control-center-agent/pom.xml
@@ -98,6 +98,28 @@
                     </execution>
                 </executions>
             </plugin>
+
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>2.4</version>
+                <configuration>
+                    <descriptors>
+                        <descriptor>src/assembly/build.xml</descriptor>
+                    </descriptors>
+
+                    <appendAssemblyId>false</appendAssemblyId>
+                </configuration>
+
+                <executions>
+                    <execution>
+                        <id>make-assembly</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea150835/modules/control-center-agent/src/assembly/build.xml
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/assembly/build.xml 
b/modules/control-center-agent/src/assembly/build.xml
new file mode 100644
index 0000000..1221318
--- /dev/null
+++ b/modules/control-center-agent/src/assembly/build.xml
@@ -0,0 +1,33 @@
+<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3";
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+          
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3
 http://maven.apache.org/xsd/assembly-1.1.3.xsd";>
+    <id>agent</id>
+
+    <formats>
+        <format>zip</format>
+    </formats>
+
+    <fileSets>
+        <fileSet>
+            <directory>${project.basedir}</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>README*</include>
+                <include>LICENSE*</include>
+                <include>NOTICE*</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>${project.basedir}/src/bin</directory>
+            <outputDirectory>/</outputDirectory>
+            <filtered>true</filtered>
+        </fileSet>
+        <fileSet>
+            <directory>${project.build.directory}</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>agent-${version}.jar</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+</assembly>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea150835/modules/control-center-agent/src/bin/agent.sh
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/bin/agent.sh 
b/modules/control-center-agent/src/bin/agent.sh
new file mode 100755
index 0000000..1e03cff
--- /dev/null
+++ b/modules/control-center-agent/src/bin/agent.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+java -jar agent-${version}.jar "$@"
\ No newline at end of file

Reply via email to