forked from NMSU-SDev/Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build.xml, now works as a proper ANT file.
- Loading branch information
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
<project name="WebServer" default="jacocoreport" xmlns:jacoco="antlib:org.jacoco.ant"> | ||
<!-- Ant build file for SimpleWebServer. Contains build, run, and clean; | ||
should run automatically when compiled with Ant. | ||
--> | ||
|
||
<!-- Make sure to make a build, run, and clean; modifying prebuilt one should work --> | ||
<project name="WebServer" default="run"> | ||
<property name="src" location="src/"/> | ||
<property name="build" location="bin/"/> | ||
|
||
<!-- Delete class files directory --> | ||
<target name="clean"> | ||
<delete dir="${build}"/> | ||
</target> | ||
|
||
<!-- Compile files to bin folder --> | ||
<target name="build"> | ||
<mkdir dir="${build}"/> | ||
<javac srcdir="${src}" includeantruntime="true" destdir="${build}"/> | ||
</target> | ||
|
||
<target name="cleanbuild" depends="clean,build"/> | ||
|
||
<target name="run" depends="clean,build,newrun"/> | ||
|
||
<!-- Runs compiled files --> | ||
<target name="newrun"> | ||
<java classname="edu.nmsu.cs.webserver.WebServer" classpath="${build}" fork="true" dir="${basedir}"> | ||
<arg value="8080"/> | ||
</java> | ||
</target> | ||
|
||
</project> |