summaryrefslogtreecommitdiffstats
path: root/ansible-server/pom.xml
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2021-07-17 14:29:10 -0400
committerKAPIL SINGAL <ks220y@att.com>2021-07-17 20:54:09 +0000
commitc3240af7248241bc15e5a08dacb66e8bc097b35c (patch)
tree8a5b7193bb138900909a6d21fd693acd428189f1 /ansible-server/pom.xml
parentcf4d991f8f0dad96373616e7b6c9747e077d7643 (diff)
Cleaning up Dockerfiles
Issue-ID: CCSDK-3226 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: If902c2245e52e8cb911b3cb8fc5e78ded0ed3782
Diffstat (limited to 'ansible-server/pom.xml')
-rw-r--r--ansible-server/pom.xml50
1 files changed, 13 insertions, 37 deletions
diff --git a/ansible-server/pom.xml b/ansible-server/pom.xml
index 22f38086..ac2dfb98 100644
--- a/ansible-server/pom.xml
+++ b/ansible-server/pom.xml
@@ -73,51 +73,27 @@
</execution>
</executions>
</plugin>
-
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.5.0</version>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
<executions>
<execution>
- <id>change python permissions</id>
+ <id>change-permissions</id>
<phase>process-sources</phase>
- <goals>
- <goal>exec</goal>
- </goals>
<configuration>
- <executable>/usr/bin/find</executable>
- <arguments>
- <argument>${basedir}/target/docker-stage/ansible-server</argument>
- <argument>-name</argument>
- <argument>*.py</argument>
- <argument>-exec</argument>
- <argument>chmod</argument>
- <argument>+x</argument>
- <argument>{}</argument>
- <argument>;</argument>
- </arguments>
+ <target>
+ <chmod perm="+x" type="file">
+ <fileset dir="${basedir}/target/docker-stage/ansible-server">
+ <include name="**/*.py"/>
+ <include name="**/*.sh"/>
+ </fileset>
+ </chmod>
+ </target>
</configuration>
- </execution>
- <execution>
- <id>change shell permissions</id>
- <phase>process-sources</phase>
<goals>
- <goal>exec</goal>
+ <goal>run</goal>
</goals>
- <configuration>
- <executable>/usr/bin/find</executable>
- <arguments>
- <argument>${basedir}/target/docker-stage/ansible-server</argument>
- <argument>-name</argument>
- <argument>*.sh</argument>
- <argument>-exec</argument>
- <argument>chmod</argument>
- <argument>+x</argument>
- <argument>{}</argument>
- <argument>;</argument>
- </arguments>
- </configuration>
</execution>
</executions>
</plugin>