usr/src/java/vpanels/panels/build-panels.xml
author David Powell <David.Powell@sun.com>
Fri, 27 Mar 2009 19:34:23 -0700
changeset 245 4c33bce63cab
parent 217 b5a0a305991e
child 284 255095584c55
permissions -rw-r--r--
7761 panels definitions could be simpler, and be read on demand 7762 Include time panel in opensolaris package

<?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 2009 Sun Microsystems, Inc.  All rights reserved.
  Use is subject to license terms.
-->

<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>

	<property name="mfstprefix" value="${proto.vpanels}/panels/" />

	<target name="install" depends="jar,install_project">
		<install.default targetdir="${proto.panels}" />
		<install.cacaoxml />
		<mkdir dir="${mfstprefix}" />
		<copy file="${proj.gen}/${panel.panel}.xml"
		    tofile="${mfstprefix}${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" />
		<pathelement
		    location="${ws.java}/vpanels/server/vpanels-server.jar" />
	</path>

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