引数
-d
をつけるといろいろ出力されるので、エラーが特定しやすいかもしれない。
コンソールに
下記のようなエラー出力が
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
こんな感じで出力される
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:1943)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
... 6 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:1943)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
このエラーは、
eclipseのバージョン
Version: 3.3.0
Build id: I20061214-1445
で、antタスクのftpを動作させると起きます。
解消方法は、
jakarta commons の
net ネットワーク処理
ORO 正規表現ライブラリ
の二つのjarを含めると、動作します。
0 コメント:
コメントを投稿