I recently made a simple modification to HttpUnit (1.5.4) and rebuilt using Ant and the supplied build.xml file. However, when I went to run my test, I found that some classes were missing from the JAR:
RedirectWebRequest and DefaultWebResponse.
I discovered that RedirectWebRequest is in WebClient.java. If I copied this to its own file, the compiler told me I had a duplicate class, but when I removed the RedirectWebRequest.java file, the class did not turn up in the JAR. In addition, I could not find a corresponding .class file.
I have worked around this by compiling manually, and then building the jar using Ant.
Has anyone seen this behaviour before? Can anyone suggest how to get the build process working correctly with Ant. My versions are:
OS: RedHat 9.0 linux
Java Sun j2sdk 1.4.2_03-b02
Ant 1.6.1
HttpUnit 1.5.4
The compile command I ran manually, which worked was:
Hi All,
I recently made a simple modification to HttpUnit (1.5.4) and rebuilt using Ant and the supplied build.xml file. However, when I went to run my test, I found that some classes were missing from the JAR:
RedirectWebRequest and DefaultWebResponse.
I discovered that RedirectWebRequest is in WebClient.java. If I copied this to its own file, the compiler told me I had a duplicate class, but when I removed the RedirectWebRequest.java file, the class did not turn up in the JAR. In addition, I could not find a corresponding .class file.
I have worked around this by compiling manually, and then building the jar using Ant.
Has anyone seen this behaviour before? Can anyone suggest how to get the build process working correctly with Ant. My versions are:
OS: RedHat 9.0 linux
Java Sun j2sdk 1.4.2_03-b02
Ant 1.6.1
HttpUnit 1.5.4
The compile command I ran manually, which worked was:
javac -sourcepath src -d build/classes -classpath jars/js.jar:... **/*.java
All suggestions received with thanks.
Cheers!
Nik.