Changeset 33629d0 for apps/ministreaming


Ignore:
Timestamp:
May 1, 2016 8:19:56 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7a49b09
Parents:
2fe1f97
Message:

Build: Compile resource bundles from ant, not msgfmt,
speeding up builds with translations by 20x

Location:
apps/ministreaming/java
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/build.xml

    r2fe1f97 r33629d0  
    111111            <arg value="./bundle-messages.sh" />
    112112        </exec>
     113        <javac source="${javac.version}" target="${javac.version}"
     114               includeAntRuntime="false"
     115               srcdir="build/messages-src" destdir="build/obj">
     116            <compilerarg line="${javac.compilerargs}" />
     117        </javac>
    113118    </target>
    114119
  • apps/ministreaming/java/bundle-messages.sh

    r2fe1f97 r33629d0  
    9898
    9999        # convert to class files in build/obj
    100         msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
     100        TD=build/messages-src-tmp
     101        TDX=$TD/net/i2p/client/streaming
     102        TD2=build/messages-src
     103        TDY=$TD2/net/i2p/client/streaming
     104        rm -rf $TD
     105        mkdir -p $TD $TDY
     106        msgfmt --java --statistics --source -r $CLASS -l $LG -d $TD $i
    101107        if [ $? -ne 0 ]
    102108        then
     
    107113            break
    108114        fi
     115        mv $TDX/messages_$LG.java $TDY
     116        rm -rf $TD
    109117    fi
    110118done
Note: See TracChangeset for help on using the changeset viewer.