Hi,

First of all, thank you very much for this excellence java library. I love
it. ;-)

I am fighting with the expansion of subversion keyword. I found a lot of
useful code snippets, but up to now keywords are not replaced.

This is the code of my getFileContent() method:

        public ByteArrayOutputStream getFileContent(String i_sPath, long
i_nRevision) throws SVNException {
                SVNNodeKind nodeKind = this.getRepository().checkPath( i_sPath,
i_nRevision );
                
                if( nodeKind == SVNNodeKind.NONE ) {
                        System.err.println("There is no entry at '" + i_sPath + 
"'.");
                        System.exit(1);
                }
                else if( nodeKind == SVNNodeKind.DIR ) {
                        System.err.println("The entry at '" + i_sPath + "' is a 
directory while a
file was expected.");
                        System.exit(1);
                }

                SVNProperties fileProperties = new SVNProperties();
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                this.getRepository().getFile(i_sPath, i_nRevision, 
fileProperties, baos);
                
                return baos;
        }


I am working with the low level api directly on the subversion server and
without a local repository checkout. Can I use the SVNTranslator class? If
yes how can I replace the keywords?

Thank's for your help.



-- 
View this message in context: 
http://old.nabble.com/Keywords-expansion-tp32399221p32399221.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.

Reply via email to