Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 3485 invoked from network); 21 Apr 2004 07:26:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Apr 2004 07:26:12 -0000 Received: (qmail 89579 invoked by uid 500); 21 Apr 2004 07:25:37 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 89542 invoked by uid 500); 21 Apr 2004 07:25:37 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 89422 invoked from network); 21 Apr 2004 07:25:35 -0000 Received: from unknown (HELO hksvt005.adidas.com.hk) (202.84.173.42) by daedalus.apache.org with SMTP; 21 Apr 2004 07:25:35 -0000 Received: by HKSVT005 with Internet Mail Service (5.5.2653.19) id <2589Y9L3>; Wed, 21 Apr 2004 15:24:45 +0800 Message-ID: <0C73719B94BFD711B2FF00508BB92B0A015A0B7A@HKSVT007> From: Andrew.Wong@adidas.com.hk To: user@ant.apache.org Subject: How to write an build script so that the jar get updated ONLY whe n its .class is compiled (i.e. the java get changed) Date: Wed, 21 Apr 2004 15:22:50 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C42771.74249A00" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C42771.74249A00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, How to write an build script so that the jar get updated ONLY when its .class is compiled (i.e. the java get changed) I can't do it with uptodate tag Thanks Andrew -----Original Message----- From: North Alex [mailto:Alex.North@tapiola.fi]=20 Sent: Wednesday, 21 April, 2004 3:20 PM To: Ant Users List Subject: RE: Antwort: Performing unattended daily builds with WebSphere Studio and Ant Hi I think it depends on your environment and what phase the project is = going through as to how useful and how often you need to run them, and of = course your process. We use ANT quite a lot and from within WSAD as a development aid. You = can compile, build dependency JARs, EJB deploy code, etc from within the = tool ... but you have to sit there and do it (or configure the tool to do = it). We have a few people doing different parts of an application ... a = developer can come in in the morning and run a task to refresh from the source = control system (clearcase in our case), regenerate all that is needed (other = people change their EJB interfaces, add new schemas that require JAXB = generation, and change code) and recompile ... and go get their coffee in the = meantime. It's done the same every time ... no forgetting to compile (or fully recompile) this part or regenerate some other part. The tasks are split up so that just the item you want can be run (we = also have other generations such as JAXB being peformed from the ANT = scripts). Extra tasks such as some static code checking, unit test execution, and reports can also easily be run from here. Then there is a task that = can deploy the EAR to the target environment, which calls upon the other = tasks to do it's job. For our developers, it's a great way to get things = done. Just another viewpoint on how things can be done. <=3D Alex =3D> >-----Original Message----- >From: Andre.Fleischer.lsy@hermes-lg.de=20 >[mailto:Andre.Fleischer.lsy@hermes-lg.de]=20 >Sent: Wednesday, April 21, 2004 9:48 AM >To: Ant Users List >Subject: Antwort: Performing unattended daily builds with=20 >WebSphere Studio and Ant > >Hi, > >why should I use the Wesphere Studio (WSAD) as environment for=20 >my daily builds ? I did not see any benefits. > >We are using WAS (Websphere applicationsever) as application=20 >server and WSAD as IDE. The developers are doing their builds=20 >within the WSAD without any buildscripts. Our nightly builds=20 >and our relase builds are done using some core ant tasks=20 >(compile, jar, war, ear) and some of the optional tasks ( ftp,=20 >clearcase-task) . The generation and compilation of the=20 >ejb-deployment-code is done using websphere specific tasks=20 >provided within the WAS. > >I tried to reuse our build scripts within the IDE to support=20 >the build of the developers, but I did not see any benefinits:=20 >The generation of the deployment code tooks too long to be=20 >done during every build. So the developer generate the=20 >deployment code only when necessary. The generation of the=20 >jar, war, ear files are done automatically by WSAD, so the=20 >developers do not need the ant tasks. And the developers do=20 >not need the whole ear. By using only selected components we=20 >decreased the startup time of the internal Websphere Test=20 >Environment dramatically. So only the compilation is left=20 >behind, but this can be done easily by using Refresh oder=20 >using the rebuild all/ rebuild project. > >We are using ant scripts, to schedule our builds on a regular=20 >basis. Then we need to be sure that the latest sources are=20 >compiled. We also need to be sure that the deployment code is=20 >generated using the latest soures. > >Andr=E9 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C42771.74249A00--