Hello, I am using buildr for compiling, building and packaging. I would like to share the build script, I am using for my GWT project. http://buildr.apache.org
The build script is somewhat lengthy as compared to normal buildr scripts as I haven't defined a buildr extension for the gwt compiling. It is of course way shorter then a ant script or a maven script. I can use it with 'buildr deploy' to upload the application to my server or 'buildr install' to install it into my maven repository. Best Regards Sebastian Hennebrueder http://www.laliluna.de require 'buildr' # use my repository instead of the standard maven repositories.remote << "http://myrepositoryserver/artifactory/repo" # define dependencies TEST = ["junit:junit:jar:4.5"] COMPILE = [ "log4j:log4j:jar:1.2.15", "org.slf4j:slf4j-log4j12:jar:1.5.8", "org.slf4j:slf4j-api:jar:1.5.8", "c3p0:c3p0:jar:0.9.1.2", "net.sf.ehcache:ehcache:jar:1.5.0", "backport-util-concurrent:backport-util-concurrent:jar:3.1", "commons-logging:commons-logging:jar:1.0.4", "commons-collections:commons-collections:jar:3.2", "net.sf.jsr107cache:jsr107cache:jar:1.0", "org.hibernate:hibernate-core:jar:3.3.2.GA", "antlr:antlr:jar:2.7.6", "dom4j:dom4j:jar:1.6.1", "javax.transaction:jta:jar:1.1", "javassist:javassist:jar:3.9.0.GA", "org.hibernate:hibernate-ehcache:jar:3.3.2.GA", "org.hibernate:ejb3-persistence:jar:1.0.2.GA", "org.hibernate:hibernate-annotations:jar:3.4.0.GA", "org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA", "org.hibernate:hibernate-validator:jar:3.1.0.GA", "postgresql:postgresql:jar:8.3-603.jdbc3", # guice "aopalliance:aopalliance:jar:1.0", "com.google.code.guice:guice:jar:2.0", "com.google.code.guice:guice-servlet:jar:2.0", #gwt "com.google.gwt:gwt-servlet:jar:2.0.0-SNAPSHOT", # bean lib "net.sf.beanlib:beanlib-hibernate:jar:5.0.2beta", "net.sf.beanlib:beanlib:jar:5.0.2beta", "commons-lang:commons-lang:jar:2.1", "xstream:xstream:jar:1.1.2", "cglib:cglib:jar:2.1_3", "asm:asm:jar:1.5.3", "net.jcip:jcip-annotations:jar:1.0" ] GWTBUILD = [ "com.google.gwt:gwt-dev:jar:2.0.0-SNAPSHOT", "com.google.gwt:gwt-user:jar:2.0.0-SNAPSHOT", "javax.servlet:servlet-api:jar:2.5"] # define custom tasks Project.local_task :deploy Project.local_task :gwtc define 'bundapfel' do project.version = '1.1' compile.with COMPILE task :gwtc do puts "GWT Compile" classpath = COMPILE+GWTBUILD + ["src/main/resources", "src/main/ java"] Java::Commands.java("com.google.gwt.dev.Compiler", ["-war", "target/gwt", "de.laliluna.bund.Editor"], {:classpath => classpath, :java_args => ["- Xmx256M"], :verbose=>true}) end # execute GWT compile before build task :build => :gwtc package(:war).include("target/gwt", :as => ".") task :deploy => :package do puts "Deploying to server" %x{ scp "#{warFile}" "myserver:#{id}" } end end
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.