forked from I2P_Developers/i2p.i2p
Debian: Add runtime dependency on libhttpclient-java,
link to /usr/share/java/httpclient.jar and httpcore.jar. This is 2 MB of dependencies to replace 20 KB of copied code, so may not be worth it, esp. for Tails.
This commit is contained in:
@ -38,7 +38,14 @@
|
||||
<condition property="translation.includes" value="NOTHING" else="gnu/getopt/*.properties" >
|
||||
<istrue value="${with-libgetopt-java}" />
|
||||
</condition>
|
||||
<property name="javac.classpath.mod" value="${javac.classpath.mod1}${javac.classpath.mod2}${javac.classpath}" />
|
||||
<!-- fixups if we're using httpclient.jar and httpcore.jar for org.apache.http classes -->
|
||||
<condition property="source.exclude3" value="org/apache/http/**" else="NOTHING" >
|
||||
<istrue value="${with-libhttpclient-java}" />
|
||||
</condition>
|
||||
<condition property="javac.classpath.mod3" value="build/httpclient.jar:build/httpcore.jar:" else="" >
|
||||
<istrue value="${with-libhttpclient-java}" />
|
||||
</condition>
|
||||
<property name="javac.classpath.mod" value="${javac.classpath.mod1}${javac.classpath.mod2}${javac.classpath.mod3}${javac.classpath}" />
|
||||
|
||||
<target name="compile" depends="depend">
|
||||
<mkdir dir="./build" />
|
||||
@ -52,6 +59,7 @@
|
||||
<include name="**/*.java" />
|
||||
<exclude name="${source.exclude1}" />
|
||||
<exclude name="${source.exclude2}" />
|
||||
<exclude name="${source.exclude3}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
|
Reference in New Issue
Block a user