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
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
[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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
? 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
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,
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
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
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
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
25 matches
Mail list logo