3832N/A<!--
3832N/A ! CDDL HEADER START
3832N/A !
3832N/A ! The contents of this file are subject to the terms of the
3832N/A ! Common Development and Distribution License, Version 1.0 only
3832N/A ! (the "License"). You may not use this file except in compliance
3832N/A ! with the License.
3832N/A !
3832N/A ! You can obtain a copy of the license at
3832N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
3832N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3832N/A ! See the License for the specific language governing permissions
3832N/A ! and limitations under the License.
3832N/A !
3832N/A ! When distributing Covered Code, include this CDDL HEADER in each
3832N/A ! file and include the License file at
3832N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3832N/A ! add the following below this CDDL HEADER, with the fields enclosed
3832N/A ! by brackets "[]" replaced with your own identifying information:
3832N/A ! Portions Copyright [yyyy] [name of copyright owner]
3832N/A !
3832N/A ! CDDL HEADER END
3832N/A !
3832N/A !
5061N/A ! Copyright 2008-2010 Sun Microsystems, Inc.
3832N/A ! -->
3832N/A<project name="opends">
3832N/A
3832N/A <description>
3832N/A Build OpenDS archive.
3832N/A </description>
3832N/A
3832N/A <!-- Build OpenDS archive -->
3832N/A <target name="build">
3832N/A <if>
3832N/A <and>
3832N/A <equals arg1="${opends.dir}" arg2="${default.opends.dir}"/>
4458N/A <equals arg1="${opends.name}" arg2="${default.opends.name}"/>
3832N/A </and>
3832N/A <then>
3832N/A <loadproperties srcFile="${project.home}/build.properties">
3832N/A <filterchain>
3832N/A <linecontains>
3832N/A <contains value="opendmk."/>
3832N/A </linecontains>
3832N/A </filterchain>
3832N/A </loadproperties>
3832N/A
3832N/A <if>
3832N/A <not>
4458N/A <available file="${opends.dir}/${opends.name}.zip"/>
3832N/A </not>
3832N/A <then>
3832N/A <if>
3832N/A <and>
3832N/A <not>
3832N/A <equals arg1="${snmp.opendmk.lib.dir}" arg2=""/>
3832N/A </not>
3832N/A <available file="${snmp.opendmk.lib.dir}"/>
3832N/A </and>
3832N/A <then>
4458N/A <echo>Build ${opends.name} with SNMP</echo>
4714N/A <var file="${basedir}/user.properties"/>
4714N/A <if>
4714N/A <or>
4714N/A <equals arg1="${opendmk.lib.dir}" arg2=""/>
4714N/A <not>
4714N/A <equals arg1="${opendmk.lib.dir}" arg2="${snmp.opendmk.lib.dir}"/>
4714N/A </not>
4714N/A </or>
4714N/A <then>
4714N/A <replace file="${project.home}/build.properties"
4714N/A value="opendmk.lib.dir=">
4714N/A <replacefilter token="opendmk.lib.dir=${opendmk.lib.dir}"/>
4714N/A </replace>
4714N/A <replace file="${project.home}/build.properties"
4714N/A value="opendmk.lib.dir=${snmp.opendmk.lib.dir}">
4714N/A <replacefilter token="opendmk.lib.dir="/>
4714N/A </replace>
4714N/A </then>
4714N/A </if>
3832N/A <property name="package.rebuild" value="true"/>
3832N/A </then>
3832N/A <else>
4458N/A <echo>Build ${opends.name} without SNMP</echo>
3832N/A <property name="package.rebuild" value="true"/>
3832N/A </else>
3832N/A </if>
3832N/A </then>
3832N/A <else>
3832N/A <if>
3832N/A <and>
3832N/A <not>
3832N/A <equals arg1="${snmp.opendmk.lib.dir}" arg2=""/>
3832N/A </not>
3832N/A <available file="${snmp.opendmk.lib.dir}"/>
3832N/A <equals arg1="${opendmk.lib.dir}" arg2=""/>
3832N/A </and>
3832N/A <then>
4458N/A <echo>Rebuild ${opends.name} with SNMP</echo>
4714N/A <var file="${basedir}/user.properties"/>
4714N/A <if>
4714N/A <or>
4714N/A <equals arg1="${opendmk.lib.dir}" arg2=""/>
4714N/A <not>
4714N/A <equals arg1="${opendmk.lib.dir}" arg2="${snmp.opendmk.lib.dir}"/>
4714N/A </not>
4714N/A </or>
4714N/A <then>
4714N/A <replace file="${project.home}/build.properties"
4714N/A value="opendmk.lib.dir=">
4714N/A <replacefilter token="opendmk.lib.dir=${opendmk.lib.dir}"/>
4714N/A </replace>
4714N/A <replace file="${project.home}/build.properties"
4714N/A value="opendmk.lib.dir=${snmp.opendmk.lib.dir}">
4714N/A <replacefilter token="opendmk.lib.dir="/>
4714N/A </replace>
4714N/A </then>
4714N/A </if>
3832N/A <property name="package.rebuild" value="true"/>
3832N/A </then>
3832N/A </if>
3832N/A </else>
3832N/A </if>
3832N/A
3832N/A <if>
3832N/A <isset property="package.rebuild"/>
3832N/A <then>
3832N/A <ant antfile="${project.home}/build.xml"
5010N/A target="dsml"
3832N/A inheritAll="false"/>
3832N/A </then>
3832N/A </if>
3832N/A </then>
3832N/A </if>
3832N/A </target>
3832N/A</project>