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