From 8b6e2ecd4c5d183e995c394cc45b5ad667f11086 Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Thu, 23 Feb 2012 22:48:01 +0100 Subject: [PATCH] Fixed the build file with correct names. --- buildfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/buildfile b/buildfile index 2a9c3f1..107b679 100644 --- a/buildfile +++ b/buildfile @@ -8,12 +8,15 @@ repositories.remote << 'http://maven.twttr.com/' FINAGLE = "com.twitter:finagle-http_#{Scala.version}:jar:1.11.1" CASBAH = "com.mongodb.casbah:casbah_2.9.0-1:pom:2.1.5.0" -define 'finagle-test' do - project.group = 'my.app' - project.version = '0.1' +VERSION = '0.1' +MAIN_CLASS = 'dice.searchengine.httpproxy.SearchEngineHttpProxy' + +define 'SearchEngineHttpProxy' do + project.group = 'dice.searchengine.httpproxy' + project.version = VERSION package :jar - manifest['Main-Class'] = 'dice.searchengine.httpproxy.SearchEngineHttpProxy' + manifest['Main-Class'] = MAIN_CLASS compile.with transitive(FINAGLE), transitive(CASBAH) end @@ -23,5 +26,5 @@ task :execute => :package do classpath = all_deps.map { |dep| dep.name }.delete_if { |dep| dep.include? 'scala-library' }.join(':') puts "\nRun >>> \n" puts "Classpath: #{classpath}\n\n" - sh "scala -cp #{classpath}:target/finagle-test-0.1.jar my.app.MyApp" + sh "scala -cp #{classpath}:target/SearchEngineHttpProxy-#{VERSION}.jar #{MAIN_CLASS}" end