Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

list all files with local.codepage=cp1252

I've a RTC 3.0 environment and I need to generate a list of files with local.codepage User Properties setted to cp1252.
How can I obtain this information?
How can I search into the User Properties?

Thanks in advance.
Bye.

0 votes



One answer

Permanent link
I've resolved using the scm command property list.

Here a perl script for a recursive search

use strict;
use File::Find;

my $scm_cmd="/opt/IBM/SDP/scmtools/eclipse/scm";
my $dir="/home/angelo/IBM/rationalsdp/workspace_prod/Hello_World_prj/";
my $url="https://clmweb:9443/ccm";
my $user="CLMADMIN";
my $pwd="xxxxxxxxx";
my $file_out="/home/angelo/get_local_codepage";

open FILE, ">$file_out" or die $!;

sub set_property{
print "analyzing $File::Find::name ............\n";
my $scm_out=`$scm_cmd property list -r $url -u $user -P $pwd $File::Find::name`;
my @row_out=split(/\n/,$scm_out);
for(@row_out){
if (substr($_,2,14) eq "local.codepage"){
print FILE $File::Find::name."\n";
print FILE $_."\n\n";
}
}
}
find(\&set_property,"$dir");

close FILE;

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 22 '11, 6:29 p.m.

Question was seen: 6,291 times

Last updated: Nov 22 '11, 6:29 p.m.

Confirmation Cancel Confirm