← Back to team overview

syncany-team team mailing list archive

Re: Update to gradle

 

Hi Vincent,

looking good!! I have a few questions:

1. What are the "syncany" and "syncany.bat" scripts in the main folder for?

2. There are a few statements in the syncany-core build.gradle that are not
necessary, right? syncany-core is not an "application", so they can be
removed, right? The src

3. The syncany-cli (and the GUI) needs a few JVM options, like described
here: https://github.com/binwiederhier/syncany/blob/master/syncany#L12 --
They can be replaced in the target scripts like this (Google helped :-)):

startScripts {
    doLast {
        unixScript.text =
unixScript.text.replace('DEFAULT_JVM_OPTS=""',
'DEFAULT_JVM_OPTS="-Xmx1024m -Dfile.encoding=utf-8"')
        windowsScript.text =
windowsScript.text.replace('DEFAULT_JVM_OPTS=',
'DEFAULT_JVM_OPTS="-Xmx1024m -Dfile.encoding=utf-8"')
    }
}

4. For the distTar/distZip targets, the LICENSE and README file should be
in the distributables, is there a way to add more files/folders?

5. I have not yet located the issue with the --localdir=.. -- This is
really odd, because the syncany-cli shell script runs in the current
working directory. At least "pwd" outputs the right directory

6. Gradle seems to be very poorly documented and whenever I am researching
stuff, I'm worried that this will get back to us some day. What's your
opinion about that?

I'll be on #syncany on Freenode/IRC for the next couple of hours, if you
want to chat.

Best
Philipp



On Fri, Nov 29, 2013 at 4:17 PM, Vincent Wiencek <vwiencek@xxxxxxxxx> wrote:

> Dear all,
>
>
> please find on https://github.com/vwiencek/syncany-gradle an slight
> update of syncany project including :
> - a switch from ant/ivy to gradle ;
> - a split of the project into subprojects : syncany-core / syncany-cli /
> syncany-gui / syncany-plugin-XXX (just ftp for now.
>
> The first thing you need to to after cloning this github is :
>
> 1/ chmod 777 gradlew (optional .... but sometimes permissions are not set
> on the file)
> 2/ sudo ./gradlew installCli.
> On linux this command will create application and link it to
> /usr/local/bin/(sy|syncany)
> On windows this command will create the application, but you still need to
> add syncany-gradle folder to PATH to be able to launch syncany.bat from
> anychere.
>
> !Warning! for an unknown (yet) reason you HAVE to explicitely add "-l
> local_folder" in order to use syncany command.
>
> For developpers
> 1/ ./gradlew eclispe will create all .eclipse and .project files
> 2/ Besides dedicated .settings will be copied to each subproject .settings
> project
>
> Major asset of gradle is the possibility to create full scripts for
> packaging the application for each platform.
>
>
>
> --
> Vincent Wiencek
> vwiencek@xxxxxxxxx
>
> --
> 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
>
>


-- 
Berliner Allee 8F, 64295 Darmstadt, Germany
Cell phone: +49-173-7865012 (T-Mobile)
Public Key: 0x375E60F1 at pgp.mit.edu

Follow ups

References