HeadlinePuller can import all news articles for Fortune 50 within a date range from Yahoo Finance historical data, inserting the headline text into the headlines table of database cs6601p3 on woodyfolsom.net:3306.

Limited to 25 headline per day (with many reptitions) per Yahoo Finance REST functionality.
This commit is contained in:
Woody Folsom
2012-04-15 10:18:02 -04:00
parent d700d97124
commit 027adff2dd
40 changed files with 322 additions and 39 deletions

103
build.xml Normal file
View File

@@ -0,0 +1,103 @@
<project name="CS6601_P3" default="dist" basedir=".">
<description>
simple example build file
</description>
<!-- set global properties for this build -->
<property name="build" location="classes" />
<property name="dist" location="dist" />
<property name="docs" location="docs" />
<property name="lib" location="lib" />
<property name="project.name" value="CS6601_P3" />
<property name="res" location="res" />
<property name="src" location="src" />
<property name="test" location="test" />
<path id="build.classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="classpath.test">
<path refid="build.classpath" />
<pathelement location="lib/junit-4.10.jar" />
<pathelement location="${build}" />
</path>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<target name="compile" depends="copy-resources">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" classpathref="build.classpath" debug="true" source="1.6" target="1.6"/>
</target>
<target name="compile-test" depends="compile">
<javac srcdir="${test}" destdir="${build}" debug="true">
<classpath refid="classpath.test"/>
</javac>
</target>
<target name="copy-resources" depends="init" >
<copy todir="${dist}">
<fileset dir="${res}">
<include name="**/*" />
</fileset>
</copy>
<copy todir="${dist}/lib">
<fileset dir="${lib}">
<include name="**/*" />
</fileset>
</copy>
</target>
<target name="dist" depends="copy-resources, compile"
description="generate the distribution">
<jar jarfile="${dist}/${project.name}.jar">
<fileset dir="${build}" excludes="**/*Test.class" />
<manifest>
<attribute name="Main-Class" value="net.woodyfolsom.cs6601.p3.HeadlinePuller" />
<attribute name="Class-Path" value="lib/aopalliance.jar lib/org.springframework.aspects-3.1.1.RELEASE.jar
lib/aspectj-1.6.12.jar lib/org.springframework.beans-3.1.1.RELEASE.jar
lib/aspectjweaver-1.6.8.jar lib/org.springframework.context.support-3.1.1.RELEASE.jar
lib/commons-logging-1.1.1.jar lib/org.springframework.context-3.1.1.RELEASE.jar
lib/junit-4.10.jar lib/org.springframework.core-3.1.1.RELEASE.jar
lib/log4j-1.2.16.jar lib/org.springframework.expression-3.1.1.RELEASE.jar
lib/mysql-connector-java-5.1.18-bin.jar lib/org.springframework.jdbc-3.1.1.RELEASE.jar
lib/org.springframework.aop-3.1.1.RELEASE.jar lib/org.springframework.transaction-3.1.1.RELEASE.jar
lib/org.springframework.asm-3.1.1.RELEASE.jar lib/spring-data-jdbc-core-1.0.0.RC1.jar"/>
</manifest>
</jar>
</target>
<!-- Creates Javadoc -->
<target name="docs" depends="compile">
<javadoc packagenames="src" sourcepath="${src}" destdir="${docs}">
<!-- Define which files / directory should get included, we include all -->
<fileset dir="${src}">
<include name="**" />
</fileset>
</javadoc>
</target>
<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
</target>
<target name="test" depends="compile-test">
<junit haltonfailure="true">
<classpath refid="classpath.test" />
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="${build}" includes="**/*Test.class" />
</batchtest>
</junit>
</target>
</project>