FaqAntJunitJar

(Difference between revisions)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
__NOTOC__
 
__NOTOC__
__NOTOC__
===I am using an optional task such as FTP and it says it cannot create a task definition, and to check my classpath. What did I do wrong?===
===I am using an optional task such as FTP and it says it cannot create a task definition, and to check my classpath. What did I do wrong?===
Line 10: Line 9:
manual.
manual.
-
Ant 1.7.0 and later, bundled in recent versions of NetBeans, no longer requires <tt>junit.jar</tt> to be in Ant's own classpath to run <tt><junit></tt>, but the JAR must at least be in the <tt><classpath></tt> passed to the task.
+
Recent versions of Ant no longer require <tt>junit.jar</tt> to be in Ant's own classpath to run <tt><junit></tt>, but the JAR must at least be in the <tt><classpath></tt> passed to the task.
----
----
-
Applies to: NetBeans 4.0 through 6.7
+
Applies to: NetBeans 4.0 and later

Current revision as of 21:55, 2 December 2009

I am using an optional task such as FTP and it says it cannot create a task definition, and to check my classpath. What did I do wrong?

Check the online help and the Ant manual. You need to download ftp.jar (or whatever) and edit Additional Classpath in Ant settings in the Options dialog to include it. This applies to all tasks in ant-*.jar which need some additional library, as listed in the Ant online manual.

Recent versions of Ant no longer require junit.jar to be in Ant's own classpath to run <junit>, but the JAR must at least be in the <classpath> passed to the task.


Applies to: NetBeans 4.0 and later

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo