Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 26047 invoked from network); 30 Oct 2008 09:56:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 09:56:07 -0000 Received: (qmail 83898 invoked by uid 500); 30 Oct 2008 09:56:12 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 83863 invoked by uid 500); 30 Oct 2008 09:56:11 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 83852 invoked by uid 99); 30 Oct 2008 09:56:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 02:56:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 09:54:54 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id m9U9t28Q020948 for ; Thu, 30 Oct 2008 10:55:02 +0100 Received: from z011101.bk.fin.local ([130.11.7.101]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Thu, 30 Oct 2008 10:55:02 +0100 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011101.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Thu, 30 Oct 2008 10:55:02 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: AW: ProjectHelper (was Re: EasyAnt project) Date: Thu, 30 Oct 2008 10:55:02 +0100 Message-ID: <9EE86F1965E19E499C80DE52AC807B5501B6F604@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ProjectHelper (was Re: EasyAnt project) Thread-Index: Ack552KkklyrB01nQNqxYvWDAfXdWAAjgZgA References: <16792.48623.qm@web55106.mail.re4.yahoo.com> From: To: X-OriginalArrivalTime: 30 Oct 2008 09:55:02.0651 (UTC) FILETIME=[941134B0:01C93A75] X-Virus-Checked: Checked by ClamAV on apache.org >My "build file" is going to look like this (I'm making up half of it): > >@Project(Name=3D"example", DefaultTarget=3D"echo") >public class BuildFile extends JavaFrontBuildFile { > public BuildFile(Project p) { > super(p); > } > > @Target > public void echo() { > getProject().log("Hello world"); > } > > @Target(Name=3D"-setproperty") > public void setProperty() { > taskBuilder().newProperty().withName("world").andValue("world") > .execute(); > } > > @Target(Depends=3D"-setproperty") > public void moreComplexExample() { > taskBuilder().newEcho().withMessage("Hello ${world}").execute(); > } >} Looks like Leafcutter: https://leafcutter.dev.java.net/ public void backup(boolean enabled){ init(); if (enabled){ File sourceDir =3D new File("src/main"); TaskRunner.run("copy todir=3Dhome/backups verbose=3Dtrue (fileset dir=3D${1} includes=3D**/*.txt)", sourceDir); } } Jan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org