Closed ankita219819 closed 2 years ago
This isn't a question about rsync4j, but a general rsync question.
If you use relative paths, you have to ensure that your current working directory (System.getProperty("user.dir")
) and your relative paths resolve to the paths that you want to synchronize.
Thank you for responding
I'm trying to run rsync command with runtime in java. In my A.class file
In my B.class
I always get error code as 23 for above code. When i give source and destination path as full path it works well. Eg:tempSrc=/home/usr/desktop/temp tempSrc=/home/usr/desktop/destTemp
I need the path to be in resources folder of project so that its not specific to system path. With resources folder it become generic to project resource folder and this helps my build in bamboo as well.