| <?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 name="dlight" default="build" basedir="."> |
| |
| <property name="nbroot" location=".."/> |
| |
| <target name="-init-modules"> |
| <loadproperties srcfile="${nbroot}/nbbuild/cluster.properties"/> |
| <pathconvert property="dlight.modules.fullpath"> |
| <path> |
| <dirset dir="${nbroot}" includes="${nb.cluster.dlight}"/> |
| </path> |
| <mapper type="identity"/> |
| </pathconvert> |
| </target> |
| |
| <target name="build"> |
| <subant buildpath="${nbroot}" target="build"> |
| <property name="cluster.config" value="dlight"/> |
| </subant> |
| </target> |
| |
| <target name="test-build" depends="-init-modules"> |
| <subant buildpath="${dlight.modules.fullpath}" target="test-build"> |
| <property name="cluster.config" value="dlight"/> |
| </subant> |
| </target> |
| |
| <target name="build-test-dist"> |
| <subant buildpath="${nbroot}" target="build-test-dist"> |
| <property name="cluster.config" value="dlight"/> |
| <property name="test.fail.on.error" value="true"/> |
| </subant> |
| </target> |
| |
| <target name="test" depends="-init-modules" description="dlight tests"> |
| <subant buildpath="${dlight.modules.fullpath}" target="test"> |
| <property name="cluster.config" value="dlight"/> |
| </subant> |
| </target> |
| |
| <target name="coverage-report" depends="-init-modules"> |
| <subant buildpath="${dlight.modules.fullpath}" target="coverage-report"> |
| <property name="cluster.config" value="dlight"/> |
| <property name="coverage.report.format" value="xml"/> |
| </subant> |
| </target> |
| |
| </project> |