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.
- Loading branch information
Ziad Arafat
committed
Sep 28, 2020
1 parent
e941760
commit 1f6c9cd
Showing
8 changed files
with
103 additions
and
37 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,24 +1,26 @@ | ||
<project name="Hello World Project" default="jar"> | ||
<target name="compile"> | ||
<mkdir dir="build/classes"/> | ||
<javac srcdir="src" destdir="build/classes"/> | ||
<project name="Hello World Project" default="run" basedir="."> | ||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
|
||
<target name="compile" depends="clean"> | ||
<mkdir dir="bin/classes"/> | ||
<javac srcdir="src" destdir="bin/classes"/> | ||
</target> | ||
|
||
<target name="jar" depends="compile"> | ||
<mkdir dir="build/jar"/> | ||
<jar destfile="build/jar/HelloWorld.jar" basedir="build/classes"> | ||
<mkdir dir="bin/jar"/> | ||
<jar destfile="bin/jar/SimpleWebServer.jar" basedir="bin/classes"> | ||
<manifest> | ||
<attribute name="Main-Class" value="edu.nmsu.cs.webserver.WebServer"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="run" depends="jar"> | ||
<java jar="build/jar/HelloWorld.jar" fork="true"/> | ||
<java jar="bin/jar/SimpleWebServer.jar" fork="true" dir="./www/"/> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="build"/> | ||
</target> | ||
|
||
|
||
</project> |
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<project name="SimpleWebServer" default="cleanbuild" basedir=".."> | ||
<description> | ||
Buildfile for the SimpleWebServer. | ||
</description> | ||
<property name="src" location="src/" /> | ||
<property name="build" location="bin/" /> | ||
|
||
<target name="clean" description="delete class files"> | ||
<delete dir="${build}"/> | ||
</target> | ||
|
||
<target name="build" description="compiles java files to /bin"> | ||
<mkdir dir="${build}"/> | ||
<javac srcdir="${src}" destdir="${build}"/> | ||
</target> | ||
|
||
<target name="cleanbuild" depends="clean,build"/> | ||
|
||
<target name="run" description="launches SimpleWebServer on port 8080"> | ||
<java classname="edu.nmsu.cs.webserver.WebServer" classpath="${build}" fork="true" > | ||
<arg value="8080"/> | ||
</java> | ||
|
||
</target> | ||
</project> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 +1,46 @@ | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<p>Hello world, the current date is: <cs371date>. The server is: <cs371server>.</p> | ||
</body> | ||
</html> | ||
<head> | ||
<title>Welcome to my server</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Hello world, the current date is: <cs371date>. The server is: <cs371server>.</h1> | ||
|
||
<hr> | ||
<p>Here are some GIFS</p> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"> | ||
<img src="dogeDance.gif" alt="Dancing Doge"><br> | ||
|
||
<p>This one is a PNG</p> | ||
<img src="cheemsBonk.png" alt="Dancing Doge"> | ||
|
||
<p>This one is a JPG</p> | ||
<img src="cheemsHello.jpg" alt="Dancing Doge"> | ||
</body> | ||
</html> | ||
|