简体   繁体   中英

svnkit without environment variables?

I use svnkit to download files from an SVN. When I run my program as a Windows service using YAJSW, the program is run as a System user, where APPDATA is set to some path in C:\\Windows. svnkit is then unable to write to that directory.

As I did not find out how to run the YAJSW service as a different user with different environment variables, I would like to know whether I can use svnkit without relying on Windows environment variables.

Turned out that it is much easier to set the directory for svnkit in

SVNWCUtil.createDefaultAuthenticationManager(new File("D:\\temp\\"),
            user, password.toCharArray());

Then the value of APPDATA does not matter anymore for svnkit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM