Skip to content

Commit

Permalink
Integrate WinSW 2.12.0
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Sep 13, 2023
1 parent 1d75153 commit bb88de6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion nucleus/admin/server-mgmt/pom.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2023 Contributors to the Eclipse Foundation.
Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -33,6 +34,9 @@
<description>Server Management</description>

<properties>
<winsw.version>2.12.0</winsw.version>
<winsw.url>https://github.com/winsw/winsw/releases/download/v${winsw.version}/WinSW.NET461.exe</winsw.url>

<findbugs.exclude>${project.basedir}/exclude.xml</findbugs.exclude>
<!-- We don't need it here and it would fail -->
<glassfish.generate-injectors.skip>true</glassfish.generate-injectors.skip>
Expand Down Expand Up @@ -92,14 +96,32 @@
<includes>
<include>**/*.template</include>
<include>**/*.properties</include>
<include>**/*.exe</include>
<include>**/*.xsd</include>
</includes>
</resource>
</resources>
<plugins>
<!-- XXX: no maven plugin for jakarta xml binding impl exists, so we have to stick with Ant and attach source
root to the build ourselves... -->
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>download-winsw</id>
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<skip>false</skip>
<url>${winsw.url}</url>
<overwrite>true</overwrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
Expand Down Expand Up @@ -134,6 +156,23 @@
</target>
</configuration>
</execution>
<execution>
<id>prepare-winsw</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<move todir="${project.build.directory}/classes/lib">
<fileset dir="${project.build.directory}" casesensitive="false">
<include name="WinSW*461.exe" />
</fileset>
<mapper type="glob" from="WinSW*461.exe" to="winsw.exe" />
</move>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
Binary file not shown.

0 comments on commit bb88de6

Please sign in to comment.