RandomSec/OpenRefine/packaging/windows.xml

103 lines
3.3 KiB
XML

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>win-${windows.package.jre.prefix}${project.version}</id>
<formats>
<format>zip</format>
</formats>
<baseDirectory>${project.build.finalName}-${project.version}</baseDirectory>
<fileSets>
<fileSet>
<directory>${windows.package.jre.directory}</directory>
<outputDirectory>${windows.package.jre.outputDirectory}</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet>
<directory>${rootdir}/server/target/lib</directory>
<outputDirectory>server/target/lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${rootdir}/server/lib-local/native</directory>
<outputDirectory>server/target/lib/native</outputDirectory>
<includes>
<include>**/*.dll</include>
</includes>
</fileSet>
<fileSet>
<directory>${rootdir}/main/webapp</directory>
<outputDirectory>webapp</outputDirectory>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/butterfly.properties</exclude>
<exclude>**/lib-local/**</exclude>
<exclude>*/lib-local-src/**</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.project</exclude>
<exclude>licenses/**</exclude> <!-- added separately below -->
</excludes>
</fileSet>
<fileSet> <!-- licenses for the frontend -->
<directory>${rootdir}/main/webapp/licenses</directory>
<outputDirectory>licenses</outputDirectory>
</fileSet>
<fileSet> <!-- licenses for the backend -->
<directory>${project.build.directory}/generated-resources</directory>
<outputDirectory>.</outputDirectory>
</fileSet>
<fileSet>
<directory>${rootdir}/extensions</directory>
<outputDirectory>webapp/extensions</outputDirectory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/tests/**</exclude>
<exclude>**/src/**</exclude>
<exclude>**/*.java</exclude>
<exclude>**/lib-src/**</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.project</exclude>
<exclude>**/lib-local/**</exclude>
<exclude>*/lib-local-src/**</exclude>
</excludes>
</fileSet>
</fileSets>
<!-- TODO replace $VERSION by ${project.version} in WEB-INF/web.xml -->
<files>
<file>
<source>target/openrefine.exe</source>
</file>
<file>
<source>${rootdir}/conf/openrefine.l4j.ini</source>
</file>
<file>
<source>${rootdir}/refine.bat</source>
</file>
<file>
<source>${rootdir}/refine.ini</source>
</file>
<file>
<source>${rootdir}/README.md</source>
</file>
<file>
<source>${rootdir}/LICENSE.txt</source>
</file>
<file>
<source>${rootdir}/packaging/butterfly.properties</source>
<outputDirectory>webapp/WEB-INF</outputDirectory>
</file>
<file>
<source>${rootdir}/server/target/openrefine-${project.version}-server.jar</source>
<outputDirectory>server/target/lib</outputDirectory>
</file>
</files>
</assembly>