DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10664>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10664 wrapper script fails on cygwin if ANT_HOME is a Windows path [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Additional Comments From [EMAIL PROTECTED] 2002-09-10 23:32 ------- Script still blows chunks under Cygwin -- can't find the optional.jar file Using the updated script from the FAQ, ant -verbose gives the following when trying to execute a junit test. Observe that the classpath contains optional.jar and junit.jar (first line is echo of the final command before the script executes it.) 511: ant -verbose /cygdrive/c/j2sdk1.4.0_01/bin/java -classpath d:\Apache\jakarta-ant-1.5\lib\xml- apis.jar;d:\Apache\jakarta-ant-1.5\lib\xercesImpl.jar;d:\Apache\jakarta-ant-1.5\ lib\optional.jar;d:\Apache\jakarta-ant-1.5\lib\ant.jar;c:\j2sdk1.4.0_01\lib\tool s.jar -Dant.home=d:\Apache\jakarta-ant-1.5 -Dcygwin.user.home=D:\Cygwin\home\crm artin org.apache.tools.ant.Main -verbose Apache Ant version 1.5 compiled on July 9 2002 Buildfile: build.xml Detected Java version: 1.4 in: c:\j2sdk1.4.0_01\jre Detected OS: Windows 2000 parsing buildfile build.xml with URI = file:D:/Cygwin/home/crmartin/Projects/Cal lgen/build.xml Project base dir set to: D:\Cygwin\home\crmartin\Projects\Callgen Build sequence for target `tested' is [prepare, compile, tests, tested] Complete build sequence is [prepare, compile, tests, tested, clean] prepare: compile: [javac] sip\SIPMsg.java added as D:\Cygwin\home\crmartin\Projects\Callgen\co mpiled\sip\SIPMsg.class doesn't exist. [javac] Compiling 1 source file to D:\Cygwin\home\crmartin\Projects\Callgen\ compiled [javac] Using modern compiler [javac] Compilation arguments: [javac] '-deprecation' [javac] '-d' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\compiled' [javac] '-classpath' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\compiled;D:\Cygwin\home\cr martin\lib\junit.jar;D:\Cygwin\home\crmartin\lib\log4j.jar;D:\Cygwin\home\crmart in\lib\or124.jar;D:\Apache\jakarta-ant-1.5\lib\xml-apis.jar;D:\Apache\jakarta-an t-1.5\lib\xercesImpl.jar;D:\Apache\jakarta-ant-1.5\lib\optional.jar;D:\Apache\ja karta-ant-1.5\lib\ant.jar;C:\j2sdk1.4.0_01\lib\tools.jar' [javac] '-sourcepath' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\src' [javac] '-target' [javac] '1.4' [javac] '-g' [javac] '-source' [javac] '1.4' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] D:\Cygwin\home\crmartin\Projects\Callgen\src\sip\SIPMsg.java [javac] sip\SIPMsgTest.java added as D:\Cygwin\home\crmartin\Projects\Callge n\compiled\sip\SIPMsgTest.class doesn't exist. [javac] Compiling 1 source file to D:\Cygwin\home\crmartin\Projects\Callgen\ compiled [javac] Using modern compiler [javac] Compilation arguments: [javac] '-deprecation' [javac] '-d' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\compiled' [javac] '-classpath' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\compiled;D:\Cygwin\home\cr martin\lib\junit.jar;D:\Cygwin\home\crmartin\lib\log4j.jar;D:\Cygwin\home\crmart in\lib\or124.jar;D:\Apache\jakarta-ant-1.5\lib\xml-apis.jar;D:\Apache\jakarta-an t-1.5\lib\xercesImpl.jar;D:\Apache\jakarta-ant-1.5\lib\optional.jar;D:\Apache\ja karta-ant-1.5\lib\ant.jar;C:\j2sdk1.4.0_01\lib\tools.jar' [javac] '-sourcepath' [javac] 'D:\Cygwin\home\crmartin\Projects\Callgen\test' [javac] '-target' [javac] '1.4' [javac] '-g' [javac] '-source' [javac] '1.4' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] D:\Cygwin\home\crmartin\Projects\Callgen\test\sip\SIPMsgTest.jav a tests: BUILD FAILED file:D:/Cygwin/home/crmartin/Projects/Callgen/build.xml:88: Could not create tas k or type of type: junit. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'junit'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using <taskdef>. Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownEleme nt.java:328) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:24 4) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav a:115) at org.apache.tools.ant.Task.perform(Task.java:316) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 3 seconds -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
