https://defect.opensolaris.org/bz/show_bug.cgi?id=17506

--- Comment #4 from Lubos Kosco <[email protected]> 2010-12-02 12:55:17 UTC 
---
(In reply to comment #3)
> (In reply to comment #2)
> > well
> > I can actually remove %g from default pattern
> 
> yes please.
> 
> > and maybe I can do something evil like:
> > .replaceAll("%u", "0")
> > 
> > which will obviously work for default pattern, will break for user pattern 
> > and
> > will print bullshit if there will be a conflict and %u will change from 0 
> > to X
> > 
> 
> So there is no way how to get user ID in Java ?

sorry for confusion, %u is not user, but unique id to avoid writer conflicts
(e.g. 2 indexers accidentally started at the same time will this way not
overwrite each other logs)

so above depends on whether the file is writeable(and unlocked for write) and
depends on instance, but instance is not able to report the file name opened
... seems I will have to file a bug against JDK/JRE

--
L

-- 
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to