| <?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="java/java.lsp.server"> |
| <description>Builds, tests, and runs the project org.netbeans.modules.java.lsp.server</description> |
| <import file="../../nbbuild/templates/projectized.xml"/> |
| <target name="build-lsp-server" depends="-set-use-jdk-javac,build,test-init"> |
| <copy todir="${lsp.build.dir}/platform" failonerror="false"> |
| <fileset dir="${netbeans.dest.dir}/platform" /> |
| </copy> |
| <copy todir="${lsp.build.dir}/ide" failonerror="false"> |
| <fileset dir="${netbeans.dest.dir}/ide" /> |
| </copy> |
| <copy todir="${lsp.build.dir}/extide" failonerror="false"> |
| <fileset dir="${netbeans.dest.dir}/extide" /> |
| </copy> |
| <copy todir="${lsp.build.dir}/java" failonerror="false"> |
| <fileset dir="${netbeans.dest.dir}/java" excludes="**/org-netbeans-modules-java-hints-test.jar,**/org-netbeans-modules-debugger-jpda-truffle.jar" /> |
| </copy> |
| <mkdir dir="${lsp.build.dir}/bin" /> |
| <copy todir="${lsp.build.dir}/bin" file="script/bin/nb-java-lsp-server" /> |
| <mkdir dir="${lsp.build.dir}/etc" /> |
| <copy todir="${lsp.build.dir}/etc" file="script/etc/nb-java-lsp-server.conf" /> |
| <copy todir="${lsp.build.dir}/etc" file="script/etc/nb-java-lsp-server.clusters" /> |
| <chmod file="${lsp.build.dir}/bin/nb-java-lsp-server" perm="u+x" /> |
| <delete file="${lsp.build.dir}/lib/nb-javac-9-api.jar" /> |
| <delete file="${lsp.build.dir}/lib/nb-javac-9-impl.jar" /> |
| <delete file="${lsp.build.dir}/lib/org-netbeans-modules-java-source-nbjavac.jar" /> |
| </target> |
| <target name="-set-use-jdk-javac"> |
| <property name="test.use.jdk.javac" value="true" /> |
| </target> |
| <target name="clean" depends="projectized.clean"> |
| <delete dir="${lsp.build.dir}" /> |
| </target> |
| </project> |