summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/thrift/lib/as3/README.md
blob: c14f8c78b681ae2a2b050c3528fba3e95dd9202d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Apache Thrift ActionScript Library

## Building

We use gradle and gradlefx to build the as3 library.  Unfortunately gradlefx requires
an older version of gradle (2.5) but it still works - for now.  If you use the docker
container to do the build, the Adobe Flex SDK 4.6 is installed and the FLEX_HOME
environment variable is configured:

    dev@ubuntu:~/thrift$ docker run -v $(pwd):/thrift/src:rw -it thrift/thrift-build:ubuntu-bionic /bin/bash
    root@7624b61bbf84:/thrift/src# cd lib/as3
    root@7624b61bbf84:/thrift/src/lib/as3# ./gradlew -Prelease=true compileFlex

    ...

    :compileFlex UP-TO-DATE

    BUILD SUCCESSFUL

    Total time: 10.784 secs

    root@7624b61bbf84:/thrift/src/lib/as3# ls -ls build/
    total 4
    4 -rw-r--r-- 1 root root 1379 Jan 22 19:23 libthrift-as3.swc

## Publishing

We use a similar gradle-based signing and publishing mechanism as in the java
library.  See the java library [README.md](../java/README.md) for more details.

To publish into a local .m2 repository you can mount a directory into the docker container,
for example:

    dev@ubuntu:~/thrift$ docker run -v~/.m2:/root/.m2 -v $(pwd):/thrift/src:rw -it thrift/thrift-build:ubuntu-bionic /bin/bash
    root@7624b61bbf84:/thrift/src/lib/as3# ./gradlew -Prelease=true publishToMavenLocal

You will find your `~/.m2` directory is now populated with a release build `swc`.