You could make all the targets independent and specify a blank delimited
list of targets on the command line.
Bill
-Original Message-
From: Murray, Mike [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 2:34 PM
To: Ant Users List
Subject: RE: Conditional dependencies
I sympathize w
Try using " --
HTH Bill
-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 11, 2007 3:49 PM
To: Ant Users List
Subject: Escaping double quotes in properties?
I'm trying to store double quotes in a property, to print out a phrase
like:
It's spelled
Start with (1) for general Ant library dependencies. For other Ant tasks
(e.g., antcontrib) you will need to check their documentation. For Ant used
in an IDE check the IDE documentation.
If you use the Ant helper scripts that come with the Ant distribution
(ant.bat or ant) you should not need to
>From the examples in the 1.6.5 manual I would assume that the following
should work. I did not try it.
HTH Bill
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 11:55 AM
To: us
Hmmm, a basic tenet of Prolog is that the rules do not have any side
effects. That is why Prolog can back track like it does. In a build process
there are many side effects in creating, modifying, and copying/moving
files. These side effects could become impossible to restore to their
original stat
There is an example from Rob Anderson included in the email thread for this
topic. It uses to do the math and in to do the
selection.
Bill
-Original Message-
From: Elaine Fortin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 16, 2006 8:08 AM
To: Ant Users List
Subject: Re: AW: Ant
The following reg ex should work for you:
[^-]*-[^-]*-(.*)
You will need to adjust it so it works in by adding
appropriate escapes.
I use the RegexCoach tool to check reg exs. It is available from
http://weitz.de/regex-coach.
HTH Bill
-Original Message-
From: Rémon van Gijn [mailto:[EM
Assuming you are on a Windows machine, then ant is a .bat file and you must
call ant from another .bat file.
HTH Bill
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Monday, October 23, 2006 3:46 PM
To: user@ant.apache.org
Subject: Using Ant commands in a batch file; h
Try this taskdef instead and see if it helps:
HTH Bill
-Original Message-
From: Muthyala, Sunil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 11:23 AM
To: 'Ant Users List'
Subject: RE: Task help
Thanks to Jan and Steve Loughran.
I tried Jan's suggestion, I get an error
Ant is a declarative language, not a procedural language. As such you can
not have a loop. You may be able to reform your Ant file into the
declarative style and avoid the loop. It takes looking at the problem with a
different mind set. The various books on Ant as well as the manual will give
some
What I found at http://www.w3schools.com/tags/ref_ascii.asp is that the at
sign can be represented at @.
I could not find another representation of it.
HTH Bill
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Monday, July 10, 2006 8:39 PM
To: user@ant.apache.org
Subject
Read through all the attachments to this email and you will find the answer
stated many times. Bill
-Original Message-
From: Jian Xu [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 5:19 PM
To: user@ant.apache.org
Subject: Re: Migration problem, Windows to Linux (how to unsubscrib
explicitly
using :
Asaf
> -Original Message-
> From: bill/wilandra [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 22, 2006 7:57 PM
> To: 'Ant Users List'
> Subject: RE: Dynamic references to properties files
>
> Isn't env a well known property
Isn't env a well known property for retrieving op sys environment vars
(e.g., ${env.MYDIR})? If so, can it ever not be set? If it is always set
then the will never fail regardless of whether the user
sets the env property or not on the command line.
Bill
-Original Message-
From: Anderso
Hi Scot, I use the attached XSL file to generate documentation for my Ant
files. This is an extension of the XSL stylesheet found at
http://www-106.ibm.com/developerworks/xml/library/x-antxsl/examples/example2
/ant2html.xsl modified to pick up some new stuff and to always display the
documentation
Ron,
Have you looked at the Forrest project to see how they use ant.
http://forrest.apache.org/
They generate a web site from XML input files and use ant to control the
process. I have not drilled down into their use of ant but it may give you
some ideas.
Bill
-Original Message-
From: Ron
Why don't you use the ant way and make jar depend on update?
If you use the antcall then a new scope is created and the properties in the
new scope are not seen in the calling scope.
If you make jar depend on update then you can just run "ant jar" and the
update target will be fired then the jar
Well you have successfully subscribed to the mailing list. Now if you could
just tell us what your problem is without including all the automatic mails
we might be able to help.
As a further aid try running ant with the -verbose option. Then read the
output and see if you can see what is happening
Subject: RE: help with exclude patterns
Using this analogy, in the code I posted the exclude tag seems to be
filtering every file from one level up. BTW, I couldn't find the fileset and
dirtasks in the ANT manual at Apache. Kindly post the URL.
Thank you
bill/wilandra <[EMAIL PROTECTED]> wrot
Both the fileset and dirtasks sections of the manual have some discussion
about patterns.
If you use name="**/*" it would mean that you want all files in all
directories in the current directory and below it.
HTH Bill
-Original Message-
From: murthy gandikota [mailto:[EMAIL PROTECTED]
Se
Having never looked at the code, but, applying a little logic to the problem
I would ask if there is a Fileset class and if that class has an addFile
method? Then you should be able to see how to make a Fileset instance and
add File objects to it. Have you tried looking at the API doc to see if you
Has anyone considered converting the docs to Forrest? Forrest is XML based
and uses Ant for its process control. Possibly coupling Forrest with
AntDoclet will yield both the web site and the PDF that is desired. Of
course, this does not preclude the important step that Daniel mentioned "You
have to
Try reg exp
Sticky\s+Tag:\s+([^\s]+)\s.*
or some variation of it. Replacement register 1 will contain the REL_1_0
from the sample string.
It says select the word "Sticky" followed by one or more whitespace elements
followed by the word "Tag" followed by a colon followed by one or more
whitespac
>From the Ant Manual section:
"There are a set of definitions that are excluded by default from all
directory-based tasks. They are:
**/*~
**/#*#
**/.#*
**/%*%
**/._*
**/CVS
**/CVS/**
**/.cvsignore
**/SCCS
**/SCCS/**
**/vssver.scc
**/.s
To get a little better understanding of what is happening in your particular
case run the Ant file with the -verbose switch. This outputs a lot of
information about how things are run. You may find something in the output
that will show you exactly what the zip task does.
I find the verbose output
IMHO. I don't think it is a matter of whether the second mkdir "completed"
or not here. As Jan said, mkdir has the responsibility to make sure the
directory exists when it ends. In the case of the first mkdir, the directory
had to be created so mkdir said it did it. In the case of the second mkdir,
I don't think the compiler version has anything to do with the error. It
looks like you have presented 2 packages (com.sun.net.ssl and class
javax.net.ssl) to the compiler each of which contains the TrustManager
class. Since the reference to the TrustManager class in the SSLSocketThread
class is no
In Ant the properties file is a Java PropertiesResourceBundle class. The
concept of a properties file is pretty simple. The properties file contains
a set of lines that have the general format of key=value. The key, =, and
value must all reside on the same line in the file. The keys must all be
uni
Have you looked at with the "if" attribute for include? I don't
know if you have enough info to set it up ahead of time but it may help.
Bill
-Original Message-
From: Mark Russell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 9:05 AM
To: ant develipers list
Subject: Dire
There is also an OpenSource project on SourceForge.net called AntForm. It
will display a menu or form that can be used for input. I found it fairly
easy to use although it has some idiosyncrasies about how it places objects
in the dialog window.
Bill
-Original Message-
From: Anderson, Rob
To run a .bat file on Windows you need to start the command shell and have
it run the .bat. I would assume that the executable would be something like
cmd. IIRC there is a thread on this list that talks about the exact same
issue.
HTH Bill
-Original Message-
From: Rhino [mailto:[EMAIL PR
Try from AntContrib. It will allow you to create a new
property value using a regular expression.
HTH Bill
-Original Message-
From: Matthew Hughes [mailto:[EMAIL PROTECTED]
Sent: Friday, February 03, 2006 9:33 AM
To: user@ant.apache.org
Subject: Filtering on property values
I have a p
I don't see TARdistributionDir being set to a value anywhere in the code you
provided. Is it set properly prior to the unTar target being run?
HTH Bill
-Original Message-
From: Bob Scaggs [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 22, 2006 10:33 AM
To: user@ant.apache.org
Subject:
Try changing the \ to / in the file.
HTH Bill
-Original Message-
From: shreedhar natarajan [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006 4:46 PM
To: Ant Users List
Subject: Reading properties
hi all,
One of my property file has key/values such as
path=something\usb
When
34 matches
Mail list logo