| <?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="Ant - Macros"> |
| <dirname property="ofbiz.home.dir" file="${ant.file.Ant - Macros}"/> |
| <macrodef name="iterate"> |
| <attribute name="filelist" default="subdirs"/> |
| <attribute name="target" default=""/> |
| <attribute name="inheritall" default="false"/> |
| <sequential> |
| <subant target="@{target}" inheritall="@{inheritall}"> |
| <filelist refid="@{filelist}"/> |
| </subant> |
| </sequential> |
| </macrodef> |
| |
| <path id="local.class.path"/> |
| |
| <presetdef name="default-javac"> |
| <javac debug="on" deprecation="on" destdir="${build.dir}/classes" srcdir="${src.dir}" classpathref="local.class.path"/> |
| </presetdef> |
| |
| <presetdef name="javac14"> |
| <default-javac compiler="javac1.4" target="1.4" source="1.4" encoding="UTF-8"/> |
| </presetdef> |
| |
| <presetdef name="javac15"> |
| <default-javac compiler="javac1.5" target="1.5" source="1.5" encoding="UTF-8"> |
| <!-- |
| <compilerarg value="-Xlint:unchecked"/> |
| --> |
| </default-javac> |
| </presetdef> |
| </project> |