| <?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/profiler"> |
| <description>Builds, tests, and runs the project org.yourorghere.main</description> |
| <import file="../../nbbuild/templates/projectized.xml"/> |
| <property name="test.run.args" value="-Dnetbeans.keyring.no.master=true -Dnetbeans.full.hack=true -client -Xss4m -Xms64m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=300m -Dsun.java2d.noddraw=true"/> |
| |
| <target name="netbeans-extra-ml" depends="release-ml" if="locales"/> |
| |
| <target name="check-run-mlbuild" depends="basic-init"> |
| <property name="translated.src.dir" value="${nb_all}/translatedfiles/src/${module.name}/src"/> |
| <condition property="locjar.locales" value="${locales}"> |
| <and> |
| <isset property="locales" /> |
| <not> |
| <isset property="locjar.locales"/> |
| </not> |
| </and> |
| </condition> |
| <available file="${nb_all}/translatedfiles/src/${module.name}" type="dir" property="translated.src.dir.exist"/> |
| <condition property="run.ml.build" value="true"> |
| <and> |
| <isset property="translated.src.dir.exist"/> |
| <isset property="locjar.locales"/> |
| <length string="${locjar.locales}" when="greater" length="0"/> |
| </and> |
| </condition> |
| </target> |
| |
| <target name="release-ml" depends="basic-init,check-run-mlbuild" if="run.ml.build"> |
| <taskdef name="repeat" classname="org.netbeans.nbbuild.Repeat" |
| classpath="${nbantext.jar}"/> |
| <repeat target="release-one-locale" name="locale" values="${locales}"/> |
| </target> |
| |
| <target name="release-one-locale" if="locale"> |
| <copy todir="${cluster}"> |
| <fileset dir="${nb_all}/translatedfiles/src/${module.name}/release"> |
| <include name="**/oqlqueries-default_${locale}.xml"/> |
| </fileset> |
| </copy> |
| </target> |
| |
| |
| </project> |