Re: Update manifest in jar with additional attribute

2005-10-27 Thread Antoine Levy-Lambert
Karr, David wrote: >I have a need to build a target that updates the manifest of a jar file >with an additional attribute (perhaps replace if it's already present). >If I use a jar task, with 'update="true"' and an inline manifest element >containing the property I want to add, and no files specif

Re: using ant to create lnk/exe

2005-10-27 Thread Antoine Levy-Lambert
Hello Dominik, since linkers have different names on different operating systems, if you want to be truly crossplatform, you need to use an ant task, third party or written by you, which will mask the heterogeneity of the operating systems, and invoke the appropriate linker, depending on the OS yo

Re: Custom ant task and resources

2005-10-27 Thread Antoine Levy-Lambert
Johannes Rieken wrote: >Hi everyone! > >I 've written a custom ant task which I deploy as a jar file. This jar file >contains another jar file which is read during task execution. >I'm using the static method "ClassLoader.getSystemResource(String):URL" to >access resources in jar file which usu

Custom ant task and resources

2005-10-27 Thread Johannes Rieken
Hi everyone! I 've written a custom ant task which I deploy as a jar file. This jar file contains another jar file which is read during task execution. I'm using the static method "ClassLoader.getSystemResource(String):URL" to access resources in jar file which usually works fine. However call

using ant to create lnk/exe

2005-10-27 Thread Dominik Pich
Hi, I'd like to use ant to create lnk/exe. I know about the ROXES ant taskes but wonder... is there a way to use any OS BUT Windows ... I'd like to stay cross-platform :) Thanks, Dominik - To unsubscribe, e-mail: [EMAIL PR

Re: Update manifest in jar with additional attribute

2005-10-27 Thread Rhino
Why not give it a try yourself? You'll probably get the answer more quickly than waiting for the handful of people who have actually done what you describe; you'll likely learn a few unexpected things along the way, too. I've always found that it was better for me to answer a question via my own

Update manifest in jar with additional attribute

2005-10-27 Thread Karr, David
I have a need to build a target that updates the manifest of a jar file with an additional attribute (perhaps replace if it's already present). If I use a jar task, with 'update="true"' and an inline manifest element containing the property I want to add, and no files specified, what is it likely t

SOLVED Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
fool me... the ant-contrib-jar did not have the read and execute permissions. Hind Lwahhabi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thu 10/27/2005 1:35 PM To: user@ant.apache.org Subject: FW: Classpath problem on a unix system: PLEASE HELP NEEDED Hi

FW: Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
Hind Lwahhabi. Accenture Belgium - Financial Services & Insurance Koningstraat 145 Rue Royale, B-1000 Brussels, Belgium mobile: +32 499567544 phone: + 32 2 226 75 44 E-mail:[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thu 10/27/2005 10:44

RE: How to call an ant script with parameters?

2005-10-27 Thread Rebhan, Gilbert
Yeah, put me on the list please :-) Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 12:57 PM To: user@ant.apache.org Subject: AW: How to call an ant script with parameters? Hhm - maybe I should document and publish the whole

RE: How to call an ant script with parameters?

2005-10-27 Thread Remo Liechti
Thanks :) > -Original Message- > From: Jon Skeet [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 27. Oktober 2005 11:54 > To: Ant Users List > Subject: RE: How to call an ant script with parameters? > > > Hi all > > I didnt find an answer to this in the documentaion or in the > > maili

AW: How to call an ant script with parameters?

2005-10-27 Thread Jan.Materne
Hhm - maybe I should document and publish the whole snippet library ... Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 27. Oktober 2005 12:44 >An: Ant Users List >Betreff: RE: How to call an ant script with parameters? > >Wow, what a c

RE: How to call an ant script with parameters?

2005-10-27 Thread Remo Liechti
Wow, what a cool answer :) Thank you! :) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 27. Oktober 2005 11:59 > To: user@ant.apache.org > Subject: AW: How to call an ant script with parameters? > > Use properties: > ant -f MyAntScript.xml

AW: How to call an ant script with parameters?

2005-10-27 Thread Jan.Materne
Use properties: ant -f MyAntScript.xml MyTarget -Dparam1=MyParameter1 -Dparam2=MyParameter2 Access in Ant: ${param1} ${param2} see also passing parameters to ant http://marc.theaimsgroup.com/?l=ant-user&m=110545745615637&w=2 I think I had done something ... yes in 2003. Mmh - maybe http:/

RE: How to call an ant script with parameters?

2005-10-27 Thread Jon Skeet
> Hi all > I didnt find an answer to this in the documentaion or in the > mailinglist archive: > > To run a ant script, I have to call it like this: > > Ant -buildfile MyAntScript.xml MyTarget > > I call my ant script using batch files on windows. Now I need > to set some parameters to the ant

