http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/build.gradle ---------------------------------------------------------------------- diff --git a/wave/build.gradle b/wave/build.gradle deleted file mode 100644 index bffd82e..0000000 --- a/wave/build.gradle +++ /dev/null @@ -1,709 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -//============================================================================= -// Plugins -//============================================================================= -plugins { - id 'java' - id 'application' -} -apply plugin: 'com.google.protobuf' - -//============================================================================= -// Project Level Settings -//============================================================================= -/* Meta Data Info */ -def title = 'Apache Wave Server' -def vendor = 'The Apache Software Foundation' -version = 0.4 -mainClassName = "org.waveprotocol.box.server.ServerMain" -applicationDefaultJvmArgs = [ - "-Xmx1024M", - "-Dorg.eclipse.jetty.LEVEL=DEBUG", - "-Djava.security.auth.login.config=config/jaas.config" -] -sourceCompatibility = 1.7 -targetCompatibility = 1.7 -compileJava { - options.incremental = true -} - -//============================================================================= -// Extra Configurations (used for separation of dependencies) -//============================================================================= -configurations { - generateMessages - generateGXP - gwt -} - -//============================================================================= -// Source's -//============================================================================= -sourceSets { - main { - java { - srcDirs = [ - 'src/main/java', - 'generated/main/java', - 'generated/proto/java' - ] - } - resources { - srcDir 'src/main/resources' - } - } - proto { - proto { - srcDir 'src/proto/proto' - include '**/*.protodevel' - } - } - test { - java { - srcDir 'src/test/java' - } - resources { - srcDir 'src/test/resources' - } - } -} - -//============================================================================= -// Dependencies -// Note: next to each dependency is a review stamp [last review, next review]. -// If a dependency is past its review date pls create a jira issue. -// https://issues.apache.org/jira/browse/WAVE -//============================================================================= -repositories { - mavenCentral() - maven { - url 'http://archiva.comunes.org/repository/comunes-snapshots/' - } - maven { - url 'https://oauth.googlecode.com/svn/code/maven/' - } - maven { - url 'https://oss.sonatype.org/content/repositories/google-snapshots/' - } -} - -dependencies { - gwt( - [group: "javax.validation", name: "validation-api", version: "1.1.0.Final"], // [?, ?] - [group: "javax.validation", name: "validation-api", version: "1.1.0.Final", classifier: "sources"], // [?, ?] - [group: "com.google.gwt", name: "gwt-dev", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-user", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-codeserver", version: "2.8.0-SNAPSHOT"], // [?, ?] - ) - compile ( - [group: "com.google.gwt", name: "gwt-dev", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-user", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-codeserver", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "aopalliance", name: "aopalliance", version: "1.0"], // [?, ?] - [group: "cc.kune", name: "gwt-initials-avatars-shared", version: "1.0-SNAPSHOT"], // [?, ?] - [group: "cc.kune", name: "gwt-initials-avatars-server", version: "1.0-SNAPSHOT"], // [?, ?] - [group: "commons-fileupload", name: "commons-fileupload", version: "1.2.2"], // [?, ?] - [group: "commons-cli", name: "commons-cli", version: "1.2"], // [?, ?] - [group: "commons-codec", name: "commons-codec", version: "1.4"], // [?, ?] - [group: "commons-io", name: "commons-io", version: "2.4"], // [?, ?] - [group: "commons-collections", name: "commons-collections", version: "3.2.2"], // [?, ?] - [group: "commons-configuration", name: "commons-configuration", version: "1.6"], // [?, ?] - [group: "commons-httpclient", name: "commons-httpclient", version: "3.1"], // [?, ?] - [group: "commons-lang", name: "commons-lang", version: "2.5"], // [?, ?] - [group: "commons-logging", name: "commons-logging-api", version: "1.1"], // [?, ?] - [group: "commons-logging", name: "commons-logging", version: "1.1.1"], // [?, ?] - [group: "com.google.code.findbugs", name: "jsr305", version: "2.0.1"], // [?, ?] - [group: "com.google.code.gson", name: "gson", version: "2.2.4"], // [?, ?] - [group: "com.google.guava", name: "guava", version: "15.0"], // [?, ?] - [group: "com.google.guava", name: "guava-gwt", version: "15.0"], // [?, ?] - [group: "com.google.gxp", name: "google-gxp", version: "0.2.4-beta"], // [?, ?] - [group: "com.google.inject.extensions", name: "guice-assistedinject", version: "3.0"], // [?, ?] - [group: "com.google.inject.extensions", name: "guice-servlet", version: "3.0"], // [?, ?] - [group: "com.google.inject", name: "guice", version: "3.0"], // [?, ?] - [group: "com.google.protobuf", name: "protobuf-java", version: "2.6.1"], // [?, ?] - [group: "com.googlecode.protobuf-java-format", name: "protobuf-java-format", version: "1.2"], // [?, ?] - [group: "com.typesafe", name: "config", version: "1.2.1"], // [?, ?] - [group: "dom4j", name: "dom4j", version: "1.6.1"], // [?, ?] - [group: "eu.infomas", name: "annotation-detector", version: "3.0.0"], // [?, ?] - [group: "org.antlr", name: "antlr", version: "3.2"], // [?, ?] - [group: "org.apache.velocity", name: "velocity", version: "1.6.3"], // [?, ?] - [group: "org.apache.lucene", name: "lucene-core", version: "3.5.0"], // [?, ?] - [group: "org.atmosphere", name: "atmosphere-guice", version: "0.8.3"], // [?, ?] - [group: "org.atmosphere", name: "atmosphere-runtime", version: "2.1.0"], // [?, ?] - [group: "org.bouncycastle", name: "bcprov-jdk16", version: "1.45"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-annotations", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-client", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-continuation", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-http", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-io", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-proxy", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-security", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-server", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-servlet", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-servlets", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-util", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-webapp", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty", name: "jetty-xml", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty.websocket", name: "websocket-api", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty.websocket", name: "websocket-client", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty.websocket", name: "websocket-common", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty.websocket", name: "websocket-server", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.eclipse.jetty.websocket", name: "websocket-servlet", version: "9.1.1.v20140108"], // [?, ?] - [group: "org.gnu.inet", name: "libidn", version: "1.15"], // [?, ?] - [group: "org.igniterealtime", name: "tinder", version: "1.2.3"], // [1/2016, 6/2016] - [group: "org.igniterealtime.whack", name: "core", version: "2.0.0"], // [1/2016, 6/2016] - [group: "org.jdom", name: "jdom", version: "1.1.3"], // [?, ?] - [group: "org.mongodb", name: "mongo-java-driver", version: "2.11.2"], // [?, ?] - [group: "org.slf4j", name: "slf4j-api", version: "1.6.1"], // [?, ?] - [group: "org.slf4j", name: "slf4j-simple", version: "1.6.1"], // [?, ?] - [group: "javax.inject", name: "javax.inject", version: "1"], // [?, ?] - [group: "javax.servlet", name: "javax.servlet-api", version: "3.1.0"], // [?, ?] - [group: "javax.jdo", name: "jdo2-api", version: "2.1"], // [?, ?] - [group: "jline", name: "jline", version: "0.9.94"], // [?, ?] - [group: "joda-time", name: "joda-time", version: "1.6"], // [?, ?] - [group: "net.oauth.core", name: "oauth-provider", version: "20100527"], // [?, ?] - [group: "net.oauth.core", name: "oauth", version: "20100527"], // [?, ?] - [group: "net.oauth.core", name: "oauth-consumer", version: "20100527"], // [?, ?] - [group: "xerces", name: "xerces", version: "2.4.0"], // [?, ?] - [group: "xpp3", name: "xpp3", version: "1.1.4c"], // [?, ?] - [group: "xpp3", name: "xpp3_xpath", version: "1.1.4c"], // [?, ?] - //TODO: Following are included due to tests being in the main src directory - [group: "org.mockito", name: "mockito-all", version: "1.9.5"], // [?, ?] - [group: "org.hamcrest", name: "hamcrest-all", version: "1.3"] // [?, ?] - - ) - compile fileTree(dir: 'dependencies/compile', include: "**/*.jar") // [?, ?] - compile fileTree(dir: '../pst/build/libs', include: '**/*.jar') // [?, ?] - generateGXP ( - [group: "com.google.gxp", name: "google-gxp", version: "0.2.4-beta"] // [?, ?] - ) - protoCompile ( - [group: "com.google.protobuf", name: "protobuf-java", version: "2.6.1"], // [?, ?] - fileTree(dir: '../pst/build/libs', include: '**/*.jar') // [?, ?] - ) - generateMessages ( - fileTree(dir: '../pst/build/libs', include: '**/*.jar') // [?, ?] - ) - testCompile( - [group: 'junit', name: 'junit', version: '4.12'], // [?, ?] - [group: "org.ow2.asm", name: "asm", version: "5.0.4"], // [?, ?] - [group: "cglib", name: "cglib", version: "2.2"], // [?, ?] - [group: "com.novocode", name: "junit-interface", version: "0.11"], // [?, ?] - [group: "emma", name: "emma", version: "2.0.5312"], // [?, ?] - [group: "emma", name: "emma_ant", version: "2.1.5320"], // [?, ?] - [group: "org.hamcrest", name: "hamcrest-all", version: "1.3"], // [?, ?] - [group: "org.jmock", name: "jmock-junit3", version: "2.6.0"], // [?, ?] - [group: "org.jmock", name: "jmock", version: "2.6.0"], // [?, ?] - [group: "org.mockito", name: "mockito-all", version: "1.9.5"], // [?, ?] - [group: "com.google.gwt", name: "gwt-dev", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-user", version: "2.8.0-SNAPSHOT"], // [?, ?] - [group: "com.google.gwt", name: "gwt-codeserver", version: "2.8.0-SNAPSHOT"], // [?, ?] - ) -} - -//============================================================================= -// Protobuf Config -//============================================================================= -protobuf { - protoc { - artifact = 'com.google.protobuf:protoc:2.6.1' - } - generatedFilesBaseDir = "$projectDir/generated" -} - -//============================================================================= -// Task - Generation Tasks (External Compilers) -//============================================================================= - -task generateMessages { - description = 'Generates source files from Antlr String types and protobuf' - FileTree inputFiles = fileTree(dir: 'generated/src/main/java', include: '**/*.java') - inputs.property "files", inputFiles - File outputDir = file("generated/main/java") - outputs.dir outputDir - doLast { - List<String> proto_classes = [ - "build/classes/proto/org/waveprotocol/box/common/comms/WaveClientRpc.class", - "build/classes/proto/org/waveprotocol/box/search/SearchProto.class", - "build/classes/proto/org/waveprotocol/box/profile/ProfilesProto.class", - "build/classes/proto/org/waveprotocol/box/server/rpc/Rpc.class", - "build/classes/proto/org/waveprotocol/box/attachment/AttachmentProto.class", - "build/classes/proto/org/waveprotocol/wave/federation/Proto.class", - "build/classes/proto/org/waveprotocol/wave/concurrencycontrol/ClientServer.class", - "build/classes/proto/org/waveprotocol/wave/diff/Diff.class" - ] - List<String> templates = [ - "src/main/java/org/waveprotocol/pst/templates/api/api.st", - "src/main/java/org/waveprotocol/pst/templates/builder/builder.st", - "src/main/java/org/waveprotocol/pst/templates/pojo/pojo.st", - "src/main/java/org/waveprotocol/pst/templates/jso/jso.st", - "src/main/java/org/waveprotocol/pst/templates/util/util.st", - "src/main/java/org/waveprotocol/pst/templates/gson/gson.st", - "src/main/java/org/waveprotocol/pst/templates/proto/proto.st" - ] - proto_classes.each { proto -> - javaexec { - main = "org.apache.wave.pst.PstMain" - classpath += configurations.generateMessages - args = [ - '-s', - 'pst', - '-d', - 'generated/main/java', - '-f', - proto - ] - args += templates - } - } - } -} - -generateMessages.dependsOn ":pst:shadowJar", "compileProtoJava" - -task generateGXP { - description = 'Generate source files from GXP prototypes' - FileTree inputFiles = fileTree(dir: 'src/main/gxp', include: '**/*.gxp') - inputs.property "files", inputFiles - File outputDir = file("generated/main/java") - outputs.dir outputDir - doLast { - javaexec { - main = "com.google.gxp.compiler.cli.Gxpc" - classpath += configurations.generateGXP - args = [ - "--dir", - "generated/main/java", - "--source", - "src/main/gxp", - "--output_language", - "java" - ] - args += fileTree(dir: 'src/main/gxp', include: '**/*.gxp').getFiles() - } - } -} - -//============================================================================= -// Gwt Compilation Options -//============================================================================= -task compileGwt { - description = 'Compiles the GWT sources for production' - doLast { - javaexec { - main = "com.google.gwt.dev.Compiler" - classpath { - [ - sourceSets.main.java.srcDirs, - sourceSets.main.compileClasspath, - sourceSets.main.resources.srcDirs, - configurations.gwt - ] - } - jvmArgs = [ - "-Xmx1024M" - ] - args = [ - "-style", "OBFUSCATED", - "-XdisableClassMetadata", - "-XdisableCastChecking", - "-localWorkers", "4", - "org.waveprotocol.box.webclient.WebClientProd" - ] - } - } -} - -compileGwt.mustRunAfter compileJava -run.dependsOn compileGwt - -task compileGwtDemo { - description = 'Compiles the GWT sources for Demo' - doLast { - javaexec { - main = "com.google.gwt.dev.Compiler" - classpath { - [ - sourceSets.main.java.srcDirs, - sourceSets.main.compileClasspath, - sourceSets.main.resources.srcDirs, - configurations.gwt - ] - } - args = [ - "-style", "Pretty", - "-ea", - "org.waveprotocol.box.webclient.WebClientDemo" - ] - } - } -} - -task compileGwtDev { - description = 'Compiles the GWT sources for Development' - doLast { - javaexec { - main = "com.google.gwt.dev.Compiler" - classpath { - [ - sourceSets.main.java.srcDirs, - sourceSets.main.compileClasspath, - sourceSets.main.resources.srcDirs, - configurations.gwt - ] - } - args = [ - "-style", "PRETTY", - "-draftCompile", - "-ea", - "-strict", - "org.waveprotocol.box.webclient.WebClientDev" - ] - } - } -} - - - -compileJava.dependsOn = [generateMessages, generateGXP] - -/* Gwt Dev Tasks */ - -task gwtDev { - description = 'Runs the hosted mode server, for debugging the Gwt client ' + - 'in a JVM.' - doFirst { - println '' - println '----------------------------------------------' - println ' Running Gwt Dev mode. ' - println 'Note: This currently has a classpath conflict.' - println '----------------------------------------------' - println '' - } - doLast { - javaexec { - main = "com.google.gwt.dev.DevMode" - classpath { - [ - sourceSets.main.java.srcDirs, - sourceSets.main.compileClasspath, - sourceSets.main.resources.srcDirs, - configurations.gwt, - ] - } - args = [ - "-noserver", - "-bindAddress", "127.0.0.1", - "-startupUrl", "http://localhost:9898", - "-logLevel", "DEBUG", - "org.waveprotocol.box.webclient.WebClientDev", - ] - } - } -} - -//============================================================================= -// Tests -//============================================================================= - -test { - include "**/*Test*" - exclude "**/*GwtTest*" - exclude "**/server/persistence/mongodb/**/*Test*" - exclude "**/*LargeTest*" - - minHeapSize = "512m" - maxHeapSize = "1024m" - - doFirst { - println '' - println '---------------------' - println ' Running unit tests. ' - println '---------------------' - println '' - } -} - -/* TODO(wisebaldone) not working due to gwt conflict talked about above, cant - have everything on classpath because 2 jetty versions. */ -task testGwt(type: Test) { - include "**/*GwtTest*" - - minHeapSize = "512m" - maxHeapSize = "1024m" - forkEvery = 1 - - doFirst { - println '' - println '--------------------' - println ' Running Gwt tests. ' - println '--------------------' - println '' - } -} - -testGwt.dependsOn compileGwt - -task testMongo(type: Test) { - include "**/server/persistence/mongodb/**/*Test*" - - doFirst { - println '' - println '--------------------------' - println ' Testing MongoDB backend. ' - println '--------------------------' - println '' - } -} - -testMongo.dependsOn compileJava - -task testLarge(type: Test) { - include "**/*LargeTest*" - - doFirst { - println '' - println '-------------------------------' - println ' Testing Large Tests. ' - println 'These tests may take some time.' - println '-------------------------------' - println '' - } -} - -testLarge.dependsOn compileJava - -task testAll() { - doFirst { - println '' - println '--------------------------' - println ' Tests completed. ' - println '--------------------------' - println '' - } -} - -testAll.dependsOn compileJava, compileGwt -testAll.dependsOn test, testMongo, testLarge, testGwt - -testGwt.mustRunAfter compileGwt, testLarge -testMongo.mustRunAfter compileJava, test -testLarge.mustRunAfter test - -ant.importBuild 'config/server-config.xml' - -//============================================================================= -// Custom UberJar Implementation -// Author Note: this custom implementation should be replaced by the shadow -// plugin as shown in the pst project. -//============================================================================= -task extractApi(type: Copy) { - from (configurations.compile.collect { zipTree(it) }) { - //Note: readonly files which get overwritten crash windows. - exclude "LICENSE" - } into "$buildDir/api" -} - -extractApi.mustRunAfter compileJava - -jar { - manifest { - attributes "Specification-Vendor": vendor, - "Specification-Title": title, - "Specification-Version": version, - "Implementation-Vendor": vendor, - "Implementation-Title": title, - "Implementation-Version": version, - "Built-By": "No one in particular", - "Main-Class": mainClassName - } - from "$buildDir/api" - include "META-INF/services/*" - include "com/mongodb/**/*" - include "org/slf4j/**/*" - include "org/atmosphere/**/*" - include "com/google/common/**/*" - include "com/google/gson/**/*" - include "com/google/gxp/**/*" - include "com/google/gwt/core/server/**/*" - include "com/google/gwt/core/shared/**/*" - include "com/google/gwt/logging/**/*" - include "com/google/gwt/user/server/**/*" - include "com/google/gwt/user/client/rpc/**/*" - include "com/google/inject/**/*" - include "com/google/protobuf/**/*" - include "com/google/wave/**/*" - include "com/typesafe/**/*" - include "gnu/inet/**/*" - include "javax/inject/**/*" - include "javax/servlet/**/*" - include "javax/xml/**/*" - include "net/oauth/**/*" - include "org/aopalliance/**/*" - include "org/apache/commons/cli/**/*" - include "org/apache/commons/codec/**/*" - include "org/apache/commons/collections/**/*" - include "org/apache/commons/configuration/**/*" - include "org/apache/commons/fileupload/**/*" - include "org/apache/commons/httpclient/**/*" - include "org/apache/commons/lang/**/*" - include "org/apache/commons/logging/**/*" - include "org/apache/lucene/**/*" - include "org/apache/commons/io/**/*" - include "org/apache/xerces/**/*" - include "org/apache/wave/**/*" - include "org/bson/**/*" - include "org/dom4j/**/*" - include "org/eclipse/**/*" - include "org/jdom/**/*" - include "org/jivesoftware/**/*" - include "org/joda/time/**/*" - include "org/json/**/*" - include "org/waveprotocol/**/*" - include "org/xmlpull/**/*" - include "org/xmpp/**/*" - include "cc/kune/initials/**/*" - exclude "org/waveprotocol/box/webclient/**/*" - exclude "org/waveprotocol/box/consoleclient/**/*" - exclude "org/waveprotocol/box/expimp/**/*" - exclude "org/waveprotocol/wave/client/*" - exclude "org/waveprotocol/wave/client/account/**/*" - exclude "org/waveprotocol/wave/client/autohide/**/*" - exclude "org/waveprotocol/wave/client/clipboard/**/*" - exclude "org/waveprotocol/wave/client/common/**/*" - exclude "org/waveprotocol/wave/client/concurrencycontrol/**/*" - exclude "org/waveprotocol/wave/client/debug/**/*" - exclude "org/waveprotocol/wave/client/doodad/**/*" - exclude "org/waveprotocol/wave/client/paging/**/*" - exclude "org/waveprotocol/wave/client/render/**/*" - exclude "org/waveprotocol/wave/client/scheduler/**/*" - exclude "org/waveprotocol/wave/client/scroll/**/*" - exclude "org/waveprotocol/wave/client/state/**/*" - exclude "org/waveprotocol/wave/client/testing/**/*" - exclude "org/waveprotocol/wave/client/uibuilder/**/*" - exclude "org/waveprotocol/wave/client/uibuilder/**/*" - exclude "org/waveprotocol/wave/client/util/**/*" - exclude "org/waveprotocol/wave/client/wave/**/*" - exclude "org/waveprotocol/wave/client/wavepanel/**/*" - exclude "org/waveprotocol/wave/client/widget/**/*" - exclude "com/google/api/client/**/*" -} - -jar.dependsOn compileJava, compileGwt, extractApi - -//============================================================================= -// Binary Distribution -//============================================================================= - -def binName = this.group + "-bin" - -task createPropertiesFile(type: Copy) { - from 'src/main/configs' - include 'wave.conf' - into 'config' - expand([ - version: version - ]) -} - -task createDistBinZip(type: Zip) { - baseName = binName - destinationDir = file('../distributions') - from(jar) { - into 'apache-wave/bin' - } - from('dist') { - into 'apache-wave' - } - from('config') { - into 'apache-wave/config' - } - from('war') { - into 'apache-wave/war' - } - from('../THANKS') { - into 'apache-wave' - } - from('../RELEASE-NOTES') { - into 'apache-wave' - } - from('../KEYS') { - into 'apache-wave' - } - from('../DISCLAIMER') { - into 'apache-wave' - } -} - -task createDistBinTar(type: Tar) { - compression = Compression.GZIP - extension = 'tar.gz' - baseName = binName - destinationDir = file('../distributions') - from(jar) { - into 'apache-wave/bin' - } - from('dist') { - into 'apache-wave' - } - from('config') { - into 'apache-wave/config' - } - from('war') { - into 'apache-wave/war' - } - from('../THANKS') { - into 'apache-wave' - } - from('../RELEASE-NOTES') { - into 'apache-wave' - } - from('../KEYS') { - into 'apache-wave' - } - from('../DISCLAIMER') { - into 'apache-wave' - } -} - -createDistBinZip.dependsOn jar, createPropertiesFile -createDistBinTar.dependsOn jar, createPropertiesFile - -//============================================================================= -// Distribution's -//============================================================================= -task createDistBin() { - doFirst { - println '' - println '--------------------------------------------------------' - println ' Creating Deployment ' - println '--------------------------------------------------------' - println '' - } -} - -createDistBin.dependsOn createDistBinZip, createDistBinTar - -// Additional Clean -clean { - delete "war/WEB-INF" - delete "war/webclient" - delete "generated/" - delete "gwt-unitCache" -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/config/jaas.config ---------------------------------------------------------------------- diff --git a/wave/config/jaas.config b/wave/config/jaas.config deleted file mode 100644 index 044f2d1..0000000 --- a/wave/config/jaas.config +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -Wave { - org.waveprotocol.box.server.authentication.AccountStoreLoginModule required debug=true; -}; http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/config/prosody.cfg.lua.example ---------------------------------------------------------------------- diff --git a/wave/config/prosody.cfg.lua.example b/wave/config/prosody.cfg.lua.example deleted file mode 100644 index 2a5403d..0000000 --- a/wave/config/prosody.cfg.lua.example +++ /dev/null @@ -1,31 +0,0 @@ ---[[ - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * WITH THE License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---]] - -component_ports = { @XMPP_SERVER_COMPONENT_PORT@ } -s2s_ports = { @XMPP_SERVER_TO_SERVER_PORT@ } - -VirtualHost "@CERTIFICATE_DOMAIN@" - enabled = true - ssl = { - key = "@BASEDIR@/@CERTIFICATE_PRIVATE_KEY@"; - certificate = "@BASEDIR@/@[email protected]"; - } - -Component "@XMPP_JID@" - component_secret = "@XMPP_SERVER_SECRET@" http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/config/reference.conf ---------------------------------------------------------------------- diff --git a/wave/config/reference.conf b/wave/config/reference.conf deleted file mode 100644 index 425a576..0000000 --- a/wave/config/reference.conf +++ /dev/null @@ -1,263 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# Configuration for the Apache Wave server. - - -core { - # Domain name of the Wave server. - wave_server_domain : "local.net" - - # A comma separated list of address on which to listen for connections. - # Each address is a comma separated host:port pair. - http_frontend_addresses : ["localhost:9898"] - - # The public address - a comma separated host:port pair, i.e. example.com:80 - http_frontend_public_address : "" - - # An optional host:port address on which to listen for websocket connections. - # Defaults to http_websocket_public_address. - # If no value is set for http_websocket_public_address it defaults to the first address specified - # by http_frontend_public_address. - http_websocket_public_address : "" - - # An optional host:port address for which the client is told to attempt websocket connections. - # If no value is set for http_websocket_presented_address it defaults to http_websocket_public_address. - http_websocket_presented_address : "" - - # The address of Apache Shindig gadgets server patched to support Wave gadgets. - # See https://cwiki.apache.org/confluence/display/WAVE/Gadgets+with+your+own+Gadget+Server - gadget_server_hostname : "gmodules.com" - - # The gadget server port. - gadget_server_port : 80 - - # A comma separated list of webApp source directories - resource_bases : ["./war"] - - # Settings for the different persistence stores. Currently supported: memory, file, mongodb. - signer_info_store_type : file - - # The location where signer info certificate data is stored on disk. This should be changed. - # Note: This is only used when using the file signer info store. It is ignored - # for other data store types. - signer_info_store_directory : _certificates - - # Currently supported attachment types: mongodb, disk - attachment_store_type : disk - - # The location where attachments are stored on disk. This should be changed. - # Note: This is only used when using the disk attachment store. It is ignored - # for other data store types. - attachment_store_directory : _attachments - - # Directory that holds the thumbnails for attachments. - # Icon must be in PNG format, and named as MIME type with replacing '/' to '_'. - # For example thumbnail file for ZIP format (MIME type application/zip) must be named application_zip. - thumbnail_patterns_directory : _thumbnail_patterns - - # Currently supported account store types: fake, memory, file, mongodb - account_store_type : file - - # The location where accounts are stored on disk. This should be changed. - # Note: This is only used when using the file account store. It is ignored - # for other data store types. - account_store_directory : _accounts - - # Currently supported delta store types: memory, file, mongodb. - # Note: file system support is experimental. Your server may crash. And the file format is - # not stable and shouldn't be relied upon for long-term storage yet; upcoming changes will - # require you to blow away your data. - delta_store_type : file - - # The location where deltas are stored on disk. This should be changed. - # Note: This is only used when using the file delta store. It is ignored - # for other data store types. - delta_store_directory : _deltas - - # The location where user sessions are persisted on disk. This allow to restore user sessions - # between restarts. - sessions_store_directory : _sessions - - # Currently supported search types: memory, lucene, solr. - search_type : memory - - # The location where search indexes are stored on disk. - # Note: This is only used when using the lucene search type. It is ignored - # for other search types. - index_directory : _indexes - - # Currently supported profile fetcher types: gravatar, initials. - profile_fetcher_type : initials - - # The Solr endpoint url. - solr_base_url : "http://localhost:8983/solr" - - # Enables server side profiling. To display the stats press ctrl+alt+ctrl in the web client. - # Default value: true - enable_profiling : true - - # Mongodb connection options - # Only used if some of the *_store_type properties are set to 'mongodb' - - # Server's host name or IP address. - mongodb_host : "127.0.0.1" - - # Server's port. Default value: 27017 - mongodb_port : 27017 - - # Database's name. Default name: wiab - mongodb_database : wiab - - # Number of waves in memory cache. - wave_cache_size = 1000 - - # Duration to keep the waves in cache. - wave_cache_expire = 60m -} - -network { - # Max age of session cookie in seconds. - # -1 means cookie lives in the browser current session only. - session_cookie_max_age : -1 - - # The time in ms that the websocket connection can be idle before closing - websocket_max_idle_time : 0 - - # Maximum websocket message size to be received in MB - websocket_max_message_size : 2 -} - -administration { - # Note: the default value for admin is an invalid user id that cannot be registered. - # To become an admin: Register a user and set its address as the value below. - # Admin has a privilege to change passwords of other users using an agent robot. - admin_user : "@" - - # The wave id of the welcome template wave. (Without domain, for example: w+Fxjs_-ZPmmA). - # If filled in then a copy of this wave (actually only the root blip) will be - # automatically added to the inbox of every new user. - welcome_wave_id : "" - - # Set true to prevent anyone registering on your server. - # When true, only the admin user can use the RegistrationRobot to add new accounts - disable_registration : false - - # Disable login page - useful to force x509-only authentication - disable_loginpage : false - - # Google Analytics account. - analytics_account : "" -} - -threads { - # The number of threads to listen on wavelet updates. Default value: 1 - listener_executor_thread_count : 1 - - # The number of threads for loading wavelets. Default value: 1 - wavelet_load_executor_thread_count : 1 - - # The number of threads to persist deltas. Default value: 1 - delta_persist_executor_thread_count : 1 - - # The number of threads to perform post wavelet loading logic. Default value: 1 - storage_continuation_executor_thread_count : 1 - - # The number of threads for looking up the wavelet ids - # while creating a list of all wavelets in the persistent storage. Default value: 1 - lookup_executor_thread_count : 1 - - # The number of threads for making search/update requests to Solr. Default value: 1 - solr_thread_count : 1 - - # The number of threads for making for retrieving contacts. - contact_executor_thread_count : 1 -} - -security { - # Enable SSL for all address/port combinations listed (makes the next 2 settings non-optional). - enable_ssl : false - - # Path to keystore containg the ssl certificates to server - # Note: this is only used when enable_ssl set to true. - ssl_keystore_path : wiab.ks - - # Password to the keystore. - # Note: this is only used when enable_ssl set to true. - ssl_keystore_password : changeme - - # Enable client x509 cert. authentication? - enable_clientauth : false - - # Domain of the email to look for as email field of x509 client auth certificates when using client authentication - clientauth_cert_domain : "" -} - -federation { - # Federation Configuration for the Wave in a Box server - enable_federation : false - - # These will probably need to be changed - xmpp_server_secret : secret - - # The PKCS#8-PEM-encoded private key. - certificate_private_key : "local.net.key" - - # The list of file names that have the certificates of this signer. - # The first file name must have the signer's target certificate. The certificates can be DER or PEM encoded. - # The order of certificates is important. Place intermediate certs - # after "${wave_server_domain}.crt". Please refer to - # http://www.waveprotocol.org/federation/certificates - # for more details. - certificate_files : ["local.net.crt","sub.class1.server.ca.pem","ca.pem"] - - # The domain for which the certificate was issued. - certificate_domain : "local.net" - - xmpp_component_name : wave - - # This server's local JID - xmpp_jid : "wave.local.net" - - xmpp_server_description : "Wave in a Box" - - disco_info_category : "collaboration" - - disco_info_type : "apache-wave" - - xmpp_server_hostname : "local.net" - - xmpp_server_component_port : 5275 - - # How long to cache failed disco results. - xmpp_disco_failed_expiry : 300s - - # How long to cache successful disco results. - xmpp_disco_successful_expiry : 7200s - - disco_expiration : 6h - - # Set XMPP_SERVER_IP to localhost if the XMPP and Wave in a Box servers are - # running on the same host - xmpp_server_ip : localhost - - # Set true to disable the verification of signed deltas - waveserver_disable_verification : true - - # Set true to disable the verification of signers (certificates) - waveserver_disable_signer_verification : true -} http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/config/server-config.xml ---------------------------------------------------------------------- diff --git a/wave/config/server-config.xml b/wave/config/server-config.xml deleted file mode 100644 index deb5f3b..0000000 --- a/wave/config/server-config.xml +++ /dev/null @@ -1,65 +0,0 @@ -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - --> -<project name="server config" basedir="../" default="prosody-config"> - <description>Creates the server configuration file.</description> - - <property name="wave_server_domain" value="local.net" /> - <property name="xmpp_server_secret" value="opensesame" /> - <property name="certificate_private_key" value="${wave_server_domain}.key" /> - <property name="certificate_files" value="${wave_server_domain}.crt,sub.class1.server.ca.pem,ca.pem" /> - <property name="certificate_domain" value="${wave_server_domain}" /> - <property name="xmpp_component_name" value="wave" /> - <property name="xmpp_jid" value="${xmpp_component_name}.${wave_server_domain}" /> - <property name="xmpp_server_description" value=""Wave in a Box"" /> - <property name="xmpp_server_hostname" value="${wave_server_domain}" /> - <property name="xmpp_server_component_port" value="5275" /> - <property name="xmpp_server_to_server_port" value="5269" /> - <property name="xmpp_server_ping" value="wavesandbox.com" /> - <property name="xmpp_server_ip" value="${xmpp_server_hostname}" /> - <property name="waveserver_disable_verification" value="false" /> - <property name="waveserver_disable_signer_verification" value="false" /> - - - <target name="prosody-config" - description="Run to create the prosody configuration files. - ant -f server-config.xml prosody-config"> - <echo>Generating ${certificate_domain}.cfg.lua</echo> - <copy file="${certificate_domain}.cfg.lua" - tofile="${certificate_domain}.cfg.lua.old" - overwrite="true" - failonerror="false" /> - <copy file="prosody.cfg.lua.example" tofile="${certificate_domain}.cfg.lua" overwrite="true"> - <filterchain> - <replacetokens> - <token key="BASEDIR" value="${basedir}" /> - <token key="XMPP_SERVER_SECRET" value="${xmpp_server_secret}" /> - <token key="CERTIFICATE_PRIVATE_KEY" value="${certificate_private_key}" /> - <token key="CERTIFICATE_DOMAIN" value="${certificate_domain}" /> - <token key="XMPP_JID" value="${xmpp_jid}" /> - <token key="XMPP_SERVER_DESCRIPTION" value="${xmpp_server_description}" /> - <token key="XMPP_SERVER_COMPONENT_PORT" value="${xmpp_server_component_port}" /> - <token key="XMPP_SERVER_TO_SERVER_PORT" value="${xmpp_server_to_server_port}" /> - </replacetokens> - </filterchain> - </copy> - <echo>Please, manually copy ${certificate_domain}.cfg.lua to your prosody configuration directory.</echo> - <echo>E.g. sudo cp ${certificate_domain}.cfg.lua /etc/prosody/conf.d/${certificate_domain}.cfg.lua</echo> - <echo>Additionally, ensure your ${certificate_domain} SRV record points to port ${xmpp_server_to_server_port}</echo> - </target> -</project> http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/config/wiab-logging.conf ---------------------------------------------------------------------- diff --git a/wave/config/wiab-logging.conf b/wave/config/wiab-logging.conf deleted file mode 100644 index 3b4cc37..0000000 --- a/wave/config/wiab-logging.conf +++ /dev/null @@ -1,47 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the Licensae. -# -# This file sets up console and file logging for the wiab server - -handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler - -# Available log levels are: -# ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF - -# Default global logging level. -# Loggers and Handlers may override this level -.level=INFO - -java.util.logging.ConsoleHandler.level = INFO -java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter - -java.util.logging.FileHandler.level = ALL -java.util.logging.FileHandler.pattern = wiab-server.log -java.util.logging.FileHandler.count=5 -java.util.logging.FileHandler.append=false -java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter -java.util.logging.FileHandler.limit=5242880 - -# Per-package logging levels. -# Add extra packages here to increase or decrease the log level -# per-package levels affect both console and file output - -org.eclipse.jetty.level = SEVERE -org.eclipse.jetty.websocket.level = SEVERE - -#org.waveprotocol.level=ALL - http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/051db092/wave/dependencies/compile/runtime/javascript-2.1.5.war ---------------------------------------------------------------------- diff --git a/wave/dependencies/compile/runtime/javascript-2.1.5.war b/wave/dependencies/compile/runtime/javascript-2.1.5.war deleted file mode 100644 index d6a099f..0000000 Binary files a/wave/dependencies/compile/runtime/javascript-2.1.5.war and /dev/null differ
