how to build dist?

Asked by sealove

I followed the instruction(http://www.syncany.org/) in http://bazaar.launchpad.net/~syncany-team/syncany/trunk/view/head:/syncany/DEVELOPMENT, but I did not get the dist after successfully compiling source.

huijun@ubuntu:~/core2$ ant
Buildfile: /home/huijun/core2/build.xml

download-ivy:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0-rc2/ivy-2.1.0-rc2.jar
      [get] To: /home/huijun/.ant/lib/ivy.jar
      [get] Not modified - so not downloaded

init-ivy:

init:
[ivy:retrieve] :: Ivy 2.1.0-rc2 - 20090704004254 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file = /home/huijun/core2/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.syncany#SyncanyCore;working@ubuntu
[ivy:retrieve] confs: [cc-impl]
[ivy:retrieve] found commons-cli#commons-cli;1.0 in central
[ivy:retrieve] found commons-logging#commons-logging;1.0 in central
[ivy:retrieve] found commons-lang#commons-lang;1.0 in central
[ivy:retrieve] found commons-net#commons-net;2.0 in central
[ivy:retrieve] found commons-codec#commons-codec;1.5 in central
[ivy:retrieve] found org.apache.commons#commons-compress;1.3 in central
[ivy:retrieve] found junit#junit;4.5 in central
[ivy:retrieve] found com.google.code.gson#gson;2.1 in central
[ivy:retrieve] :: resolution report :: resolve 605ms :: artifacts dl 23ms
[ivy:retrieve] :: evicted modules:
[ivy:retrieve] junit#junit;3.7 by [junit#junit;4.5] in [cc-impl]
 ---------------------------------------------------------------------
 | | modules || artifacts |
 | conf | number| search|dwnlded|evicted|| number|dwnlded|
 ---------------------------------------------------------------------
 | cc-impl | 9 | 0 | 0 | 1 || 8 | 0 |
 ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.syncany#SyncanyCore
[ivy:retrieve] confs: [cc-impl]
[ivy:retrieve] 0 artifacts copied, 8 already retrieved (0kB/13ms)

compile:
     [echo] Compiling SyncanyCore
    [javac] Compiling 59 source files to /home/huijun/core2/build
    [javac] /home/huijun/core2/build.xml:34: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 16 source files to /home/huijun/core2/build

dist:
     [echo] Creating Distribution
      [jar] Building jar: /home/huijun/core2/SyncanyCore.jar

BUILD SUCCESSFUL
Total time: 7 seconds
huijun@ubuntu:~/core2$ ls -l
total 192
drwxrwxr-x 3 huijun huijun 4096 May 19 02:16 build
-rw-rw-r-- 1 huijun huijun 4509 May 19 02:02 build.xml
-rw-rw-r-- 1 huijun huijun 337 May 19 02:02 config.json
-rw-rw-r-- 1 huijun huijun 1038 May 19 02:02 ivysettings.xml
-rw-rw-r-- 1 huijun huijun 2302 May 19 02:02 ivy.xml
drwxrwxr-x 2 huijun huijun 4096 May 19 02:09 lib
drwxrwxr-x 2 huijun huijun 4096 May 19 02:02 local
-rw-rw-r-- 1 huijun huijun 172 May 19 02:02 logging.properties
drwxrwxr-x 3 huijun huijun 4096 May 19 02:02 src
-rw-rw-r-- 1 huijun huijun 30877 May 19 02:02 syncanyCodeFormatter.xml
-rw-rw-r-- 1 huijun huijun 115333 May 19 02:16 SyncanyCore.jar
drwxrwxr-x 3 huijun huijun 4096 May 19 02:02 tests
huijun@ubuntu:~/core2$

Question information

Language:
German Edit question
Status:
Solved
For:
Syncany Edit question
Assignee:
No assignee Edit question
Solved by:
Philipp C. Heckel
Solved:
Last query:
Last reply:
Revision history for this message
Best Philipp C. Heckel (binwiederhier) said :
#1

There's a SyncanyCore.jar. That's the distribution.

Try running it like this: java
-Djava.util.logging.config.file=logging.properties -jar SyncanyCore.jar -c
config.json *up*
Or like this: java -Djava.util.logging.config.file=logging.properties -jar
SyncanyCore.jar -c config.json *down*

The sync-up operation is mostly implemented, the sync-down not so much.
We're still working on that.

For something to actually happen when calling the "up" operation, you might
want to put some files in the syncanyData/localDir directory.

On Sun, May 19, 2013 at 11:31 AM, sealove <
<email address hidden>> wrote:

> New question #229198 on Syncany:
> https://answers.launchpad.net/syncany/+question/229198
>
> I followed the instruction(http://www.syncany.org/) in
> http://bazaar.launchpad.net/~syncany-team/syncany/trunk/view/head:/syncany/DEVELOPMENT,
> but I did not get the dist after successfully compiling source.
>
> huijun@ubuntu:~/core2$ ant
> Buildfile: /home/huijun/core2/build.xml
>
> download-ivy:
> [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0-rc2/ivy-2.1.0-rc2.jar
> [get] To: /home/huijun/.ant/lib/ivy.jar
> [get] Not modified - so not downloaded
>
> init-ivy:
>
> init:
> [ivy:retrieve] :: Ivy 2.1.0-rc2 - 20090704004254 ::
> http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: file =
> /home/huijun/core2/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies ::
> org.syncany#SyncanyCore;working@ubuntu
> [ivy:retrieve] confs: [cc-impl]
> [ivy:retrieve] found commons-cli#commons-cli;1.0 in central
> [ivy:retrieve] found commons-logging#commons-logging;1.0 in central
> [ivy:retrieve] found commons-lang#commons-lang;1.0 in central
> [ivy:retrieve] found commons-net#commons-net;2.0 in central
> [ivy:retrieve] found commons-codec#commons-codec;1.5 in central
> [ivy:retrieve] found org.apache.commons#commons-compress;1.3 in central
> [ivy:retrieve] found junit#junit;4.5 in central
> [ivy:retrieve] found com.google.code.gson#gson;2.1 in central
> [ivy:retrieve] :: resolution report :: resolve 605ms :: artifacts dl 23ms
> [ivy:retrieve] :: evicted modules:
> [ivy:retrieve] junit#junit;3.7 by [junit#junit;4.5] in [cc-impl]
>
> ---------------------------------------------------------------------
> | | modules || artifacts
> |
> | conf | number| search|dwnlded|evicted||
> number|dwnlded|
>
> ---------------------------------------------------------------------
> | cc-impl | 9 | 0 | 0 | 1 || 8 | 0
> |
>
> ---------------------------------------------------------------------
> [ivy:retrieve] :: retrieving :: org.syncany#SyncanyCore
> [ivy:retrieve] confs: [cc-impl]
> [ivy:retrieve] 0 artifacts copied, 8 already retrieved (0kB/13ms)
>
> compile:
> [echo] Compiling SyncanyCore
> [javac] Compiling 59 source files to /home/huijun/core2/build
> [javac] /home/huijun/core2/build.xml:34: warning: 'includeantruntime'
> was not set, defaulting to build.sysclasspath=last; set to false for
> repeatable builds
> [javac] Compiling 16 source files to /home/huijun/core2/build
>
> dist:
> [echo] Creating Distribution
> [jar] Building jar: /home/huijun/core2/SyncanyCore.jar
>
> BUILD SUCCESSFUL
> Total time: 7 seconds
> huijun@ubuntu:~/core2$ ls -l
> total 192
> drwxrwxr-x 3 huijun huijun 4096 May 19 02:16 build
> -rw-rw-r-- 1 huijun huijun 4509 May 19 02:02 build.xml
> -rw-rw-r-- 1 huijun huijun 337 May 19 02:02 config.json
> -rw-rw-r-- 1 huijun huijun 1038 May 19 02:02 ivysettings.xml
> -rw-rw-r-- 1 huijun huijun 2302 May 19 02:02 ivy.xml
> drwxrwxr-x 2 huijun huijun 4096 May 19 02:09 lib
> drwxrwxr-x 2 huijun huijun 4096 May 19 02:02 local
> -rw-rw-r-- 1 huijun huijun 172 May 19 02:02 logging.properties
> drwxrwxr-x 3 huijun huijun 4096 May 19 02:02 src
> -rw-rw-r-- 1 huijun huijun 30877 May 19 02:02 syncanyCodeFormatter.xml
> -rw-rw-r-- 1 huijun huijun 115333 May 19 02:16 SyncanyCore.jar
> drwxrwxr-x 3 huijun huijun 4096 May 19 02:02 tests
> huijun@ubuntu:~/core2$
>
> --
> You received this question notification because you are a member of
> Syncany Team, which is an answer contact for Syncany.
>
> --
> Mailing list: https://launchpad.net/~syncany-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~syncany-team
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
sealove (huijun-wu-2010) said :
#2

Thanks Philipp C. Heckel, that solved my question.