RE: Importing files - at the end of the file or not?

2005-10-27 Thread Jon Skeet
> > They claim that an imported file is added to the *end* of the > > importing file. That would suggest to me that top-level > tasks in the > > imported file would get executed *after* the top-level > tasks in the importing file. > > I was wrong. I found out I was wrong last week. I will go

RE: cross-platform scripting in ant

2005-10-27 Thread hind.lwahhabi
Hello Jan, Yes in a ideal and logical world:)But i prefered to ask to catch people's experiences. I did not try anything yest since i am still stuck with my classpath problem:((some mof my mails are flying right now in the ether). I can't get anything to run since bsf.jar, js.jar, ant-contrib.j

AW: cross-platform scripting in ant

2005-10-27 Thread Jan.Materne
>I was wondering about the following: i used to write ant >scripts with some tasks written in javascript >using BSF(apache bsf) and rhino. >Now i would like those script tasks to be compatible with an >AIX 5.2 platform: should i change the scripting language?How >about The bsf library since IB

How to call an ant script with parameters?

2005-10-27 Thread Remo Liechti
Hi all I didnt find an answer to this in the documentaion or in the mailinglist archive: To run a ant script, I have to call it like this: Ant -buildfile MyAntScript.xml MyTarget I call my ant script using batch files on windows. Now I need to set some parameters to the ant script dynamicly, lik

Re: ant file= ... - Return Build Status to calling script ?!

2005-10-27 Thread Steve Loughran
Rebhan, Gilbert wrote: Hi, i have a delegating ant script that sets some properties and then calls another antscript. I need a way to pass the return status, means either Build Failed or Build Successful, back to the calling script. Any ideas ? Ant-contrib has a version of that lets you pa

Re: Importing files - at the end of the file or not?

2005-10-27 Thread Steve Loughran
Jon Skeet wrote: I'm trying to update our build procedures using some of the guidelines in http://www.1060.org/blogxter/resources/5/ant-1.7.pdf They claim that an imported file is added to the *end* of the importing file. That would suggest to me that top-level tasks in the imported file would

cross-platform scripting in ant

2005-10-27 Thread hind.lwahhabi
Hello all, I was wondering about the following: i used to write ant scripts with some tasks written in javascript using BSF(apache bsf) and rhino. Now i would like those script tasks to be compatible with an AIX 5.2 platform: should i change the scripting language?How about The bsf library since

RE: ant file= ... - Return Build Status to calling script ?!

2005-10-27 Thread Jon Skeet
> i have a delegating ant script that sets some properties and > then calls another antscript. > > I need a way to pass the return status, means either Build > Failed or Build Successful, back to the calling script. > > Any ideas ? I believe that if the build fails, it will throw a BuildExcept

Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
Hello , thanks for your help but i still can't sort it out:( I have written a test target to echo the properties and here is what i get(note that the lib with all the bsf jars etc.. seems to be there!). My problem seems to get worse:it does not event recognise the task! Reminder : i am on aix 5

Request for adding a presentation in Resources section

2005-10-27 Thread Ivan Ivanov
Dear Colleagues, I and Petar Tahchiev (who is also a member of ant-user list) wrote a presentation about Ant called "Ant Abilities for Building Large Projects". Could you please add it in the Resources section? Attached you will find the patch for resources.xml. A description of the presentation

RE: CVS - get files by their label

2005-10-27 Thread Remo Liechti
This worked well. Thank you Jürgen > -Original Message- > From: Remo Liechti [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 27. Oktober 2005 09:35 > To: Ant Users List > Subject: RE: CVS - get files by their label > > > > >But it works if I execute this command using WinCVS, a fat > >

ant file= ... - Return Build Status to calling script ?!

2005-10-27 Thread Rebhan, Gilbert
Hi, i have a delegating ant script that sets some properties and then calls another antscript. I need a way to pass the return status, means either Build Failed or Build Successful, back to the calling script. Any ideas ? Regards, Gilbert --

Importing files - at the end of the file or not?

2005-10-27 Thread Jon Skeet
I'm trying to update our build procedures using some of the guidelines in http://www.1060.org/blogxter/resources/5/ant-1.7.pdf They claim that an imported file is added to the *end* of the importing file. That would suggest to me that top-level tasks in the imported file would get executed *after

RE: CVS - get files by their label

2005-10-27 Thread Remo Liechti
> >But it works if I execute this command using WinCVS, a fat > client for > >CVS on Windows... > >Strange... > > Not strange, but a bug in that client. Create an alias tag > for that invalid tag, with a proper name, and it'll work. > I would call it "feature" ;-) I'll try that one with the