← Back to team overview

syncany-team team mailing list archive

Re: Gradle support (first tests)

 

yes very doable


On Thu, Nov 28, 2013 at 8:37 PM, Philipp Heckel <philipp.heckel@xxxxxxxxx>wrote:

> Hi there,
>
>  task fakeuninstall {
>>>     new File("/usr/local/bin/syncany").delete()
>>>     new File("/usr/local/bin/sy").delete()
>>> }
>>>
>>> task fakeinstall(dependsOn: fakeuninstall) {
>>>     ant.symlink(resource: "${buildDir}/syncany", link:
>>> "/usr/local/bin/syncany")
>>>     ant.symlink(resource: "${buildDir}/syncany", link:
>>> "/usr/local/bin/sy")
>>> }
>>>
>>>
>> ok great
>>
>
> This is more tricky than expected, because what we expect for a
> "fakeinstall" is basically the structure that is packaged by "distTar", but
> extracted, so something like:
>
>    bin/syncany
>    bin/syncany.bat
>    libs/*.jar
>
> If this can be done, you have to do:
> 1. run the distTar task
> 2. extract the TAR
> 3a. on Linux: point the symlink to the syncany shell script (in
> syncany-cli/build/distributions/syncany-cli/bin)
> 3b. on Windows: add the "bin" dir to the Windows PATH variable (in
> syncany-cli/build/distributions/syncany-cli/bin)
>
> Hope this helps, Vincent :-D
>
> Best
> Philipp
>



-- 
Vincent Wiencek
vwiencek@xxxxxxxxx

References