AW: Executable Jar using GUI?

2008-02-14 Thread Jan.Materne
An executable jar is still a jar file with the "Main-Class" attribute in the manifest [1,2,3]. If you rely on other libraries, you can a) include the content of the other jars in your jar [4,5] b) set the "Classpath" attribute in your manifest and have the other jars relative to yours [3,6

Re: conditional statements

2008-02-14 Thread Bill Rich
First I must say that Ant is not a process language it is a rules language so tasks like and do not belong in Ant. Now, is this more like what you want... X is True! X is False! Yadda... Yadda... Yadda... Fully testing this snippet is left as an exerc

Re: conditional statements

2008-02-14 Thread Robin Chaddock
[quote] ...but you must include the ant-contrib-xxx.jar file in your Ant's classpath... [/quote] It's a lot neater, and portable to other peoples configurations if the antcontrib lib jar is simply specified in the classpath attribute of the appropriate taskdef[s]. e.g. classpath="*${ant-con

Re: conditional statements

2008-02-14 Thread David Weintraub
It's been that way for years. I first used Ant in 2002, when Ant 1.5 just came out, and the very same AntContrib tasks such as and were there. Six years later, Ant is at version 1.7, and there is still no or task in Ant. On Thu, Feb 14, 2008 at 5:06 PM, Daffin, Miles (IT) <[EMAIL PROTECTED]> w

Re: conditional statements

2008-02-14 Thread David Weintraub
In standard Ant, you use the task to set a property, then you can use to call a task. Yadda... Yadda... Yadda... X is True! X is False! A little complex, but that's how it's done. AntContrib (as others have pointed out) has an task:

RE: conditional statements

2008-02-14 Thread Daffin, Miles (IT)
When do you think the contrib stuff will be included in ant proper? It would seem to make sense - its so well known and widely used. Miles > -Original Message- > From: Scot P. Floess [mailto:[EMAIL PROTECTED] > Sent: Thursday 14 February 2008 19:52 > To: Ant Users List > Subject: Re: con

Re: Check process on remote host - Can Ant do that ?

2008-02-14 Thread David Brown
Hello Steve, I am subscribed to various MLs such as Ant and Tomcat because I seem to find something that grabs my interest almost daily. And, the smartfrog link below is no exception. I went directly to smartfrog and I have been reading avidly for several hours. And, I agree with the rhetoric so

Re: conditional statements

2008-02-14 Thread Scot P. Floess
If you want true if/then/else, I'd recommend looking at ant-contrib (http://ant-contrib.sourceforge.net/) - there are some tasks there... One of which is if/then/else as well as switch/case If you want to use stock Ant, you can get creative with targets. However, based on your posting I surm

conditional statements

2008-02-14 Thread jonese
How would i do something like if x = true{ stuff }else{ other stuff } in ant? basically i want to see if a property is true and if it is do x instructions, if it's false do y. jonese - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Only one ant command is executing in batch file and not executing other commands after ant in batch file

2008-02-14 Thread David Weintraub
The easiest thing is to create another build.xml which will do to the two other build.xml files. That will allow you to create a single email. On Thu, Feb 14, 2008 at 7:07 AM, Vishnumalakala, Santa <[EMAIL PROTECTED]> wrote: > This will send two mails separately. > But I need to send only one ma

Re: Executable Jar using GUI?

2008-02-14 Thread Steve Loughran
Sameer Borwankar wrote: Hi All, Can anyone please guide me regarding creating an executable jar file from existing build.xml? I tried to use Antigen gui. Can someone suggest another gui to create an executable jar file? If its a JAR file for installers: izpack -- Steve Loughran

Executable Jar using GUI?

2008-02-14 Thread Sameer Borwankar
Hi All, Can anyone please guide me regarding creating an executable jar file from existing build.xml? I tried to use Antigen gui. Can someone suggest another gui to create an executable jar file? Thanks! Sameer - Be a better friend, newshound, and know-i

Re: Only one ant command is executing in batch file and not executing other commands after ant in batch file

2008-02-14 Thread Ramu Sethu
The above example sends two mail. If u want the both the results in a single mail, i think u should go for another build.:-) On Thu, Feb 14, 2008 at 5:24 PM, Ramu Sethu <[EMAIL PROTECTED]> wrote: > > call ant -f build1.xml -logger org.apache.tools.ant.listener.MailLogger > call ant -f build2

RE: Only one ant command is executing in batch file and not executing other commands after ant in batch file

2008-02-14 Thread Vishnumalakala, Santa
This will send two mails separately. But I need to send only one mail with these two build outputs. Thanks, Santa. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramu Sethu Sent: Thursday, February 14, 2008 5:24 PM To: Ant Users List Subject: Re: Only

Re: Only one ant command is executing in batch file and not executing other commands after ant in batch file

2008-02-14 Thread Ramu Sethu
call ant -f build1.xml -logger org.apache.tools.ant.listener.MailLogger call ant -f build2.xml -logger org.apache.tools.ant.listener.MailLogger see to that u set the required properties mentioned here http://ant.apache.org/manual/listeners.html#MailLogger Hope this helps you On Thu, Feb 14, 2008

conflicts

2008-02-14 Thread Neil Lott
I have three configurations: interface, server, test server extends interface test extends server Here's my ivy.xml dependencies: conf="interface->default"/> conf="server->default"/> conf="server->default"/> conf="server->default"/> conf

Re: Check process on remote host - Can Ant do that ?

2008-02-14 Thread Steve Loughran
Z W wrote: Steve L Thanks for your response. Sounds like another huge learning curve for me. Is there any other way in Ant besides having to learn sf ? I'm unsure if I have the time bandwidth to experiment with. 1. If you can use conditions to check for the remote state, then you can do stuff

Re: Commons Configuration and Ivy

2008-02-14 Thread Emmanuel Bourg
Xavier Hanin a écrit : I think the problem comes from the metadata in the maven 2 repo: commons-configuration 1.4 depends on commons-jxpath 1.2 in scope compile, which in turn depends on servletapi 2.2 in scope compile too. According to maven 2 scope management documentation [1], it's normal you

Re: checksum task: how can you use hash in a separate directory

2008-02-14 Thread Martin Ficker
Hi, pathconvert can be used to perform "String manipulation" on filesets or pathes. The following would echo a linebreak seperated list of the files: (append after the previous example) ${result.prop} For further manipulation as a fileset you cou

Re: Issue with fileset of copy task

2008-02-14 Thread Peter Reilly
? this has already been answered ? On Thu, Feb 14, 2008 at 8:15 AM, dheeraj tandon <[EMAIL PROTECTED]> wrote: > Hi, > > I have 2 machines and both has same ant(1.6.5) and java(1.5) versions. > > When i compile a code in both the machine, > > Machine 1 acts correctly. But in Machine2 the fileset

Re: Incomprehensible warning from new Ant

2008-02-14 Thread Peter Reilly
The message means that the reference has been defined in a target that has not been invoked at the time where the reference is used. For example: so which "compile.path" is used when: ant 1 run ant run ant 2 run In ant 1.7.0,

Re: Updated IVY-725

2008-02-14 Thread Neil Lott
Ok, hopefully there's enough info now. On Feb 13, 2008, at 12:26 PM, Xavier Hanin wrote: On Feb 13, 2008 8:06 PM, Neil Lott <[EMAIL PROTECTED]> wrote: Hi Xavier, I've updated the JIRA bug. Let me know if there is anything else I can provide. See my last comment on the JIRA bug. Xavier

Re: NPE from SshCache

2008-02-14 Thread Xavier Hanin
Indeed, could you open an issue in JIRA to track this down? Xavier On Wed, Feb 13, 2008 at 10:21 PM, testn <[EMAIL PROTECTED]> wrote: > > The problem came from the fact that host name is missing. The error > message > should be clearer... > > > testn wrote: > > > > Any idea what I need to do to

Issue with fileset of copy task

2008-02-14 Thread dheeraj tandon
Hi, I have 2 machines and both has same ant(1.6.5) and java(1.5) versions. When i compile a code in both the machine, Machine 1 acts correctly. But in Machine2 the filesets are copied in the reverse order. i.e., Example: (trimmed) In Machine1 fileset 1,2,3 copied in order, But In machine2

Incomprehensible warning from new Ant

2008-02-14 Thread Alexander Pavlenko
After upgrading from Ant 1.6.5 to Ant 1.7 my build script displays strange warning - Warning: Reference classpath-xjc has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-e