This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
38 lines (35 loc) · 2.24 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="praxis" basedir=".">
<description>Builds the module suite praxis.</description>
<import file="nbproject/build-impl.xml"/>
<!-- <target name="build-zip" depends="build,build-launchers" description="Builds a ZIP distribution of the suite, launchers, and selected modules from the platform.">
<mkdir dir="${dist.dir}"/>
pathfileset does not support 'prefix' and 'filemode' parameters,
we have to copy them to temp location
<tempfile property="temp.dir.nbexec" destdir="${suite.build.dir}" deleteonexit="true" prefix="nbexec"/>
<tempfile property="temp.dir.rest" destdir="${suite.build.dir}" deleteonexit="delete" prefix="rest"/>
<subant genericantfile="${harness.dir}/suite.xml" target="copy-cluster" inheritrefs="true">
<property name="dest.dir" value="${temp.dir.rest}"/>
<property name="nbexec.dir" value="${temp.dir.nbexec}"/>
<property name="build.dir" value="${suite.build.dir}"/>
<resources refid="zip.platform.clusters"/>
</subant>
<zip destfile="${dist.dir}/${app.name}.zip">
<zipfileset dir="${build.launcher.dir}/bin/" filemode="755" prefix="${app.name}/bin"/>
<zipfileset dir="${build.launcher.dir}/etc/" prefix="${app.name}/etc"/>
<zipfileset dir="${temp.dir.nbexec}" filemode="755" prefix="${app.name}"/>
<zipfileset dir="${temp.dir.rest}" prefix="${app.name}">
<exclude name="platform/**/org-netbeans-libs-jna*"/>
<exclude name="platform/**/jna-3.2.7.jar"/>
<exclude name="platform/**/*jnidispatch*"/>
</zipfileset>
Yes, the doubled app.name is a bit ugly, but better than the alternative; cf. #66441:
<zipfileset dir="${cluster}" prefix="${app.name}/${app.name}">
<exclude name="config/Modules/*.xml_hidden"/>
</zipfileset>
</zip>
</target>-->
</project>