Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F0B52101 for ; Fri, 6 May 2011 00:54:17 +0000 (UTC) Received: (qmail 4419 invoked by uid 500); 6 May 2011 00:54:17 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 4380 invoked by uid 500); 6 May 2011 00:54:16 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 4372 invoked by uid 99); 6 May 2011 00:54:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 00:54:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of geraldo.ls@gmail.com designates 74.125.83.44 as permitted sender) Received: from [74.125.83.44] (HELO mail-gw0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 00:54:10 +0000 Received: by gwb20 with SMTP id 20so1420445gwb.17 for ; Thu, 05 May 2011 17:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=koetncW/KiQ7LrIGPji81jPRjbeC+YcGJnYNVjCVJdM=; b=wjI1HTMaBifzK5htvHnuzvdQGcfY3RizK4UCdkmXxnKWWckZXSjWu6hhRh4ncQ2kx6 s2UstGxcgqCCCImrUfFNstRELu/PWepEyPfr2ywC8rKrHhSOFd/LSbu/Qypb90LI4HiV 6SlHqEk/fYKyfXtljelNZj0fnTsVR29Lo0dWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Kldf/w7j4/JYbuJLnzglsYKZOlHPCB8k6p2v2y7oFflbEKUhznTzQrHJ4uQElkNInF XuQhJDr51U3ZJB4T8Fkcw72GR04BcANxugJcN/LSCOISK+ZycNRZJuim37SuzGVEuQZe JD0j5k9Hqya51NUr2LV4ocMq9NEeG4U+znj1A= MIME-Version: 1.0 Received: by 10.91.203.5 with SMTP id f5mr2787197agq.178.1304643229606; Thu, 05 May 2011 17:53:49 -0700 (PDT) Received: by 10.100.154.6 with HTTP; Thu, 5 May 2011 17:53:49 -0700 (PDT) Date: Thu, 5 May 2011 21:53:49 -0300 Message-ID: Subject: Gwt compile task compatible with gwt 2.3 "validation-api as sources dependency" From: Geraldo Lopes de Souza To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=001636af036f42630304a290ec75 --001636af036f42630304a290ec75 Content-Type: text/plain; charset=ISO-8859-1 Hi, I needed to pass 'javax.validation:validation-api:jar:1.0.0.GA' sources to my gwtc task. It asks you to "buildr artifacts:sources" if source isn't found. It passes the jar source to gwt compiler. Someone can have the same problem and save some minutes :) If you have a better way please enlighten me. task :gwtc do puts "GWT Compile" artifacts = [GWT, GWT_DEV, VALIDATION].collect {|d| artifact(d)} validation_sources = artifact(VALIDATION).to_s.gsub('.jar','-sources.jar') if ! File.exists?(validation_sources) puts "Validation sources not found. invoke buildr artifacts:sources" exit end artifacts << validation_sources classpath_ary = [] artifacts.each do |a| a.install if a.respond_to?(:install) classpath_ary << a.to_s end classpath_ary << compile.source.to_s classpath_ary << compile.target.to_s cmd = "java -Xmx512m -cp #{classpath_ary.join(':')} com.google.gwt.dev.Compiler app.Clinica" puts cmd system cmd end Anyway, never had the chance to thank you for this project. I use ruby at work for sysadmin. Use it for building my stuff and keeping me away from xml hell is double pleasure !! Kudos to the team. Geraldo Lopes de Souza --001636af036f42630304a290ec75--