- Java SE Development Kit 8 or higher
- Java SE Runtime Environment 8 or higher
- Apache Ant
- Preferably MacOS (where it has been tested fully).
- Download files to your local machine.
- In the root directory of the project, enter
ant clean compile jar
in your terminal of choice to create a compiled jar file. - To run, type
java -jar build/jar/RssFeedActivity.jar
if you are in the project root. - You can use the included
companies.xml
file in the root project directory as your input, or create your own. Just make sure the XML file is well-formed and complies with the input file requirements.
- Type
ant test
in your terminal (making sure you're in the root project directory) to run the included JUnit tests.
- The input file must be a well-formed XML file.
- The root element should be
<list>
. - Within
<list>
, you can have multiple<company name="">
elements with a string name attribute. - Furthermore, each
<company>
elements can have multiple<url>
elements with valid URLs.
- The company RSS feed is RSS version 2.0 as stated in the
<rss>
element. - Input of company and URL key value pairs is from an XML document meeting the above mentioned requirements.