Fix JS build on Windows (#27806)
Fixes: #27269 Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
1b761b5b4c
commit
d3a81b5f15
1 changed files with 18 additions and 0 deletions
18
js/pom.xml
18
js/pom.xml
|
@ -27,6 +27,8 @@
|
|||
<maven.build.cache.input.1>src</maven.build.cache.input.1>
|
||||
<!-- The child projects will package from the 'dist' folder, which is listed as a resource, but isn't a source folder -->
|
||||
<maven.build.cache.exclude.value.1>${project.basedir}/dist</maven.build.cache.exclude.value.1>
|
||||
<!-- The clean step is skipped on Windows -->
|
||||
<js.skip.clean>false</js.skip.clean>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
@ -56,6 +58,8 @@
|
|||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<configuration>
|
||||
<followSymLinks>false</followSymLinks>
|
||||
<!-- Skip this step if on windows -->
|
||||
<skip>${js.skip.clean}</skip>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${basedir}</directory>
|
||||
|
@ -76,4 +80,18 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>clean-when-not-on-windows</id>
|
||||
<activation>
|
||||
<os>
|
||||
<family>windows</family>
|
||||
</os>
|
||||
</activation>
|
||||
<properties>
|
||||
<js.skip.clean>true</js.skip.clean>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
Loading…
Reference in a new issue