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

xiangying pushed a commit to branch remove_cpp_python
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/remove_cpp_python by this push:
     new b116f2294c8 fix
b116f2294c8 is described below

commit b116f2294c8cd918d9952ee2035884c89cda27aa
Author: xiangying <[email protected]>
AuthorDate: Fri Aug 11 16:30:49 2023 +0800

    fix
---
 pulsar-functions/instance/pom.xml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/pulsar-functions/instance/pom.xml 
b/pulsar-functions/instance/pom.xml
index 778c558eaea..54e8efae4f1 100644
--- a/pulsar-functions/instance/pom.xml
+++ b/pulsar-functions/instance/pom.xml
@@ -204,6 +204,29 @@
 
   <build>
     <plugins>
+      <!-- this task is used for copy all python files together to provide a 
instance directory
+           for running python instance -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>compile</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <echo>building python instance</echo>
+                <mkdir dir="${basedir}/target/python-instance"/>
+                <copydir src="${basedir}/src/main/python" 
dest="${basedir}/target/python-instance"/>
+                <mkdir dir="${basedir}/target/python-instance/tests"/>
+                <copydir src="${basedir}/src/test/python" 
dest="${basedir}/target/python-instance/tests"/>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>com.github.spotbugs</groupId>
         <artifactId>spotbugs-maven-plugin</artifactId>

Reply via email to