Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException on running unit-test #4

Open
Nico-Amplexor opened this issue Jul 13, 2023 · 1 comment
Open

java.io.IOException on running unit-test #4

Nico-Amplexor opened this issue Jul 13, 2023 · 1 comment

Comments

@Nico-Amplexor
Copy link

Hello,

I tried to run following commande line :
cd /mnt/c/projets/AAA - Test/fox.jason.unit-test/dita-ot-4.1/bin

./dita -f unit-test -o "/mnt/c/temp/unit-test" -i "/mnt/c/PROJETS/AAA - Test/fox.jason.unit-test/dita-ot-4.1/plugins/fox.jason.unit-test/sample"

test-results.html is generated but I have the following error message inside :
The following error occurred while executing this line: /tmp/temp20230713121509266/unit-test/fixtures/org.dita.pdf2/fixture.xml:20: Execute failed: java.io.IOException: Cannot run program "ant" (in directory "/tmp/temp20230713121509266/unit-test/fixtures/org.dita.pdf2"): error=2, No such file or directory

See test-results.zip

Thanks for your help.

Regards,
Nicolas

@jason-fox
Copy link
Owner

You will need an available installation of ANT run the test locally - usually you have done this when installing DITA-OT:

apt-get update
apt-get install -y --no-install-recommends ant

Alternatively just use the Docker Image defined for the CI task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants