Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 67142 invoked from network); 4 Nov 2009 15:23:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 15:23:59 -0000 Received: (qmail 18938 invoked by uid 500); 4 Nov 2009 15:23:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 18894 invoked by uid 500); 4 Nov 2009 15:23:57 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 18883 invoked by uid 99); 4 Nov 2009 15:23:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 15:23:57 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brian@pontarelli.com designates 209.85.210.191 as permitted sender) Received: from [209.85.210.191] (HELO mail-yx0-f191.google.com) (209.85.210.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 15:23:55 +0000 Received: by yxe29 with SMTP id 29so6861383yxe.14 for ; Wed, 04 Nov 2009 07:23:34 -0800 (PST) Received: by 10.101.210.1 with SMTP id m1mr1322160anq.64.1257348214141; Wed, 04 Nov 2009 07:23:34 -0800 (PST) Received: from ?192.168.0.2? (75-166-209-147.hlrn.qwest.net [75.166.209.147]) by mx.google.com with ESMTPS id 5sm428056ywd.53.2009.11.04.07.23.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 07:23:33 -0800 (PST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: IDEA Project generation from ant From: Brian Pontarelli In-Reply-To: <26190931.post@talk.nabble.com> Date: Wed, 4 Nov 2009 08:23:31 -0700 Content-Transfer-Encoding: 7bit Message-Id: <74BB7009-7403-44C1-B746-6C0CD9EAF85F@pontarelli.com> References: <26160045.post@talk.nabble.com> <8BDC16EB-1357-4839-BCA8-B65D4DF41DB2@pontarelli.com> <26190931.post@talk.nabble.com> To: "Ant Users List" X-Mailer: Apple Mail (2.1076) On Nov 3, 2009, at 9:44 PM, Raja Nagendra Kumar wrote: > >> I generally only generate .classpath files > > Could you tell me how you archive this with ant The .classpath format is an extremely simple XML format that tells the IDE where the source paths are and the JAR files for the project. This is the Eclipse storage format. IntelliJ can be told to use the Eclipse .classpath for its dependencies as well. This requires changes to the .iml file and it also creates an additional file ending in .eml. Then, I just use a simple Groovy script to manipulate the XML in the .classpath file with the new dependencies. I really need to update my script, but it is pretty simple to manipulate XML in Groovy and Groovy inside Ant is really simple as well. I believe the best method is to load the .classpath into the Groovy XML objects, remove all the elements whose type attribute is "var" and then generate new elements for each of the project's dependencies. The generation of the new elements will depend on the dependency management tool you are using. -bp --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org