-
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.
Setup folder structure and eclipse project
- Loading branch information
Showing
20 changed files
with
166 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="source"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
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 @@ | ||
bin/ |
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>CS290B-HW2</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
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,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
|
||
<!-- OLD BUILD.XML --> | ||
|
||
|
||
<project name="HW1-RMI-ComputeServer" basedir="."> | ||
<description>Builds, tests, and runs the project 290-HW1-New.</description> | ||
|
||
<property name="src" location="source" /> | ||
<property name="build" location="build/classes" /> | ||
<property name="dist" location="dist" /> | ||
|
||
<!-- codebase properties --> | ||
<property name="client_file_codebase" location="/cs/student/kowshik/public_html/CS290B/HW1/" /> | ||
<property name="client_web_codebase" value="http://www.cs.ucsb.edu/~kowshik/CS290B/HW1/" /> | ||
|
||
<target name="clean" description="clean up"> | ||
<!-- Delete the ${build} and ${dist} directory trees --> | ||
<delete dir="${client_file_codebase}/tasks" /> | ||
<delete dir="${build}" /> | ||
<delete dir="${dist}" /> | ||
</target> | ||
|
||
|
||
<target name="compile" description="compile the source"> | ||
<!-- Create the build directory structure used by compile --> | ||
<mkdir dir="${build}" /> | ||
|
||
<!-- Compile the java code from ${src} into ${build} --> | ||
<javac srcdir="${src}" destdir="${build}" /> | ||
</target> | ||
|
||
<target name="dist" depends="compile" description="generate the distribution"> | ||
<!-- Create the distribution directory --> | ||
<mkdir dir="${dist}" /> | ||
|
||
<!-- Make Computer.jar file --> | ||
<jar jarfile="${dist}/computer.jar" basedir="${build}" includes="api/** computer/**" /> | ||
|
||
|
||
<!-- Make Client.jar file --> | ||
<jar jarfile="${dist}/client.jar" basedir="${build}" includes="client/** api/** tasks/**" /> | ||
|
||
</target> | ||
|
||
<target name="javadoc" description="create javadocs"> | ||
<javadoc packagenames="tasks.*,api.*,client.*,computer.*" sourcepath="${src}" destdir="documents/javadoc" /> | ||
</target> | ||
|
||
<target name="runComputer" description="run computer"> | ||
<java classname="computer.ComputerImpl" fork="true"> | ||
<jvmarg value="-Djava.security.policy=policy" /> | ||
<classpath> | ||
<pathelement location="dist/computer.jar" /> | ||
</classpath> | ||
</java> | ||
</target> | ||
|
||
<target name="runMandelbrotSetClient" description="run client"> | ||
<java classname="client.MandelbrotSetClient" fork="true"> | ||
<jvmarg value="-Djava.rmi.server.codebase=${client_web_codebase}" /> | ||
<jvmarg value="-Djava.security.policy=policy" /> | ||
<arg value="localhost" /> | ||
<classpath> | ||
<pathelement location="dist/client.jar" /> | ||
</classpath> | ||
</java> | ||
</target> | ||
|
||
<target name="runEuclideanTspClient" description="run client"> | ||
<java classname="client.EuclideanTspClient" fork="true"> | ||
<jvmarg value="-Djava.rmi.server.codebase=${client_web_codebase}" /> | ||
<jvmarg value="-Djava.security.policy=policy" /> | ||
<arg value="localhost" /> | ||
<classpath> | ||
<pathelement location="dist/client.jar" /> | ||
</classpath> | ||
</java> | ||
</target> | ||
|
||
|
||
</project> |
Empty file.
Empty file.
Empty file.
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,4 @@ | ||
grant { | ||
// Allow everything for now | ||
permission java.security.AllPermission; | ||
}; |
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,5 @@ | ||
package api; | ||
|
||
public interface Result { | ||
|
||
} |
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,5 @@ | ||
package api; | ||
|
||
public interface Space { | ||
|
||
} |
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,5 @@ | ||
package api; | ||
|
||
public interface Task { | ||
|
||
} |
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,5 @@ | ||
package client; | ||
|
||
public class MandelbrotSetClient { | ||
|
||
} |
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,5 @@ | ||
package client; | ||
|
||
public class TspClient { | ||
|
||
} |
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,5 @@ | ||
package system; | ||
|
||
public interface Computer { | ||
|
||
} |
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,5 @@ | ||
package system; | ||
|
||
public interface Computer2Space { | ||
|
||
} |
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,5 @@ | ||
package system; | ||
|
||
public class ComputerImpl { | ||
|
||
} |
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,5 @@ | ||
package system; | ||
|
||
public interface SpaceImpl { | ||
|
||
} |
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,5 @@ | ||
package tasks; | ||
|
||
public class MandelbrotSetTask { | ||
|
||
} |
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,5 @@ | ||
package tasks; | ||
|
||
public class TspTask { | ||
|
||
} |