You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by na...@apache.org on 2022/05/26 12:13:02 UTC

[ignite-extensions] branch master updated: IGNITE-17039 Fixed binary assembly of performance statistics module (#146)

This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new 21f9315  IGNITE-17039 Fixed binary assembly of performance statistics module (#146)
21f9315 is described below

commit 21f9315e6b023107105aa8b8693af21682d8b438
Author: Nikita Amelchev <ns...@gmail.com>
AuthorDate: Thu May 26 15:12:57 2022 +0300

    IGNITE-17039 Fixed binary assembly of performance statistics module (#146)
---
 .../performance-statistics-ext/bin/build-report.sh |  2 +-
 .../bin/print-statistics.sh                        |  2 +-
 modules/performance-statistics-ext/pom.xml         | 22 +++++++++++++++++++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/modules/performance-statistics-ext/bin/build-report.sh b/modules/performance-statistics-ext/bin/build-report.sh
index e4321e7..6c9cf5f 100755
--- a/modules/performance-statistics-ext/bin/build-report.sh
+++ b/modules/performance-statistics-ext/bin/build-report.sh
@@ -33,7 +33,7 @@ JVM_OPTS="-Xms256m -Xmx32g"
 #
 # Define classpath
 #
-CP="${SCRIPT_DIR}/libs/*"
+CP="${SCRIPT_DIR}/../libs/ignite-performance-statistics-ext/*"
 
 #
 # Set main class to run the tool.
diff --git a/modules/performance-statistics-ext/bin/print-statistics.sh b/modules/performance-statistics-ext/bin/print-statistics.sh
index 4d250a1..766f7a0 100644
--- a/modules/performance-statistics-ext/bin/print-statistics.sh
+++ b/modules/performance-statistics-ext/bin/print-statistics.sh
@@ -33,7 +33,7 @@ JVM_OPTS="-Xms32m -Xmx512m"
 #
 # Define classpath
 #
-CP="${SCRIPT_DIR}/libs/*"
+CP="${SCRIPT_DIR}/../libs/ignite-performance-statistics-ext/*"
 
 #
 # Set main class to run the tool.
diff --git a/modules/performance-statistics-ext/pom.xml b/modules/performance-statistics-ext/pom.xml
index 987886d..9882b4a 100644
--- a/modules/performance-statistics-ext/pom.xml
+++ b/modules/performance-statistics-ext/pom.xml
@@ -99,6 +99,26 @@
 
     <build>
         <plugins>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <!-- Builds archive with UI resources. -->
+                        <phase>compile</phase>
+                        <configuration>
+                            <target>
+                                <zip destfile="${basedir}/target/report.zip" encoding="UTF-8">
+                                    <zipfileset dir="${basedir}/report"/>
+                                </zip>
+                            </target>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>3.1.0</version>
@@ -129,7 +149,7 @@
                 <executions>
                     <execution>
                         <!-- Copy tool's dependencies. -->
-                        <phase>install</phase>
+                        <phase>prepare-package</phase>
                         <goals>
                             <goal>copy-dependencies</goal>
                         </goals>