usr/src/java/vpanels/panels/build-panels.xml
author David Powell <david.e.powell@oracle.com>
Fri, 21 Jan 2011 17:24:05 -0800
changeset 641 f1833b84c12f
parent 391 71abce159a62
child 700 fe2885279e58
permissions -rw-r--r--
17760 deliver .desktop file for sharemgr

<?xml version="1.0"?>
<!--
  CDDL HEADER START

  The contents of this file are subject to the terms of the
  Common Development and Distribution License (the "License").
  You may not use this file except in compliance with the License.

  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  or http://www.opensolaris.org/os/licensing.
  See the License for the specific language governing permissions
  and limitations under the License.

  When distributing Covered Code, include this CDDL HEADER in each
  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  If applicable, add the following below this CDDL HEADER, with the
  fields enclosed by brackets "[]" replaced with your own identifying
  information: Portions Copyright [yyyy] [name of copyright owner]

  CDDL HEADER END

  Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
-->

<project name="panelsdef">
	<import file="../build-vpanels.xml" />
	<import file="env-panels.xml" />

	<!-- Xslt would be a better way of doing this -->
	<target name="generate_project">
		<condition property="jar_aux"
		    value="&lt;file&gt;${panel.jar_aux}&lt;/file&gt;" else="">
			<isset property="panel.jar_aux"/>
		</condition>

		<generate.filter fromdir=".." pattern="${paneltmpl}"
		    from="${paneltmpl}" to="${panel.panel}.xml">
			<filter token="JAR_DIR" value="${abs.vpanels}" />
			<filter token="JAR_FILE"
			    value="panel/${proj.jarfile}" />
			<filter token="JAR_AUX" value="${jar_aux}" />

			<filter token="PANEL" value="${panel.panel}" />
			<filter token="CLASS" value="${panel.class}" />
			<filter token="TMPL_NAME" value="${panel.name}" />
		</generate.filter>
	</target>

	<target name="install_icon">
		<mkdir dir="${proto.vppixmaps}" />
		<copy file="${panel.icon.src}"
		    tofile="${proto.vppixmaps}/${panel.icon.dst}" />
	</target>

	<target name="install" depends="jar,install_project">
		<install.default targetdir="${proto.panels}" />
		<install.vpxml />
		<mkdir dir="${proto.vppanel}" />
		<copy file="${proj.gen}/${panel.panel}.xml"
		    tofile="${proto.vppanel}/${panel.panel}.xml" />
	</target>

	<path id="classpath.panels">
		<pathelement location="${ws.java}/scf/common/scf-common.jar" />
		<pathelement location="${ws.java}/util/vpanels-util.jar" />
		<pathelement
		    location="${ws.java}/vpanels/common/vpanels-common.jar" />
		<pathelement
		    location="${ws.java}/vpanels/panel/vpanels-panel.jar" />
	</path>

	<path id="classpath.javac" refid="classpath.panels" />
</project>