From: yukihane Date: Sat, 20 Aug 2011 18:57:30 +0000 (+0900) Subject: パスに必要なjarが含まれていなかったためコンパイルエラーになる問題を解消 X-Git-Tag: test20110903_ver2.a.0~197 X-Git-Url: http://git.sourceforge.jp/view?p=coroid%2Finqubus.git;a=commitdiff_plain;h=7714c4231fe6d5eef7fea993a6adf3179148d706 パスに必要なjarが含まれていなかったためコンパイルエラーになる問題を解消 --- diff --git a/frontend/nbproject/project.properties b/frontend/nbproject/project.properties index 59fbcbb..c28c3ac 100644 --- a/frontend/nbproject/project.properties +++ b/frontend/nbproject/project.properties @@ -39,7 +39,8 @@ javac.classpath=\ ${libs.Commons-Collections.classpath}:\ ${libs.toplink.classpath}:\ ${libs.H2_DB.classpath}:\ - ${libs.Commons-CLI.classpath} + ${libs.Commons-CLI.classpath}:\ + ${libs.HttpComponents.classpath} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=true @@ -89,7 +90,6 @@ run.classpath=\ ${build.classes.dir}:\ ${libs.Rome.classpath}:\ ${libs.groovy-all.classpath}:\ - ${libs.HttpComponents.classpath}:\ ${libs.NekoHtml.classpath} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value diff --git a/frontend/src/saccubus/converter/Converter.java b/frontend/src/saccubus/converter/Converter.java index 2d950e1..8050731 100644 --- a/frontend/src/saccubus/converter/Converter.java +++ b/frontend/src/saccubus/converter/Converter.java @@ -10,6 +10,7 @@ import nicobrowser.NicoHttpClient; import nicobrowser.ProgressListener; import nicobrowser.WayBackInfo; import nicobrowser.entity.NicoContent.Status; +import org.apache.http.HttpException; import saccubus.ConvertStopFlag; import saccubus.net.TextProgressListener; import yukihane.saccubus.converter.profile.CommentProfile; @@ -225,7 +226,8 @@ public class Converter extends AbstractCommand implements Callable { * @throws IOException ログイン失敗. * @throws InterruptedException ログイン失敗. */ - private NicoHttpClient createClientAndLogin() throws IOException, InterruptedException { + // TODO HttpException を投げるのをやめたい. コンパイル時にHttpComponentが必要になるので. + private NicoHttpClient createClientAndLogin() throws IOException, InterruptedException, HttpException { final NicoHttpClient client = createClient(profile.getProxySetting()); final boolean hasLogin; try {