| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| |
| Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved. |
| |
| Oracle and Java are registered trademarks of Oracle and/or its affiliates. |
| Other names may be trademarks of their respective owners. |
| |
| The contents of this file are subject to the terms of either the GNU |
| General Public License Version 2 only ("GPL") or the Common |
| Development and Distribution License("CDDL") (collectively, the |
| "License"). You may not use this file except in compliance with the |
| License. You can obtain a copy of the License at |
| http://www.netbeans.org/cddl-gplv2.html |
| or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the |
| specific language governing permissions and limitations under the |
| License. When distributing the software, include this License Header |
| Notice in each file and include the License file at |
| nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this |
| particular file as subject to the "Classpath" exception as provided |
| by Oracle in the GPL Version 2 section of the License file that |
| accompanied this code. If applicable, add the following below the |
| License Header, with the fields enclosed by brackets [] replaced by |
| your own identifying information: |
| "Portions Copyrighted [year] [name of copyright owner]" |
| |
| Contributor(s): |
| |
| The Original Software is NetBeans. The Initial Developer of the Original |
| Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun |
| Microsystems, Inc. All Rights Reserved. |
| |
| If you wish your version of this file to be governed by only the CDDL |
| or only the GPL Version 2, indicate your decision by adding |
| "[Contributor] elects to include this software in this distribution |
| under the [CDDL or GPL Version 2] license." If you do not indicate a |
| single choice of license, a recipient has the option to distribute |
| your version of this file under either the CDDL, the GPL Version 2 or |
| to extend the choice of license to its licensees as provided above. |
| However, if you add GPL Version 2 code and therefore, elected the GPL |
| Version 2 license, then the option applies only if the new code is |
| made subject to such option by the copyright holder. |
| --> |
| <!-- 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="org.netbeans.modules.jackpot30.compiler" default="netbeans" basedir="."> |
| <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.compiler.</description> |
| <import file="nbproject/build-impl.xml"/> |
| <import file="${suite.dir}/../findbugs-import.xml"/> |
| |
| <target name="ant" depends="init,jar"> |
| <mkdir dir="build/antclasses"/> |
| <javac srcdir="antsrc" destdir="build/antclasses" source="1.5" target="1.5" debug="true" deprecation="true"> |
| <classpath> |
| <path refid="cp"/> |
| <pathelement location="${ant.jar}"/> |
| <pathelement location="${tools.jar}"/> |
| <pathelement location="${cluster}/modules/${code.name.base.dashes}.jar"/> |
| </classpath> |
| <compilerarg line="-proc:none" /> |
| </javac> |
| <copy todir="build/antclasses"> |
| <fileset dir="antsrc" excludes="${jar-excludes}"/> |
| </copy> |
| <property name="ant.library.target.dir" value="${cluster}/antextra" /> |
| <mkdir dir="${ant.library.target.dir}"/> |
| <jar jarfile="${ant.library.target.dir}/${code.name.base.dashes}.jar" compress="false"> |
| <fileset dir="build/antclasses"/> |
| </jar> |
| </target> |
| |
| <target name="copy-to-hudson" depends="create-standalone-compiler"> |
| <mkdir dir="${hudson.compiler.dir}" /> <!--only to be sure, should exist--> |
| <copy file="${build.classes.dir}/../jackpotc/ant-jackpotc.jar" todir="${hudson.compiler.dir}"/> |
| <copy file="${build.classes.dir}/../jackpotc/jackpotc.jar" todir="${hudson.compiler.dir}"/> |
| </target> |
| |
| <target name="create-standalone-compiler" depends="init,ant"> |
| <mkdir dir="${build.classes.dir}/../jackpotc" /> |
| <copy file="${ant.library.target.dir}/${code.name.base.dashes}.jar" tofile="${build.classes.dir}/../jackpotc/ant-jackpotc.jar"/> |
| <copy todir="${build.classes.dir}/../jackpotc"> |
| <fileset dir="scripts"/> |
| </copy> |
| <chmod dir="${build.classes.dir}/../jackpotc" perm="ugo+x" includes="jackpotc"/> |
| <ant target="test" inheritall="false" inheritrefs="false"> |
| <property name="test.config.standalone.includes" value="org/netbeans/modules/jackpot30/compiler/CreateStandaloneCompilerJar.class"/> |
| <property name="test.config" value="standalone"/> |
| <property name="test-unit-sys-prop.outputDir" location="${build.classes.dir}/../jackpotc" /> |
| </ant> |
| <zip destfile="${build.classes.dir}/../jackpotc.zip"> |
| <zipfileset file="${build.classes.dir}/../jackpotc/jackpotc" filemode="755" fullpath="jackpotc/jackpotc"/> |
| <zipfileset dir="${build.classes.dir}/../jackpotc" prefix="jackpotc"> |
| <exclude name="hints" /> |
| <exclude name="jackpotc" /> |
| </zipfileset> |
| </zip> |
| </target> |
| |
| <target name="clean" depends="init,projectized-common.clean"> |
| <delete file="${hudson.compiler.dir}/ant-jackpotc.jar"/> |
| <delete file="${hudson.compiler.dir}/jackpotc.jar"/> |
| </target> |
| |
| <target name="netbeans-extra" depends="ant"/> |
| |
| <target name="test-build" depends="projectized-common.test-build,-prepare-scripted-tests" /> |
| <target name="build-init" depends="harness.build-init"> |
| <condition property="run.bootclasspath.prepend" value="${bootclasspath.prepend}"> |
| <istrue value="${requires.nb.javac}"/> |
| </condition> |
| </target> |
| |
| </project> |