File: build.xml

package info (click to toggle)
libnb-platform18-java 12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 729,800 kB
  • sloc: java: 5,059,097; xml: 574,432; php: 78,788; javascript: 29,039; ansic: 10,278; sh: 6,386; cpp: 4,612; jsp: 3,643; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (121 lines) | stat: -rw-r--r-- 6,190 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<project basedir="." default="build" name="profiler/lib.profiler">
    <description>Builds, tests, and runs the project org.netbeans.lib.profiler</description>
    <import file="../../nbbuild/templates/projectized.xml"/>

    <property name="profiler.cluster" value="./release"/>
    <target name="-process.release.files">
        <unzip src="external/profiler-external-binaries-8.2.zip" dest="${profiler.cluster}"/>
    </target>

  <!-- Compile the JFluid engine system library, that depends on JDK version - so there are two libraries -->
  <!-- Compile the engine system library -->
    <target name="compile-system" depends="init">
        <mkdir dir="${build15.classes.dir}"/>
        <fail message="javac.source of lib.profiler classes should be as low as possible!">
            <condition>
                <not>
                    <or>
                        <equals arg1="${javac.source}" arg2="1.5"/>
                        <equals arg1="${javac.source}" arg2="1.7"/>
                    </or>
                </not>
            </condition>
        </fail>
        <javac srcdir="${src15.dir}" destdir="${build15.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8"
                deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
            <include name="org/netbeans/lib/profiler/server/system/**"/>
            <compilerarg line="${javac.compilerargs}"/>
        </javac>
        <mkdir dir="${buildcvm.classes.dir}"/>
        <javac  srcdir="${srccvm.dir}" destdir="${buildcvm.classes.dir}" deprecation="${build.compiler.deprecation}"
             debug="${build.compiler.debug}" source="${javac.source}" target="${javac.target}" includeantruntime="false" optimize="${build.compiler.optimize}" >
             <include name="org/netbeans/lib/profiler/server/system/**"/>
             <compilerarg line="${javac.compilerargs}"/>
        </javac>
        <mkdir dir="${build.classes.dir}"/>
        <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8"
                classpath="${build15.classes.dir}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
            <include name="org/netbeans/lib/profiler/server/**"/>
            <include name="org/netbeans/lib/profiler/global/**"/>
            <include name="org/netbeans/lib/profiler/wireprotocol/**"/>
            <compilerarg line="${javac.compilerargs}"/>
        </javac>
    </target>

    <target name="post-compile" depends="projectized-common.compile">
        <javac srcdir="${src15.dir}" destdir="${build15.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8"
                classpath="${build.classes.dir}" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
            <compilerarg line="${javac.compilerargs}"/>
        </javac>
    </target>

    <target name="compile" depends="init,compile-system, projectized-common.compile,post-compile"/>

    <target name="jar" depends="init,compile,jar-prep">
        <!-- Client side -->
        <jarwithmoduleattributes jarfile="${cluster}/${module.jar}" compress="${build.package.compress}" index="${build.package.index}" manifest="${manifest.mf}" stamp="${cluster}/.lastModified">
            <fileset dir="${build.classes.dir}">
              <exclude name="org/netbeans/lib/profiler/server/**"/>
            </fileset>
        </jarwithmoduleattributes>
        
       <!-- Server side -->
       <mkdir dir="${cluster}/lib"/>
       <nb-ext-jar destfile="${cluster}/${jfluid.server.jar}"
         basedir="${build.classes.dir}"
         includes="org/netbeans/lib/profiler/server/** org/netbeans/lib/profiler/global/** org/netbeans/lib/profiler/wireprotocol/**"
         compress="false">
       </nb-ext-jar>
       <nb-ext-jar destfile="${cluster}/${jfluid.server.15.jar}"
         manifest="${src15.dir}/manifest.mf"
         basedir="${build15.classes.dir}"
         compress="false">
       </nb-ext-jar>
       <nb-ext-jar destfile="${cluster}/${jfluid.server.cvm.jar}"
         manifest="${srccvm.dir}/manifest.mf"
         basedir="${buildcvm.classes.dir}"
         compress="false">
       </nb-ext-jar>
    </target>

    <target name="release" depends="projectized-common.release">
        <fixcrlf eol="crlf" srcdir="${cluster}/lib/deployed" includes="**/*.map"/>
    </target>

    <target name="netbeans-extra">
       <ant dir="release/remote-pack-defs" target="profiler-server-all" inheritall="false">
           <property name="cluster" location="${cluster}"/>
           <property name="dest.dir" location="${build.dir}"/>
       </ant>
       <mkdir dir="${cluster}/lib/deployed"/>
       <copy todir="${cluster}/lib/deployed">
           <fileset dir="${profiler.cluster}/lib/deployed"/>
       </copy>
    </target>

    <target name="clean" depends="projectized-common.clean">
       <delete dir="remote-packs/build"/>
    </target>

</project>