sdd message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: FW: FW: Require Help
- From: "Borissov, Lazar" <lazar.borissov@sap.com>
- To: <sdd@lists.oasis-open.org>
- Date: Thu, 14 Feb 2008 17:17:25 +0100
FYI
Lazar,
Some comments:
If a snippet of the SDD looked like:
<sdd-dd:Variables>
<sdd-dd:Parameters>
<sdd-dd:StringParameter id="JAVAHOME_Variable"/>
</sdd-dd:Parameters>
</sdd-dd:Variables>
Then the sub needs to look like the
following where the <Value> is a reference to the variable.
<sdd-dd:AdditionalContent type="xml"
contentRef="ID_1">
<sdd-dd:Substitution required="true"
limit="1">
<sdd-dd:Pattern>JAVAHOME</sdd-dd:Pattern>
<sdd-dd:Value>$(JAVAHOME)</sdd-dd:Value>
</sdd-dd:Substitution>
The "semantics" is to literally substitute
the string:
Thus, a properties file
that looks like the following:
<properties>
<property name="SOURCE.PACKAGE"
value="/tmp/jre-1_5_0_09-xxx.bin"/>
<property
name="JAVAHOME" value="/opt/java"/>
</properties>
Would have
the literal string of "JAVAHOME" replaced...which is the value of "name" vs the
value of "value":
Regards,
Randy George
Senior Technical Staff
Member
Tivoli Software, IBM Software Group
Austin, TX
(512)
838-0752 T/L 678-0752
"Borissov, Lazar"
<lazar.borissov@sap.com>
02/13/08 08:23 AM
|
To
| Randy
George/Austin/IBM@IBMUS
|
cc
|
|
Subject
| FW: Require
Help |
|
Hi Randy,
I do not feel expert in this
Substitution-topic :(
May you help with this request?
Thank
you
Kind regards,
lazar
-----Original
Message-----
From: Masood Lodi [mailto:lodimk@ca.ibm.com]
Sent: Tuesday,
February 12, 2008 7:34 PM
To: Borissov, Lazar
Subject: RE: Require
Help
Hi Borris,
Thanks for your prompt response. For more
clarity iam adding few more
lines
to the
responsefile.
<properties>
<property
name="SOURCE.PACKAGE"
value="/tmp/jre-1_5_0_09-xxx.bin"/>
<property name="JAVAHOME"
value="/opt/java"/>
</properties>
The red things are to be
replaced.
Is the below substitution
correct.
<sdd-dd:AdditionalContent type="xml"
contentRef="ID_1">
<sdd-dd:Substitution required="true"
limit="1">
<sdd-dd:Pattern>JAVAHOME</sdd-dd:Pattern>
<sdd-dd:Value>JAVAHOME_Variable</sdd-dd:Value>
</sdd-dd:Substitution>
<sdd-dd:Substitution
required="true" limit="1">
<sdd-dd:Pattern>/opt/java</sdd-dd:Pattern>
<sdd-dd:Value>/opt/usr/java</sdd-dd:Value>
</sdd-dd:Substitution>
<sdd-dd:Substitution
required="true" limit="1">
<sdd-dd:Pattern>SOURCE.PACKAGE</sdd-dd:Pattern>
<sdd-dd:Value>SOURCE_PACKAGE_variable</sdd-dd:Value>
</sdd-dd:Substitution>
<sdd-dd:Substitution
required="true" limit="1">
<sdd-dd:Pattern>/tmp/jre-1_5_0_09-xxx.bin</sdd-dd:Pattern>
<sdd-dd:Value>/usr/repos/jre-1_5_0_09-xxx.bin</sdd-dd:Value>
</sdd-dd:Substitution>
</sdd-dd:AdditionalContent>
I
would like to thank you once
again.
regards
masood
"Borissov, Lazar"
<lazar.borissov@s
ap.com>
To
Masood
Lodi/Toronto/Contr/IBM@IBMCA
02/12/2008 03:48
cc
PM
"Randy George"
<randyg@us.ibm.com>
Subject
RE: Require
Help
Hi
Masood,
If I understand correct you need to replace JAVAHOME to
/usr/local/java
Or you need to define JAVAHOME as an input parameter and give
it value
/usr/local/java?
The first shall be something
like:
<sdd-dd:Substitution>
<sdd-dd:Pattern>JAVAHOME</sdd-dd:Pattern>
<sdd-dd:Value>JAVAHOME_Variable</sdd-dd:Value>
</sdd-dd:Substitution>
"required
" is true by default and means if value is not correct the
substitution is
not possible and this shall be error.
If it is false in case the value is
wrong no substitution will happen.
"limit" defines how many occurrences will
be substituted. If you need
all to be replaces just skip the
"limit"
"Pattern" is the string to be replaced
JAVAHOME_Variable is a
variable / parameter defined somewhere in SDD. If
will be evaluated and its
value used for substitution.
For example may be input parameter
:
<sdd-dd:Variables>
<sdd-dd:Parameters>
<sdd-dd:StringParameter id="JAVAHOME_Variable"/>
</sdd-dd:Parameters>
</sdd-dd:Variables>
Or
may be defined as response file.
If you need to have it as input and
have property file with substitution
inputs just use
response-file:
Define JAVAHOME as
parameter:
<sdd-dd:Variables>
<sdd-dd:Parameters>
<sdd-dd:StringParameter id="JAVAHOME"/>
</sdd-dd:Parameters>
</sdd-dd:Variables>
And
define response-file as java-property file where you have
line
JAVAHOME=/usr/local/java
And you define the response file (let's
say response.txt) in following
way:
First you define it in package
descriptor
<sdd-pd:File pathname="response.txt"
id="RESPONSE_FILE_ID"
purpose="responseFile" />
@Randy, am I
right?
Regards,
Lazar
-----Original Message-----
From:
Masood Lodi [mailto:lodimk@ca.ibm.com]
Sent: Monday, February 11, 2008 4:53
PM
To: Borissov, Lazar
Subject: Require Help
Hi,
Iam Masood
from IBM working on SDD, Iam a silent listener of this group
and
iam new
to SDD.
Currently iam confused with SDD element Substitution type. It
would be
very
nice if you could help me out with an
example.
<properties>
<property name="JAVAHOME"
value="/opt/JAVA"/>
</properties>
The above would be my
responsefile now i need to substitute the value of
the property name JAVAHOME
and the resultant responsfile is as
below.
<properties>
<property name="JAVAHOME"
value="/usr/local/java"/>
</properties>
How do i put the same
in SDD?
<sdd-dd:Substitution required="true" limit="2">
<sdd-dd:Pattern>String</sdd-dd:Pattern>
<sdd-dd:Value/>
</sdd-dd:Substitution>
regards
masood
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]