| <?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="netbeans" name="ide/o.n.agent"> |
| <description>Builds, tests, and runs the project org.netbeans.agent</description> |
| <import file="../../nbbuild/templates/projectized.xml"/> |
| |
| <target name="-jar-ant"> |
| |
| <mkdir dir="${agent.build.classes.dir}" /> |
| |
| <javac release="${javac.release}" |
| srcdir="${agent.src.dir}" |
| destdir="${agent.build.classes.dir}" |
| debug="true" |
| classpath="${agent.cp}" /> |
| |
| <jar destfile="${cluster}/netbeans-javaagent.jar" update="true" manifest="${agent.src.dir}/META-INF/MANIFEST.MF"> |
| <fileset dir="${agent.build.classes.dir}" /> |
| <fileset dir="${agent.src.dir}" includes="**/*" excludes="**/*.class" /> |
| <mappedresources> |
| <fileset file="../../nbbuild/licenses/Apache-2.0" /> |
| <globmapper from="*" to="META-INF/LICENSE"/> |
| </mappedresources> |
| <zipfileset src="${agent.asm.lib.1}"> |
| <include name="**" /> |
| <exclude name="module-info.class" /> |
| <exclude name="META-INF/**" /> |
| </zipfileset> |
| <zipfileset src="${agent.asm.lib.2}"> |
| <include name="**" /> |
| <exclude name="module-info.class" /> |
| <exclude name="META-INF/**" /> |
| </zipfileset> |
| <zipfileset src="${agent.asm.lib.3}"> |
| <include name="**" /> |
| <exclude name="module-info.class" /> |
| <exclude name="META-INF/**" /> |
| </zipfileset> |
| </jar> |
| </target> |
| |
| <target name="compile" depends="-jar-ant,projectized-common.compile"/> |
| |
| <target name="clean" depends="projectized-common.clean"> |
| <delete dir="${agent.build.classes.dir}"/> |
| <delete file="${cluster}/netbeans-javaagent.jar"/> |
| </target> |
| </project> |