From users-return-3680-apmail-buildr-users-archive=buildr.apache.org@buildr.apache.org Fri Apr 5 14:47:43 2013 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 B6AF3FFF6 for ; Fri, 5 Apr 2013 14:47:43 +0000 (UTC) Received: (qmail 13388 invoked by uid 500); 5 Apr 2013 14:47:43 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 13311 invoked by uid 500); 5 Apr 2013 14:47:42 -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 13298 invoked by uid 99); 5 Apr 2013 14:47:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 14:47:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of smirnegger@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 14:47:37 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so3982435oag.25 for ; Fri, 05 Apr 2013 07:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=DNDv3kwlEHutwM+2Av+/KZ6VlFppDXdNZz7y7MGEAHI=; b=ctq5cHLi9poOQM+a6knYumVgU+k5zYyaGSsThG3GxODG/2vx0317dIotPTyY/1nedn LVNONtqAYIKQx3ZQ4nS6z1KluV8r4XCsEycHKiS2XD6cbf/nFjKXeXfrGLhCeNWIDzF9 l1pZVEbIWUvVWdJEnLv7Pzx2L9QmukQw4CVE+2iXg47iqX630AbqB2cHyCl1fwdpDQKi OOwJ23rkbe8LNSx359pDR5axkAgk8ecrxkAfC+bMCAFerjA7UAcgb4kO7lbwhU0uQzq1 yBpFJQU4Ix1/mZlTTZSXQnBrHQY/37SLrETQRCZobKWm11drYBjOqGtRxUHgt35rTukY 6Pvg== MIME-Version: 1.0 X-Received: by 10.60.85.35 with SMTP id e3mr8405452oez.117.1365173237099; Fri, 05 Apr 2013 07:47:17 -0700 (PDT) Received: by 10.182.28.138 with HTTP; Fri, 5 Apr 2013 07:47:17 -0700 (PDT) Date: Fri, 5 Apr 2013 16:47:17 +0200 Message-ID: Subject: Proguard and Ant Task From: =?ISO-8859-1?Q?Khristian_Sch=F6nrock?= To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=089e0111be00dab4a904d99e2910 X-Virus-Checked: Checked by ClamAV on apache.org --089e0111be00dab4a904d99e2910 Content-Type: text/plain; charset=ISO-8859-1 Hello everyone, I'm trying to add a proguard task to my project. So far I've not found any sort of Proguard-addon for Buildr, so I tried using the Ant task. I tried to mimic the OpenJPA task, and ended up with the following code: REQUIRES = [ ...bunch of libraries... ] ant('proguard') do |ant| ant.taskdef :name=>'proguard', :classname=>'proguard.ant.ProGuardTask', :classpath=>REQUIRES.join(File::PATH_SEPARATOR) ant.proguard :configuration=>_('../build/configuration.pro'), # config file :injars=>project('my_project') # snag here end And so I am left with a bunch of intertwining questions: - Since I'm defining the task in a project that should be processed by proguard, I'm not sure how I should add the project to the classpath. - Moving the proguard task to some other project ("distribution", for example) solves the problem, but proguard complains that I need to define the "-injars" parameter, which I tried unsuccessfully with the :injars code above. - Since "-injars" is part of the configuration, in the Proguard Ant task it can be defined either in the configuration file ("configuration.pro"), or in the body of the tag. Supposing the :configuration key maps to this tag, can I add this "tag content"? How do I best configure this? Thanks in advance, Khristian --089e0111be00dab4a904d99e2910--