← Back to team overview

syncany-team team mailing list archive

Re: Gradle support (first tests)

 

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

> Hi again,
>
>  I think the "fakeinstall" and the Eclipse code formatter issues are the
>> two things keeping us from switching :-D Since Vincent is a Windows guy
>> I'll help him research that a bit. :-)
>>
>
> the more I learn about gradle, the more amazed I am about what it can do.
> Simply adding "apply plugin: 'application'" to the top of the gradle file
> (and a mainClassName) allows us to use "distTar" and "distZip" tasks which
> create distributable TAR or ZIP archives, including a corresponding Windows
> batch file and a Linux shell script. This is pretty awesome.
>

indeed :)


>
> Combing that and the following tasks can re-create our fakeinstall task:
>
> 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


> Obviously the paths still need to be adjusted ... But that'll definitely
> help Vincent, I think.
>
> btw, I managed to include eclipse settings (commit tomorrow)


> Best
> Philipp
> <http://pgp.mit.edu>
>
> --
> Mailing list: https://launchpad.net/~syncany-team
> Post to     : syncany-team@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~syncany-team
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Vincent Wiencek
vwiencek@xxxxxxxxx

Follow ups

References