Hi Tom,

> Well if I'm not completely mistaken you only need to modify the path to
> the jre used by openoffice don't you?

I think so. At the moment I am testing whether there are other things
that need to be changed or not (like VendorID,...).

> I have no sed commando available at the moment but because I'm better in
> perl here's a one liner (this is even cross-platform as it's perl :-)

:-)

> ----------------8<----------------
> perl -e '{local $/ = undef; open(IN,"$ARGV[0]");$c=<IN>;close(IN);}$c =~
> s/<location>.+<\/location>/<location>$ARGV[1]<\/location>/;open(OUT,">$ARGV[0]");print
> OUT $c;close(OUT);' $path_to_javasettings_Linux_x86.xml $new_jre%
> ----------------8<----------------
> 
> for example:
> 
> ----------------8<----------------
> perl -e '{local $/ = undef; open(IN,"$ARGV[0]");$c=<IN>;close(IN);}$c =~
> s/<location>.+<\/location>/<location>$ARGV[1]<\/location>/;open(OUT,">$ARGV[0]");print
> OUT $c;close(OUT);' javasettings_Linux_x86.xml file:///usr/java5/jre
> ----------------8<----------------
> 
> As already mentionned if you have to check if this changes within
> releases but it should work for the current ones.

I will check it each time, that seems to be a solution.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to