Delete testng.zip after extraction
Michael Haupt
michael.haupt at oracle.com
Tue Jul 14 09:14:24 UTC 2015
Hi Ahmed,
> Am 14.07.2015 um 09:29 schrieb Ahmed Ashour <asashour at yahoo.com>:
> Cloning http://hg.openjdk.java.net/jdk9/dev/ gets very small number of files.
yes. The canonical way to get the full forest is to run get_source.sh (which is among the very small number of files you noticed). Also see the README_builds.html file that was cloned with the first batch for details.
> I cloned http://hg.openjdk.java.net/jdk9/dev/nashorn/ and http://hg.openjdk.java.net/jdk9/dev/jdk/, which where put under the same parent folder.
That should be enough for Nashorn.
On to the issues you reported. I've been able to reproduce some of what you describe in a completely fresh clone of the Nashorn repo.
> 1- javadocnh: fails because of javafx.application.Application not found
While I do get the warning about not being able to fetch the URL, I do not get the error about the javafx class.
> 2- On manually deleting the <javadoc> in build.xml and running the 'test' target, there is: WARNING: TestNG not available
You have this in your log:
get-testng:
[get] Getting: http://testng.org/testng-6.8.zip
[get] To: c:\base\nashorn\test\lib\testng-6.8.zip
[unzip] Expanding: c:\base\nashorn\test\lib\testng-6.8.zip into c:\base\nashorn\test\lib
[move] Moving 1 file to c:\base\nashorn\test\lib
[delete] Deleting directory c:\base\nashorn\test\lib\testng-6.8
... so testng.jar was downloaded and placed successfully. I got the warning as well, by the way. The reason is that the check for testng.jar's presence is done early in the execution of the build.xml targets, before the JAR is downloaded and installed. This is also why the warning goes away in subsequent runs.
Well noted, thanks: https://bugs.openjdk.java.net/browse/JDK-8131142
> 3- Without doing anything, running the same target again, there is java.lang.NoClassDefFoundError: org/testng/reporters/JUnitReportReporter
I cannot reproduce this at all. When I run ant test for a second time after getting the warning above, the tests start running. This does seem to indicate that testng.jar is not there; could you please confirm?
Best,
Michael
--
<http://www.oracle.com/>
Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG, Schiffbauergasse 14 | 14467 Potsdam, Germany
<http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment
More information about the nashorn-dev
mailing list