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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     1
<?xml version="1.0"?>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     2
<!--
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     3
  CDDL HEADER START
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     4
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     5
  The contents of this file are subject to the terms of the
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     6
  Common Development and Distribution License (the "License").
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     7
  You may not use this file except in compliance with the License.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     8
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
     9
  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    10
  or http://www.opensolaris.org/os/licensing.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    11
  See the License for the specific language governing permissions
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    12
  and limitations under the License.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    13
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    14
  When distributing Covered Code, include this CDDL HEADER in each
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    15
  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    16
  If applicable, add the following below this CDDL HEADER, with the
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    17
  fields enclosed by brackets "[]" replaced with your own identifying
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    18
  information: Portions Copyright [yyyy] [name of copyright owner]
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    19
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    20
  CDDL HEADER END
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    21
641
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    22
  Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    23
-->
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    24
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    25
<project name="panelsdef">
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    26
	<import file="../build-vpanels.xml" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    27
	<import file="env-panels.xml" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    28
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    29
	<!-- Xslt would be a better way of doing this -->
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    30
	<target name="generate_project">
245
4c33bce63cab 7761 panels definitions could be simpler, and be read on demand
David Powell <David.Powell@sun.com>
parents: 217
diff changeset
    31
		<condition property="jar_aux"
4c33bce63cab 7761 panels definitions could be simpler, and be read on demand
David Powell <David.Powell@sun.com>
parents: 217
diff changeset
    32
		    value="&lt;file&gt;${panel.jar_aux}&lt;/file&gt;" else="">
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    33
			<isset property="panel.jar_aux"/>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    34
		</condition>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    35
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    36
		<generate.filter fromdir=".." pattern="${paneltmpl}"
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    37
		    from="${paneltmpl}" to="${panel.panel}.xml">
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    38
			<filter token="JAR_DIR" value="${abs.vpanels}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    39
			<filter token="JAR_FILE"
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    40
			    value="panel/${proj.jarfile}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    41
			<filter token="JAR_AUX" value="${jar_aux}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    42
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    43
			<filter token="PANEL" value="${panel.panel}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    44
			<filter token="CLASS" value="${panel.class}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    45
			<filter token="TMPL_NAME" value="${panel.name}" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    46
		</generate.filter>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    47
	</target>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    48
641
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    49
	<target name="install_icon">
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    50
		<mkdir dir="${proto.vppixmaps}" />
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    51
		<copy file="${panel.icon.src}"
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    52
		    tofile="${proto.vppixmaps}/${panel.icon.dst}" />
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    53
	</target>
f1833b84c12f 17760 deliver .desktop file for sharemgr
David Powell <david.e.powell@oracle.com>
parents: 391
diff changeset
    54
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    55
	<target name="install" depends="jar,install_project">
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    56
		<install.default targetdir="${proto.panels}" />
284
255095584c55 8351 need way to build without building javadoc
David Powell <David.Powell@sun.com>
parents: 245
diff changeset
    57
		<install.vpxml />
255095584c55 8351 need way to build without building javadoc
David Powell <David.Powell@sun.com>
parents: 245
diff changeset
    58
		<mkdir dir="${proto.vppanel}" />
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    59
		<copy file="${proj.gen}/${panel.panel}.xml"
284
255095584c55 8351 need way to build without building javadoc
David Powell <David.Powell@sun.com>
parents: 245
diff changeset
    60
		    tofile="${proto.vppanel}/${panel.panel}.xml" />
0
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    61
	</target>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    62
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    63
	<path id="classpath.panels">
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    64
		<pathelement location="${ws.java}/scf/common/scf-common.jar" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    65
		<pathelement location="${ws.java}/util/vpanels-util.jar" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    66
		<pathelement
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    67
		    location="${ws.java}/vpanels/common/vpanels-common.jar" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    68
		<pathelement
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    69
		    location="${ws.java}/vpanels/panel/vpanels-panel.jar" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    70
	</path>
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    71
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    72
	<path id="classpath.javac" refid="classpath.panels" />
62ac12e07fc0 Initial integration.
David Powell <David.Powell@sun.com>
parents:
diff changeset
    73
</project>