OSDN Git Service

パスに必要なjarが含まれていなかったためコンパイルエラーになる問題を解消
authoryukihane <yukihane.feather@gmail.com>
Sat, 20 Aug 2011 18:57:30 +0000 (03:57 +0900)
committeryukihane <yukihane.feather@gmail.com>
Sat, 20 Aug 2011 18:57:30 +0000 (03:57 +0900)
frontend/nbproject/project.properties
frontend/src/saccubus/converter/Converter.java

index 59fbcbb..c28c3ac 100644 (file)
@@ -39,7 +39,8 @@ javac.classpath=\
     ${libs.Commons-Collections.classpath}:\\r
     ${libs.toplink.classpath}:\\r
     ${libs.H2_DB.classpath}:\\r
-    ${libs.Commons-CLI.classpath}\r
+    ${libs.Commons-CLI.classpath}:\\r
+    ${libs.HttpComponents.classpath}\r
 # Space-separated list of extra javac options\r
 javac.compilerargs=\r
 javac.deprecation=true\r
@@ -89,7 +90,6 @@ run.classpath=\
     ${build.classes.dir}:\\r
     ${libs.Rome.classpath}:\\r
     ${libs.groovy-all.classpath}:\\r
-    ${libs.HttpComponents.classpath}:\\r
     ${libs.NekoHtml.classpath}\r
 # Space-separated list of JVM arguments used when running the project\r
 # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value\r
index 2d950e1..8050731 100644 (file)
@@ -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<Boolean> {
      * @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 {