Skip to content

Commit

Permalink
Setup folder structure and eclipse project
Browse files Browse the repository at this point in the history
  • Loading branch information
kowshik committed Oct 9, 2010
1 parent 7f0f82e commit 53e1ecb
Show file tree
Hide file tree
Showing 20 changed files with 166 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .classpath
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>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
17 changes: 17 additions & 0 deletions .project
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>
1 change: 0 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ Authors : Kowshik Prakasam, Manasa Chandrasekhar

Homework Assignment 2 for course CS 290 B :
http://www.cs.ucsb.edu/~cappello/290b-2010-Fall/homework/2/

83 changes: 83 additions & 0 deletions build.xml
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 added documents/analysis.html
Empty file.
Empty file added documents/paper_summary.pdf
Empty file.
Empty file added documents/readme.html
Empty file.
4 changes: 4 additions & 0 deletions policy/policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
grant {
// Allow everything for now
permission java.security.AllPermission;
};
5 changes: 5 additions & 0 deletions source/api/Result.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package api;

public interface Result {

}
5 changes: 5 additions & 0 deletions source/api/Space.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package api;

public interface Space {

}
5 changes: 5 additions & 0 deletions source/api/Task.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package api;

public interface Task {

}
5 changes: 5 additions & 0 deletions source/client/MandelbrotSetClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package client;

public class MandelbrotSetClient {

}
5 changes: 5 additions & 0 deletions source/client/TspClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package client;

public class TspClient {

}
5 changes: 5 additions & 0 deletions source/system/Computer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package system;

public interface Computer {

}
5 changes: 5 additions & 0 deletions source/system/Computer2Space.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package system;

public interface Computer2Space {

}
5 changes: 5 additions & 0 deletions source/system/ComputerImpl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package system;

public class ComputerImpl {

}
5 changes: 5 additions & 0 deletions source/system/SpaceImpl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package system;

public interface SpaceImpl {

}
5 changes: 5 additions & 0 deletions source/tasks/MandelbrotSetTask.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package tasks;

public class MandelbrotSetTask {

}
5 changes: 5 additions & 0 deletions source/tasks/TspTask.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package tasks;

public class TspTask {

}

0 comments on commit 53e1ecb

Please sign in to comment.