From 0a31ad718883ef0314de6dc8c6c2c9699eadfdae Mon Sep 17 00:00:00 2001 From: Jonas Boner Date: Mon, 16 Feb 2009 13:53:10 +0100 Subject: [PATCH] init project setup --- .gitignore | 17 ++ akka.sublime-project | 4 + api-java/pom.xml | 108 ++++++++++++ api-java/testng.xml | 16 ++ config/akka-default.conf | 14 ++ config/akka.conf.template | 1 + config/scheduler.properties | 44 +++++ kernel/Makefile | 6 + kernel/pom.xml | 234 ++++++++++++++++++++++++++ kernel/src/main/scala/Kernel.scala | 6 + pom.xml | 33 ++++ scripts/compile_etags_file.sh | 2 + scripts/convert_tabs_to_spaces.sh | 11 ++ scripts/dos_to_unix.sh | 2 + scripts/remove_trailing_whitespace.sh | 5 + 15 files changed, 503 insertions(+) create mode 100755 .gitignore create mode 100755 akka.sublime-project create mode 100755 api-java/pom.xml create mode 100755 api-java/testng.xml create mode 100755 config/akka-default.conf create mode 100755 config/akka.conf.template create mode 100755 config/scheduler.properties create mode 100755 kernel/Makefile create mode 100755 kernel/pom.xml create mode 100755 kernel/src/main/scala/Kernel.scala create mode 100755 pom.xml create mode 100755 scripts/compile_etags_file.sh create mode 100755 scripts/convert_tabs_to_spaces.sh create mode 100755 scripts/dos_to_unix.sh create mode 100755 scripts/remove_trailing_whitespace.sh diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000000..164fc7d119 --- /dev/null +++ b/.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 diff --git a/akka.sublime-project b/akka.sublime-project new file mode 100755 index 0000000000..0aa4dace60 --- /dev/null +++ b/akka.sublime-project @@ -0,0 +1,4 @@ + + + + diff --git a/api-java/pom.xml b/api-java/pom.xml new file mode 100755 index 0000000000..edb6fc4f35 --- /dev/null +++ b/api-java/pom.xml @@ -0,0 +1,108 @@ + + 4.0.0 + + jar + + ${akka.groupId} + akka + ${akka.version} + + + Akka Java API + api-java + + + + com.scalablesolutions.akka + kernel + ${akka.version} + + + org.testng + testng + 5.7 + jdk15 + + + org.jmock + jmock + 2.4.0 + test + + + + + src/main + src/test/java + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + **/* + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + testng.xml + + + + + maven-clean-plugin + + + + ${basedir} + + derby.log + gps_db + + + + + + + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + + false + src/test/resources + + ** + + + **/*.java + + + + + + + + diff --git a/api-java/testng.xml b/api-java/testng.xml new file mode 100755 index 0000000000..8133747c6f --- /dev/null +++ b/api-java/testng.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/config/akka-default.conf b/config/akka-default.conf new file mode 100755 index 0000000000..cf7d0d56bb --- /dev/null +++ b/config/akka-default.conf @@ -0,0 +1,14 @@ + + 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 = "" + +# +# node = "com.scalablesolutions.akka.kernel" +# level = "debug" +# + + diff --git a/config/akka.conf.template b/config/akka.conf.template new file mode 100755 index 0000000000..734f55ef00 --- /dev/null +++ b/config/akka.conf.template @@ -0,0 +1 @@ +include "akka-default.conf" diff --git a/config/scheduler.properties b/config/scheduler.properties new file mode 100755 index 0000000000..80f602821f --- /dev/null +++ b/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 diff --git a/kernel/Makefile b/kernel/Makefile new file mode 100755 index 0000000000..da4319e300 --- /dev/null +++ b/kernel/Makefile @@ -0,0 +1,6 @@ +# For Unix: +# mvn -o |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" + diff --git a/kernel/pom.xml b/kernel/pom.xml new file mode 100755 index 0000000000..fe5cbb33aa --- /dev/null +++ b/kernel/pom.xml @@ -0,0 +1,234 @@ + + 4.0.0 + + kernel + + Akka Kernel Module + + + ${akka.groupId} + akka + ${akka.version} + + + + + repo1.maven + Maven Main Repository + http://repo1.maven.org/maven2 + + + scala-tools-snapshots + Scala-Tools Maven2 Snapshot Repository + http://scala-tools.org/repo-snapshots + + + scala-tools + Scala-Tools Maven2 Repository + http://scala-tools.org/repo-releases + + + + + + scala-tools.org + Scala-Tools Maven2 Repository + http://scala-tools.org/repo-releases + + + + + + org.scala-lang + scala-library + ${scala.version} + + + org.scala-tools + scala-otp-behavior + 0.1-SNAPSHOT + + + org.scala-tools + scala-otp-component + 0.1-SNAPSHOT + + + org.scala-tools + scala-otp-util-java + 0.1-SNAPSHOT + + + net.lag + configgy + 1.2 + + + + org.specs + specs + 1.4.3 + test + + + org.scalacheck + scalacheck + 1.5 + test + + + + + src/main/scala + src/test/scala + + + org.scala-tools + maven-scala-plugin + + + + compile + testCompile + + + + + + -target:jvm-1.5 + -unchecked + + ${scala.version} + 1.0 + + + + org.apache.maven.plugins + maven-surefire-plugin + + + testng.xml + + + + + org.mortbay.jetty + maven-jetty-plugin + + / + 5 + + + + net.sf.alchim + yuicompressor-maven-plugin + + + + compress + + + + + true + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + ch.epfl.lamp.sdt.core.scalabuilder + + + + + ch.epfl.lamp.sdt.core.scalanature + + + + + org.eclipse.jdt.launching.JRE_CONTAINER + + + ch.epfl.lamp.sdt.launching.SCALA_CONTAINER + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.2 + + + xml + html + + + + + maven-clean-plugin + + + + ${basedir} + + derby.log + gps_db + + + + + + + + + false + src/main/resources + + + false + src/main/scala + + ** + + + **/*.scala + + + + + + false + src/test/resources + + + false + src/test/scala + + ** + + + **/*.scala + + + + + + + + org.scala-tools + maven-scala-plugin + + 1.1 + ${scala.version} + + + + + diff --git a/kernel/src/main/scala/Kernel.scala b/kernel/src/main/scala/Kernel.scala new file mode 100755 index 0000000000..dc1868cbf5 --- /dev/null +++ b/kernel/src/main/scala/Kernel.scala @@ -0,0 +1,6 @@ +/** + * Copyright (C) 2009 Scalable Solutions. + */ + +package com.scalablesolutions.akka.kernel + diff --git a/pom.xml b/pom.xml new file mode 100755 index 0000000000..0c6c343639 --- /dev/null +++ b/pom.xml @@ -0,0 +1,33 @@ + + + + 4.0.0 + ${akka.groupId} + akka + Akka Actor Kernel + + ${akka.version} + 2009 + pom + + + 0.1-SNAPSHOT + com.scalablesolutions.akka + 2.7.3 + + + + + + + kernel + api-scala + + + diff --git a/scripts/compile_etags_file.sh b/scripts/compile_etags_file.sh new file mode 100755 index 0000000000..72c9473f23 --- /dev/null +++ b/scripts/compile_etags_file.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sctags.sh -E -R . -f TAGS diff --git a/scripts/convert_tabs_to_spaces.sh b/scripts/convert_tabs_to_spaces.sh new file mode 100755 index 0000000000..fe0d21940e --- /dev/null +++ b/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 diff --git a/scripts/dos_to_unix.sh b/scripts/dos_to_unix.sh new file mode 100755 index 0000000000..456541ed83 --- /dev/null +++ b/scripts/dos_to_unix.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find . -name *.scala -exec dos2unix {} \; diff --git a/scripts/remove_trailing_whitespace.sh b/scripts/remove_trailing_whitespace.sh new file mode 100755 index 0000000000..7ea7480cf3 --- /dev/null +++ b/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]*$//' {} \; + +