Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,34 @@
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>remove-referenceapplication-demo-folder</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="Removing unwanted referenceapplication-demo folders from build output..." />
<delete dir="${project.build.directory}/sdk-distro/web/referenceapplication-demo"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of deleting it, did you explore the option of just not creating it in the very first place?

includeemptydirs="true"
failonerror="false"
verbose="true" />
<delete dir="${project.build.directory}/sdk-distro/web/openmrs_spa/referenceapplication-demo"
includeemptydirs="true"
failonerror="false"
verbose="true" />
<echo message="Successfully removed referenceapplication-demo folders (if they existed)" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading