ANT build.xml won't include the XML file into the .jar file

18 views
Skip to first unread message

SeleniumMember

unread,
Sep 21, 2015, 9:30:51 AM9/21/15
to Selenium Users
I am running the Selenium WebDriver tests using ANT build.xml file. Before the tests run, ANT does the following..

cleans the directories
makes new directories etc

Then builds all the creates a .jar file with all the Source files. I am expecting to see the .XML file in the .Jar but its not included. I need these XML file as these are for my data-driven tests. I have tried multiple things, I have exhausted my tries and still can't figure out. I am in a time crunch now as my Sprint is ending tomorrow. My directory structure looks like the following...

C:\Automation-Framework\src\com\via\selenium\tests\oms
firsttest.java
secondtest.java

firsttest.xml
secondtest.java

Does anyone know if I have to add any extra task so that .XML file will be included in the .Jar file ? I can post the build.xml file, if you need.

Thanks

Afzal

unread,
Sep 21, 2015, 9:16:12 PM9/21/15
to Selenium Users

SeleniumMember

unread,
Sep 22, 2015, 12:04:12 PM9/22/15
to Selenium Users
Thanks for the site info. I had already looked at last week. I appreciate the info. :)

I resolved the issue after I posted the question in here. In the ANT "Compile" task, I was compiling the Source library directory. I changed it to entire Source Directory, and it solved my issue.

Thanks
Reply all
Reply to author
Forward
0 new messages