Skip to content

Commit

Permalink
Generated Jar, tested and working (we hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoung141 committed Nov 22, 2016
1 parent 6e80aed commit 653a224
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@


# Package Files #
*.jar
lib/*.jar
temp.jar
*.war
*.ear

Expand Down
Binary file added CurriculumScraper-v1.0.1.jar
Binary file not shown.
22 changes: 20 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,24 @@
<property name="projectPath" value="edu/ucsb/cs56/projects/scrapers/ucsb-curriculum" />
<property name="javadocDest" value="${webRoot}/cs56/cs56-scrapers-ucsb-curriculum/javadoc" />
<property name="javadocURL" value="${webBaseUrl}cs56/cs56-scrapers-ucsb-curriculum/javadoc" />
<property name="jar.file" value="SearchGui_Curriculum.jar"/>
<property name="jar.file" value="CurriculumScraper-v1.0.1.jar"/>



<path id="project.class.path">
<pathelement location="build" />
<pathelement location="lib/junit-4.8.2.jar" />
</path>

<pathconvert property="mf.classpath" pathsep=" ">
<path refid="project.class.path"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>

<target name="-check-ssl-file" unless="file.exists">
<available property="file.exists" file="jssecacerts" />
Expand All @@ -60,11 +70,19 @@

<target name="golderJar" depends="compile" description="create a jar">
<mkdir dir="build/jar"/>
<jar destfile="${jar.file}" basedir="build">
<jar destfile="temp.jar" basedir="build">
<manifest>
<attribute name="Main-Class" value="edu.ucsb.cs56.projects.scrapers.ucsb_curriculum.SearchGui_Curriculum"/>
</manifest>
</jar>
<jar destfile="${jar.file}" basedir="build" filesetmanifest="skip">
<zipgroupfileset dir="build" includes="*.jar"/>
<zipgroupfileset dir="lib" includes="*.jar"/>
<manifest>
<attribute name="Class-Path" value="${mf.classpath}"/>
<attribute name="Main-Class" value="edu.ucsb.cs56.projects.scrapers.ucsb_curriculum.SearchGui_Curriculum"/>
</manifest>
</jar>
</target>

<target name="run" depends = "compile,setup" description="run the gui">
Expand Down

0 comments on commit 653a224

Please sign in to comment.