deprecated/buildtools/buildsystemtools/ParseXML.pm
author marvin shi <marvin.shi@nokia.com>
Tue, 30 Nov 2010 17:14:57 +0800
changeset 714 e5a58c351011
parent 655 3f65fd25dfd4
permissions -rw-r--r--
feature bsym format symbol rombuild support
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
655
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     1
# Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     2
# All rights reserved.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     3
# This component and the accompanying materials are made available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     5
# which accompanies this distribution, and is available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     7
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     8
# Initial Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    10
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    11
# Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    12
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    13
# Description:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    14
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    15
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    16
package ParseXML;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    17
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    18
use strict;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    19
use Carp;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    20
use XML::Parser;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    21
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    22
# Package variables - these can also be accessed the from package "SubHandlers"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    23
use vars qw($gDataSource @gCommands @gSetEnv);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    24
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    25
# ParseXMLData
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    26
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    27
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    28
# $iDataSource - XML Command file.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    29
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    30
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    31
# @gCommands   - Contains commands.  Each command has various attributes.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    32
# @gSetEnv     - Contains environment vars.  Each var has a key and value.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    33
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    34
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    35
# This function parses the XML file and returns two arrays.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    36
sub ParseXMLData
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    37
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    38
  my ($iDataSource) = @_;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    39
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    40
  eval { $gDataSource = File::Spec->rel2abs($iDataSource); };
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    41
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    42
  undef @gCommands;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    43
  undef @gSetEnv;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    44
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    45
  # Create a new XML Parser
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    46
  my $iParser = new XML::Parser(Style=>'Subs', Pkg=>'SubHandlers', ErrorContext => 2);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    47
  # Supply the XML Parser the data source
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    48
  $iParser->parsefile($iDataSource);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    49
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    50
  return \@gCommands, \@gSetEnv;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    51
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    52
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    53
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    54
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    55
package SubHandlers;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    56
use FreezeThaw qw(freeze thaw);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    57
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    58
# Execute
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    59
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    60
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    61
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    62
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    63
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    64
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    65
# This function handles the Execute tag in the XML
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    66
sub Execute
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    67
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    68
  my $iExpat = shift; my $iElement = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    69
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    70
  my (%iAttr);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    71
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    72
  # Read the attributes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    73
  while (@_) {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    74
    my $iAtt = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    75
    my $iVal = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    76
    $iAttr{$iAtt} = $iVal;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    77
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    78
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    79
  # Read in the attributes into temporary variables
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    80
  my $iID                 = $iAttr{'ID'};   # ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    81
  my $iStage              = $iAttr{'Stage'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    82
  my $iComp               = $iAttr{'Component'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    83
  my $iCwd                = $iAttr{'Cwd'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    84
  my $iCommandLine        = $iAttr{'CommandLine'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    85
  my $iExitOnScanlogError = $iAttr{'ExitOnScanlogError'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    86
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    87
  # Replace the magic words with values in the commandline
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    88
  if ($ParseXML::gDataSource) {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    89
    $iCommandLine =~ s/%%%this_file%%%/$ParseXML::gDataSource/g;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    90
  } else {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    91
    $iCommandLine =~ s/%%%this_file%%%/this_file/g;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    92
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    93
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    94
  # Replace the server side environment variables with values in the commandline
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    95
  $iCommandLine =~ s/%%(\w+)%%/$ENV{$1}/g;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    96
  # Replace the server side environment variables with values in the cwd
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    97
  $iCwd =~ s/%%(\w+)%%/$ENV{$1}/g;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    98
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    99
  # Store the data about the command in a temporary hash
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   100
  my %temp = (
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   101
               'Type'               => 'Execute',
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   102
               'Stage'              => $iStage,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   103
               'Component'          => $iComp,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   104
               'Cwd'                => $iCwd,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   105
               'CommandLine'        => $iCommandLine,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   106
               'ExitOnScanlogError' => $iExitOnScanlogError,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   107
             );
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   108
  push @ParseXML::gCommands, \%temp;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   109
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   110
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   111
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   112
# Product
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   113
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   114
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   115
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   116
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   117
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   118
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   119
# This function handles the Product tag in the XML
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   120
sub Product
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   121
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   122
  my $iExpat = shift; my $iElement = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   123
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   124
  my (%iAttr);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   125
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   126
  # Read the attributes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   127
  while (@_) {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   128
    my $iAtt = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   129
    my $iVal = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   130
    $iAttr{$iAtt} = $iVal;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   131
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   132
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   133
  my $iName = $iAttr{'Name'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   134
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   135
  print "$iElement = $iName\n";
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   136
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   137
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   138
# SetEnv
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   139
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   140
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   141
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   142
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   143
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   144
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   145
# This function handles the SetEnv tag in the XML
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   146
sub SetEnv
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   147
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   148
  my $iExpat = shift; my $iElement = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   149
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   150
  my (%iAttr);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   151
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   152
  # Read the attributes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   153
  while (@_) {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   154
    my $iAtt = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   155
    my $iVal = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   156
    $iAttr{$iAtt} = $iVal;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   157
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   158
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   159
  # Read in the attributes to temporary variables
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   160
  my $iName  = $iAttr{'Name'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   161
  my $iValue = $iAttr{'Value'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   162
  my $iOrder = $iAttr{'Order'};   # Ignored
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   163
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   164
  # Replace the server side environment variables with values in the environment variable value
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   165
  $iValue =~ s/%%(\w+)%%/$ENV{$1}/g;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   166
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   167
  # Store the data about the Environment
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   168
  my %temp = (
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   169
               'Name'  => $iName,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   170
               'Value' => $iValue,
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   171
             );
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   172
  push @ParseXML::gSetEnv, \%temp;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   173
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   174
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   175
# Exit
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   176
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   177
# Inputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   178
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   179
# Outputs
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   180
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   181
# Description
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   182
# This function handles the Exit tag in the XML which cause the client to exit
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   183
sub Exit
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   184
{
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   185
  my $iExpat = shift; my $iElement = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   186
  my (%iAttr);
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   187
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   188
  # Read the attributes
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   189
  while (@_) {
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   190
    my $iAtt = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   191
    my $iVal = shift;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   192
    $iAttr{$iAtt} = $iVal;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   193
  }
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   194
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   195
  # Read in the attributes into temporary variables
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   196
  my $iStage              = $iAttr{'Stage'};
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   197
  
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   198
  # Store the data about the command in a temporary hash
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   199
  my %temp = (
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   200
               'Type'               => 'Exit',
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   201
               'Stage'              => $iStage
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   202
             );
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   203
  push @ParseXML::gCommands, \%temp;
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   204
}
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
   205
1;