Skip to content
Browse files

init project setup

  • Loading branch information...
0 parents commit 0a31ad718883ef0314de6dc8c6c2c9699eadfdae @jboner jboner committed Feb 16, 2009
17 .gitignore
@@ -0,0 +1,17 @@
+*.*~
+*#
+*.iml
+*.ipr
+*.iws
+etags
+TAGS
+target
+out
+akka.conf
+semantic.cache
+akka.log
+~
+tm*.log
+tm*.lck
+tm.out
+*.tm.epoch
4 akka.sublime-project
@@ -0,0 +1,4 @@
+<!-- Documentation is available at http://www.sublimetext.com/docs/projects -->
+<project>
+ <mount dir="." direxclude=".svn"/>
+</project>
108 api-java/pom.xml
@@ -0,0 +1,108 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <packaging>jar</packaging>
+ <parent>
+ <groupId>${akka.groupId}</groupId>
+ <artifactId>akka</artifactId>
+ <version>${akka.version}</version>
+ </parent>
+
+ <name>Akka Java API</name>
+ <artifactId>api-java</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.scalablesolutions.akka</groupId>
+ <artifactId>kernel</artifactId>
+ <version>${akka.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.7</version>
+ <classifier>jdk15</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock</artifactId>
+ <version>2.4.0</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <sourceDirectory>src/main</sourceDirectory>
+ <testSourceDirectory>src/test/java</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <suiteXmlFiles>
+ <suiteXmlFile>testng.xml</suiteXmlFile>
+ </suiteXmlFiles>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>derby.log</include>
+ <include>gps_db</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+
+ <testResources>
+ <testResource>
+ <filtering>false</filtering>
+ <directory>src/test/resources</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </testResource>
+ </testResources>
+ </build>
+ <reporting>
+ <plugins></plugins>
+ </reporting>
+</project>
16 api-java/testng.xml
@@ -0,0 +1,16 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+
+<suite name="Tests for Akka Java API module" verbose="1">
+ <test name="core">
+ <groups>
+ <run>
+ <include name="functional"/>
+ <include name="unit"/>
+ <exclude name="broken"/>
+ </run>
+ </groups>
+ <packages>
+ <package name="com.scalablesolutions.api.*" />
+ </packages>
+ </test>
+</suite>
14 config/akka-default.conf
@@ -0,0 +1,14 @@
+<log>
+ filename = "./akka.log"
+ roll = "daily" # Options: never, hourly, daily, sunday/monday/...
+ level = "warning" # Options: fatal, critical, error, warning, info, debug, trace
+ console = on
+ # syslog_host = ""
+ # syslog_server_name = ""
+
+# <kernel>
+# node = "com.scalablesolutions.akka.kernel"
+# level = "debug"
+# </facade>
+</log>
+
1 config/akka.conf.template
@@ -0,0 +1 @@
+include "akka-default.conf"
44 config/scheduler.properties
@@ -0,0 +1,44 @@
+#============================================================================
+# Configure Main Scheduler Properties
+#============================================================================
+
+org.quartz.scheduler.instanceName = AKKA_SCHEDULER
+org.quartz.scheduler.instanceId = AUTO
+
+#============================================================================
+# Configure ThreadPool
+#============================================================================
+
+org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
+org.quartz.threadPool.threadCount = 3
+org.quartz.threadPool.threadPriority = 5
+
+#============================================================================
+# Configure JobStore
+#============================================================================
+
+org.quartz.jobStore.misfireThreshold = 60000
+org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
+
+#org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
+#org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
+#org.quartz.jobStore.useProperties = false
+#org.quartz.jobStore.dataSource = myDS
+#org.quartz.jobStore.tablePrefix = QRTZ_
+#org.quartz.jobStore.isClustered = false
+
+#============================================================================
+# Configure Datasources
+#============================================================================
+
+#org.quartz.dataSource.myDS.driver = org.postgresql.Driver
+#org.quartz.dataSource.myDS.URL = jdbc:postgresql://localhost/dev
+#org.quartz.dataSource.myDS.user = jhouse
+#org.quartz.dataSource.myDS.password =
+#org.quartz.dataSource.myDS.maxConnections = 5
+
+#============================================================================
+# Configure Plugins
+#============================================================================
+
+#org.quartz.plugin.triggHistory.class = org.quartz.plugins.history.LoggingJobHistoryPlugin
6 kernel/Makefile
@@ -0,0 +1,6 @@
+# For Unix:
+# mvn -o <target> |sed -e s/\\[WARNING\\][[:space:]]//g |grep -v "Finished at"
+
+install:
+ mvn -o scala:compile |sed -e 's/\[INFO\] //g' |sed -e 's/\[WARNING\] //g' |grep -v "Finished at" |grep -v "Total time"
+
234 kernel/pom.xml
@@ -0,0 +1,234 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>kernel</artifactId>
+
+ <name>Akka Kernel Module</name>
+
+ <parent>
+ <groupId>${akka.groupId}</groupId>
+ <artifactId>akka</artifactId>
+ <version>${akka.version}</version>
+ </parent>
+
+ <repositories>
+ <repository>
+ <id>repo1.maven</id>
+ <name>Maven Main Repository</name>
+ <url>http://repo1.maven.org/maven2</url>
+ </repository>
+ <repository>
+ <id>scala-tools-snapshots</id>
+ <name>Scala-Tools Maven2 Snapshot Repository</name>
+ <url>http://scala-tools.org/repo-snapshots</url>
+ </repository>
+ <repository>
+ <id>scala-tools</id>
+ <name>Scala-Tools Maven2 Repository</name>
+ <url>http://scala-tools.org/repo-releases</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>scala-tools.org</id>
+ <name>Scala-Tools Maven2 Repository</name>
+ <url>http://scala-tools.org/repo-releases</url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.scala-lang</groupId>
+ <artifactId>scala-library</artifactId>
+ <version>${scala.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>scala-otp-behavior</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>scala-otp-component</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>scala-otp-util-java</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>net.lag</groupId>
+ <artifactId>configgy</artifactId>
+ <version>1.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.specs</groupId>
+ <artifactId>specs</artifactId>
+ <version>1.4.3</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.scalacheck</groupId>
+ <artifactId>scalacheck</artifactId>
+ <version>1.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <sourceDirectory>src/main/scala</sourceDirectory>
+ <testSourceDirectory>src/test/scala</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>maven-scala-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <args>
+ <arg>-target:jvm-1.5</arg>
+ <arg>-unchecked</arg>
+ </args>
+ <scalaVersion>${scala.version}</scalaVersion>
+ <vscaladocVersion>1.0</vscaladocVersion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <suiteXmlFiles>
+ <suiteXmlFile>testng.xml</suiteXmlFile>
+ </suiteXmlFiles>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <configuration>
+ <contextPath>/</contextPath>
+ <scanIntervalSeconds>5</scanIntervalSeconds>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>net.sf.alchim</groupId>
+ <artifactId>yuicompressor-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compress</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <nosuffix>true</nosuffix>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <buildcommands>
+ <buildcommand>
+ ch.epfl.lamp.sdt.core.scalabuilder
+ </buildcommand>
+ </buildcommands>
+ <additionalProjectnatures>
+ <projectnature>
+ ch.epfl.lamp.sdt.core.scalanature
+ </projectnature>
+ </additionalProjectnatures>
+ <classpathContainers>
+ <classpathContainer>
+ org.eclipse.jdt.launching.JRE_CONTAINER
+ </classpathContainer>
+ <classpathContainer>
+ ch.epfl.lamp.sdt.launching.SCALA_CONTAINER
+ </classpathContainer>
+ </classpathContainers>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <formats>
+ <format>xml</format>
+ <format>html</format>
+ </formats>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>derby.log</include>
+ <include>gps_db</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/scala</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.scala</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <filtering>false</filtering>
+ <directory>src/test/resources</directory>
+ </testResource>
+ <testResource>
+ <filtering>false</filtering>
+ <directory>src/test/scala</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.scala</exclude>
+ </excludes>
+ </testResource>
+ </testResources>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>maven-scala-plugin</artifactId>
+ <configuration>
+ <vscaladocVersion>1.1</vscaladocVersion>
+ <scalaVersion>${scala.version}</scalaVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
6 kernel/src/main/scala/Kernel.scala
@@ -0,0 +1,6 @@
+/**
+ * Copyright (C) 2009 Scalable Solutions.
+ */
+
+package com.scalablesolutions.akka.kernel
+
33 pom.xml
@@ -0,0 +1,33 @@
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${akka.groupId}</groupId>
+ <artifactId>akka</artifactId>
+ <name>Akka Actor Kernel</name>
+
+ <version>${akka.version}</version>
+ <inceptionYear>2009</inceptionYear>
+ <packaging>pom</packaging>
+
+ <properties>
+ <akka.version>0.1-SNAPSHOT</akka.version>
+ <akka.groupId>com.scalablesolutions.akka</akka.groupId>
+ <scala.version>2.7.3</scala.version>
+ </properties>
+
+
+ <!-- scm>
+ <connection>scm:svn:http://ec2-67-202-34-240.compute-1.amazonaws.com/svn/gps/trunk</connection>
+ <developerConnection>scm:svn:http://ec2-67-202-34-240.compute-1.amazonaws.com/svn/gps/trunk</developerConnection>
+ <url>http://ec2-67-202-34-240.compute-1.amazonaws.com/svn/gps/trunk</url>
+ </scm -->
+
+ <modules>
+ <module>kernel</module>
+ <module>api-scala</module>
+ </modules>
+
+</project>
2 scripts/compile_etags_file.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+sctags.sh -E -R . -f TAGS
11 scripts/convert_tabs_to_spaces.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+echo "converting all tabs to 2 spaces"
+find . -type f -name '*.html' -exec sed -i 's/[\t]/ /' {} \;
+
+#find . -name "*.html" |while read line
+#do
+# expand -i $line > $line.new
+# mv -f $line.new $line
+#done
+
+exit 0
2 scripts/dos_to_unix.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+find . -name *.scala -exec dos2unix {} \;
5 scripts/remove_trailing_whitespace.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+echo "removing all trailing whitespace from all *.scala, *.html and *.xml files"
+# find . -type f -name '*.scala' -exec sed -i 's/[ \t]*$//' {} \;
+
+

0 comments on commit 0a31ad7

Please sign in to comment.
Something went wrong with that request. Please try again.