<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/var_resource_miscellaneous" xml:lang="en" UserLevel="Expert">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Miscellaneous</Title>
		<Keyword ContextSensitive="No"><Level1>Variables</Level1>
			<Level2>variable expansion</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Variables</Level1>
			<Level2>expansion</Level2>
		</Keyword>
	</Header>
	<GeneralSection ID="variable_expansion"><SectionTitle>Variable Expansion</SectionTitle>
		<Paragraph class="Default">ipc_boot and bshell can expand environment variables listed in the $BSE/lib/bse_vars file.</Paragraph>
		<Paragraph class="Default">A variable is only expanded if its name is surrounded by braces ({ and }).</Paragraph>
		<ExampleSection><SectionTitle>
                                 Example
                              </SectionTitle>
			<Paragraph class="Default">BSE=/usr/bse</Paragraph>
			<Paragraph class="Default">$BSE/lib/bse_vars contains the following setting:</Paragraph>
			<Paragraph class="Default"><Code>LIBPATH=${BSE}/shlib:/opt/db2/lib</Code>
			</Paragraph>
			<Paragraph class="Default">This is expanded to the following:</Paragraph>
			<Paragraph class="Default"><Code>LIBPATH=/usr/bse/shlib:/opt/db2/lib</Code>
			</Paragraph>
			<Paragraph class="Default">
                                 Note:</Paragraph>
			<Paragraph class="Default">If the braces are missing, the variable is not expanded; for example, <Code>LIBPATH=$BSE/shlib:/opt/db2/lib</Code> is not expanded.</Paragraph>
		</ExampleSection>
	</GeneralSection>
	<GeneralSection ID="directories_in_bse_classpath"><SectionTitle>Directories in BSE_CLASSPATH</SectionTitle>
		<Paragraph class="Default">Bshell checks if parts of the BSE_CLASSPATH variable contain directory names. In case of a directory name, the bshell adds all jar files in that directory to the java.class.path property.</Paragraph>
		<ExampleSection><SectionTitle>
                                 Example
                              </SectionTitle>
			<Paragraph class="Default">The /opt/birt/lib directory contains 3 jar files: a.jar, b.jar, and c.jar.</Paragraph>
			<Paragraph class="Default">The <Code>BSE_CLASSPATH=/opt/birt/lib</Code> setting results in the following:</Paragraph>
			<Paragraph class="Default"><Code>-Djava.class.path=/opt/birt/lib:/opt/birt/lib/a.jar: /opt/birt/lib/b.jar:/opt/birt/lib/c.jar</Code>
			</Paragraph>
		</ExampleSection>
		<Paragraph class="Default">In previous versions, all jar files from $BSE/java were added in a different order.</Paragraph>
		<Paragraph class="Default"><Code>-Djava.class.path=/usr/bse/java/bjvmi</Code>.</Paragraph>
	</GeneralSection>
</ManualTopic>
