883N/A<?xml version="1.0"?>
883N/A<!--
883N/A CDDL HEADER START
883N/A
883N/A The contents of this file are subject to the terms of the
883N/A Common Development and Distribution License (the "License").
883N/A You may not use this file except in compliance with the License.
883N/A
883N/A You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
883N/A or http://www.opensolaris.org/os/licensing.
883N/A See the License for the specific language governing permissions
883N/A and limitations under the License.
883N/A
883N/A When distributing Covered Code, include this CDDL HEADER in each
883N/A file and include the License file at usr/src/OPENSOLARIS.LICENSE.
883N/A If applicable, add the following below this CDDL HEADER, with the
883N/A fields enclosed by brackets "[]" replaced with your own identifying
883N/A information: Portions Copyright [yyyy] [name of copyright owner]
883N/A
883N/A CDDL HEADER END
883N/A
883N/A Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
883N/A-->
883N/A
883N/A<project name="panelsdef">
883N/A <import file="build-vpanels.xml" />
883N/A
883N/A <property name="paneltmpl" value="panel.xml" />
883N/A
883N/A <!-- Xslt would be a better way of doing this -->
883N/A <target name="generate_project">
883N/A <condition property="jar_aux"
883N/A value="&lt;file&gt;${panel.jar_aux}&lt;/file&gt;" else="">
883N/A <isset property="panel.jar_aux"/>
883N/A </condition>
883N/A
883N/A <generate.filter fromdir="${env.SRC}/ant-rules" pattern="${paneltmpl}"
883N/A from="${paneltmpl}" to="${panel.panel}.xml">
883N/A <filter token="JAR_DIR" value="${abs.app}" />
883N/A <filter token="JAR_FILE" value="${proj.jarfile}" />
883N/A <filter token="JAR_AUX" value="${jar_aux}" />
883N/A <filter token="PANEL" value="${panel.panel}" />
883N/A <filter token="CLASS" value="${panel.class}" />
883N/A <filter token="TMPL_NAME" value="${panel.name}" />
883N/A </generate.filter>
883N/A </target>
883N/A
883N/A <target name="install_icon">
883N/A <mkdir dir="${proto.pixmaps}" />
883N/A <copy file="${panel.icon.src}"
883N/A tofile="${proto.pixmaps}/${panel.icon.dst}" />
883N/A </target>
883N/A
883N/A <target name="install" depends="jar,install_project,l10n">
883N/A <install.default targetdir="${proto.app}" />
883N/A <install.l10n />
883N/A <mkdir dir="${proto.conf}" />
883N/A <copy file="${proj.gen}/${panel.panel}.xml"
883N/A tofile="${proto.conf}/${panel.panel}.xml" />
883N/A </target>
883N/A
883N/A <path id="classpath.panels">
883N/A <pathelement location="${proj.smf-old}/smf-old.jar" />
883N/A <pathelement location="${proj.util}/vpanels-util.jar" />
883N/A <pathelement location="${proj.vpanel}/vpanels-panel.jar" />
883N/A </path>
883N/A
883N/A <path id="classpath.javac" refid="classpath.panels" />
883N/A</project>