[jitsi-dev] [LibJitsi] Ant build issue


#1

Dear folks,
We got your lastest source from Github, and tried building via Ant but no
luck.
The attachment is the ant build log, would you please guide us how to build
your Git source on local machine.

Thank you and best regards,
Dzung

ant_log.txt (22.6 KB)


#2

Dzung,

Caveat: I am a user, not jitsi dev.

Here is one of the ways I build libjitsi:

Install ant, maven; put maven-ant-tasks-2.1.3.jar in ~/.ant/lib
directory.

    ~/libjitsi$ mvn clean test
    ~/libjitsi$ ant dist -Dbuild.label="$(git show --abbrev-commit |
head -1 | cut -d' ' -f 2)"

After the ant dist you would find several zip files in "dist" directory
under the various platforms.

When building jitsi videobridge to make it use my custom libjitsi,
instead of using ant, I use a maven command:

    ~/libjitsi$ mvn clean test install

Now my custom libjitsi snapshot jar is in the local m2 repository to be
retrieved by maven when finding dependencies on other projects, such as
jitsi videobridge:

    ~/jitsi-videobridge$ mvn test
    ~/jitsi-videobridge$ ant dist -Dlabel="$(git show --abbrev-commit |
head -1 | cut -d' ' -f 2)"

The resulting zips in dist probably have the custom libjitsi in them
(but one should verify with hash sums).

Your results may differ for different projects. But it usually is a
combination of ant and maven that does the build.

Hope this helps,

Jesse

P.S. If anyone knows a more concise way to get the git label let me
know.

···

On Sat, 2015-12-05 at 14:48 +0700, Dzung Le Hoang Tran wrote:

Dear folks,
We got your lastest source from Github, and tried building via Ant but
no luck.
The attachment is the ant build log, would you please guide us how to
build your Git source on local machine.

Thank you and best regards,
Dzung
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev