Update to latest HTTP Core/Client libs

git-svn-id: https://zxing.googlecode.com/svn/trunk@518 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-07-15 23:41:24 +00:00
parent f02c4f0cfc
commit d0af16c36c
8 changed files with 21 additions and 17 deletions

View file

@ -20,7 +20,7 @@
<property file="secrets.properties"/>
<target name="init">
<tstamp/>
<tstamp/>
<fail message="Please build 'core' first">
<condition>
<not>
@ -35,10 +35,17 @@
</not>
</condition>
</fail>
<fail message="Please set 'tomcat-home' in build.properties">
<condition>
<not>
<available file="${tomcat-home}" type="dir"/>
</not>
</condition>
</fail>
</target>
<target name="build" depends="init">
<mkdir dir="web/WEB-INF/classes"/>
<target name="build" depends="init">
<mkdir dir="web/WEB-INF/classes"/>
<copy file="../core/core.jar" todir="web/WEB-INF/lib" overwrite="true"/>
<copy file="../javase/javase.jar" todir="web/WEB-INF/lib" overwrite="true"/>
<javac srcdir="src"
@ -48,13 +55,13 @@
optimize="true"
debug="true"
deprecation="true">
<classpath>
<fileset dir="web/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${tomcat-home}/lib/servlet-api.jar"/>
</classpath>
</javac>
<classpath>
<fileset dir="web/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${tomcat-home}/lib/servlet-api.jar"/>
</classpath>
</javac>
<copy file="web/WEB-INF/web.xml.template" tofile="web/WEB-INF/web.xml" overwrite="true">
<filterset>
<filter token="EMAIL_PASSWORD" value="${emailPassword}"/>
@ -72,7 +79,7 @@
</war>
</target>
<target name="clean">
<target name="clean">
<delete dir="web/WEB-INF/web.xml"/>
<delete dir="web/WEB-INF/classes"/>
<delete file="web/WEB-INF/lib/core.jar"/>

View file

@ -36,9 +36,9 @@ import org.apache.http.HttpResponse;
import org.apache.http.HttpVersion;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.conn.PlainSocketFactory;
import org.apache.http.conn.Scheme;
import org.apache.http.conn.SchemeRegistry;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
@ -160,9 +160,6 @@ public final class DecodeServlet extends HttpServlet {
} finally {
is.close();
}
} catch (InterruptedException ie) {
getRequest.abort();
response.sendRedirect("badurl.jspx");
} catch (HttpException he) {
getRequest.abort();
response.sendRedirect("badurl.jspx");

Binary file not shown.

Binary file not shown.