Bulk token substitution

2005-11-09 Thread Brown, Carlton
Hello, I'm looking to do bulk replacement of tokens in a file. This is to replace a perl-based build solution.I have created the single-replacement solution in ant, but I am somewhat stumped as to how to do a bulk substitution. The following code copies all files named *.src to a ne

Using mappers with delete task

2005-11-09 Thread Brown, Carlton
If I have a number of files in /src with a suffix of .foo, then how can I specify to delete the un-suffixed files in /build ? For example, if I have files /src/Script1.foo and /src/Script2.foo, files to be deleted would be /build/Script1 and /build/Script2 To accomplish this, I tried us

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 09, 2005 2:24 PM > To: Ant Users List; Brown, Carlton > Subject: Re: Using mappers with delete task > > On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton wrote: >

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
nesday, November 09, 2005 3:44 PM > To: Ant Users List; Brown, Carlton > Subject: RE: Using mappers with delete task > > On Wed, 9 Nov 2005 15:03:27 -0600, Brown, Carlton wrote: > > You need to tell if you want us to narrate the docs: > > The tag supports the use of a conta

Subdirectory problem/always recompiles

2005-11-18 Thread Brown, Carlton
I've got a situation where the directory structure of the source code doesn't exactly correspond to the package structure, and therefore the javac task always recompiles. Due to a number of policy considerations I can't change the dir structure, so I've tried to work around this with some clever

RE: Subdirectory problem/always recompiles

2005-11-18 Thread Brown, Carlton
> -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Friday, November 18, 2005 6:32 PM > To: Ant Users List > Subject: Re: Subdirectory problem/always recompiles > > --- "Brown, Carlton" <[EMAIL PROTECTED]> > wrote: > &

RE: Subdirectory problem/always recompiles

2005-11-18 Thread Brown, Carlton
> -Original Message- > From: Brown, Carlton > Sent: Friday, November 18, 2005 6:15 PM > To: Ant Users List > Subject: Subdirectory problem/always recompiles > > I've got a situation where the directory structure of the source code > doesn't exactly corres

RE: Subdirectory problem/always recompiles

2005-11-20 Thread Brown, Carlton
> -Original Message- > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 20, 2005 10:55 AM > To: Ant Users List > Subject: Re: Subdirectory problem/always recompiles > > > I stumbled on a solution that worked for me, using multiple path entries > > as attributes o

RE: Subdirectory problem/always recompiles

2005-11-21 Thread Brown, Carlton
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Monday, November 21, 2005 12:24 PM > To: Ant Users List > Subject: Re: Subdirectory problem/always recompiles > > Dominique Devienne wrote: > >>I've been though a similar exercise with 50 developer separated over

Question on how to to debug mapper issues

2005-11-21 Thread Brown, Carlton
As I'm learning Ant, one thing I miss bitterly is the ability to print, echo, or otherwise inspect every piece of data in order to see where things are going wrong. I'm having some trouble with a mapper statement, and if anybody could tell me how to observe what's getting matched by the asterisk,

RE: Question on how to to debug mapper issues

2005-11-21 Thread Brown, Carlton
> -Original Message- > From: Ivan Ivanov [mailto:[EMAIL PROTECTED] > Sent: Monday, November 21, 2005 9:09 PM > To: Ant Users List > Subject: Re: Question on how to to debug mapper issues > > Hello, > > in most cases I have found that running ant in verbose > or in debug mode by supplying

Cross-platform portability problem for copy/filterset

2005-12-01 Thread Brown, Carlton
All: A build file that I had developed under Windows started throwing a strange error when I tried to run it on a Linux box. The error is "failed to copy due to null" (not terribly informative). Has anyone seen this before? I saw the question asked on usenet before but no answer was given.

Inheriting patternset refid

2005-12-02 Thread Brown, Carlton
Is it possible to declare a patternset with a reference id in a build file, and be able to dereference that id in another build file called by the task? There's a patternset that I keep using over and over in my build files, and it would be nice if there were a way to specify it once and be able

RE: Inheriting patternset refid

2005-12-04 Thread Brown, Carlton
> > Is it possible to declare a patternset with a reference id in a build > > file, and be able to dereference that id in another build file called by > > the task? There's a patternset that I keep using over and over > > in my build files, and it would be nice if there were a way to specify > >

RE: How to use ANT as a command shell

2005-12-06 Thread Brown, Carlton
> -Original Message- > From: Michael Giroux [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 06, 2005 10:18 AM > To: Ant Users List > Subject: How to use ANT as a command shell > > I'm attempting to develop platform neutral launch scripts using ANT. The > product currently has bin/nt an

RE: help with copy and glob mapper

2005-12-13 Thread Brown, Carlton
> -Original Message- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 3:54 PM > To: user@ant.apache.org > Subject: help with copy and glob mapper > > We have a series of templates in a particular directory and I was hoping > to use copy/glob mapper/expand p

OutOfMemory exception after introducing task

2005-12-16 Thread Brown, Carlton
Anybody ever get an OutOfMemory exception after introducing the task into their build? Where and how exactly do I increase my memory to avoid this exception?

Setting memory options for Ant in Eclipse

2006-01-17 Thread Brown, Carlton
Hi all, When running Ant from Eclipse, how does one set the -Xmx and -Xms memory options inside Eclipse? I've poked around and cannot seem to do it. (This is to fix OutOfMemory exceptions that occur when I use the task.) I've tried launching Eclipse with -Xmx and -Xms options set. I unde

RE: text books on ant

2006-01-18 Thread Brown, Carlton
I echo the previous comment, get "Java Development With Ant". It's very good although I found some of the sample code and explanations a bit lacking at times. > -Original Message- > From: Tommy Nordgren [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 1:58 PM > To: user@ant.a

junit task sometimes creates zero-length result files

2006-01-27 Thread Brown, Carlton
The ant task seems to create zero-length output files for a few of my unit test classes. It does so without reporting any errors but of course of course chokes on them complaining about premature EOF. Does anyone have any suggestions as to how to troubleshoot a problem like this? Thanks

Question on error

2006-02-09 Thread Brown, Carlton
Trying to understand some things about this error here... I don't believe I should be getting it, yet I am. "The class (ClassA) in file (file) is out of date due to (ClassfileA) but has not been deleted because its source file could not be determined." I have a few issues here... 1) The s

scp "auth cancel" error

2006-04-05 Thread Brown, Carlton
Can anyone shed light on this scp failure? It's possible I made a mistake although I checked my work. The output: ship: [scp] Connecting to some.host.com:22 BUILD FAILED D:\dev\R2.0\src\test\build.xml:9: com.jcraft.jsch.JSchException: Auth cancel The target code:

RE: scp "auth cancel" error

2006-04-07 Thread Brown, Carlton
> -Original Message- > From: Robert Clark [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 5:41 PM > To: user@ant.apache.org > Cc: Brown, Carlton > Subject: Re: scp "auth cancel" error > > On Wednesday April 5, 2006 17:23, "Brown, Carlto

Copy paradox - permissions and filters

2006-04-07 Thread Brown, Carlton
All: I have found a dilemma on what ought to be a simple task. I need to copy some files from one location to another and run them through a filter. OK, great. Ant has filters I can use. Wait... these are scripts. They need to be executable. Ant's copy task doesn't preserve file permi

Printing out patternsets and/or filesets

2006-04-18 Thread Brown, Carlton
Hi, I need to know if there is a way to print out a patternset or fileset for debugging. Likesay if I've specified a patternset and given it an ID: Or for a fileset, similar situation. How do I go about displaying the list of what the f

RE: Printing out patternsets and/or filesets

2006-04-19 Thread Brown, Carlton
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 19, 2006 1:36 AM > To: user@ant.apache.org > Subject: AW: Printing out patternsets and/or filesets > > > > patternset: ${ps.value}"/> > > > Jan > > > >With pathconvert you can convert the

sshexec hangs after remote script exits

2006-05-02 Thread Brown, Carlton
I've got an sshexec command that calls a remote script. The remote script can take something like 5-15 minutes to run. Trouble is, the sshexec never detects that the script exists. What have I done wrong? Carlton Brown BellSouth Science & Techno

RE: sshexec hangs after remote script exits

2006-05-11 Thread Brown, Carlton
What version of ssh server are you > running? Also, try to see if you can get a script to return that takes > like 2 min, 3 min, etc. Write a little shell script that just sleeps and > see what happens, adjusting the sleep time to find the threshold that > breaks sshexec. > >

Sshexec task hanging

2006-08-08 Thread Brown, Carlton
I've got an sshexec task that never exits, and I need to solicit some opinions on the problem. The reasons behind it are well-known; if an ssh command starts a long-running in the background, then ssh doesn't know when it should exit. >From the purist standpoint, this is expected behavior. In pr

Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Brown, Carlton
Recently I started observing some very undesirable behavior in my Ant scripts. Specifically, when does its fixing, it also changes the file permissions to be non-executable. Now, I recognize this might be a very Clever Thing because binaries could be corruped by . But with regard to shell scrip

RE: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Brown, Carlton
missions after the fact, using which simply forks to the command line chmod executable, assuming you know beforehand which files need fixing potentially. JDK 6 or later may add support for permissions, by right now there are no good work-around that I know of. --DD On 8/14/06, Brown, Car

RE: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-15 Thread Brown, Carlton
Message - From: "Brown, Carlton" <[EMAIL PROTECTED]> To: Sent: Monday, August 14, 2006 3:18 PM Subject: Unwanted behavior - fixcrlf changes files to un-executable Recently I started observing some very undesirable behavior in my Ant scripts. Specifically, when does its fixing,

outputproperty not capturing output

2006-08-28 Thread Brown, Carlton
Hi all, Basic question: What is the real significance of the "outputproperty" attribute of the task? Is this just some kind of race condition where Ant applies the output of whichever command invocation happens to run first? Observation: If I a command to more than one file, and the command

RE: outputproperty not capturing output

2006-08-29 Thread Brown, Carlton
Sorry for the repeat, but this is baffling and looks either buggy or ill-designed, and we really need to understand how it works... could someone shed some light? -Original Message- From: Brown, Carlton Sent: Monday, August 28, 2006 6:33 PM To: user@ant.apache.org Subject

Failing a javac task due to Xlint warnings

2007-03-05 Thread Brown, Carlton
Hi all, I am looking for a way to cause javac to fail if certain warnings are encountered (deprecation, etc).I did not see any attribute to that would produce such behavior. My next thought was to capture the stdout or stderr of javac into a property and then check it in a nested in a tas

RE: Getting status from javac

2007-03-07 Thread Brown, Carlton
The way I approach this problem is to have one and only one javac task in any given target. Organize targets according to the dependency graph. I think that's a more "Anty" way to do things. -Original Message- From: euge [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 10:16 P

RE: Junit test fails in ant but not in Eclipse

2007-03-07 Thread Brown, Carlton
These things almost always come down to classpath but it's hard to tell without more info. In particular I found that Java 1.3 and 1.4 are missing a lot of libs needed to run junit, but Java 1.5 already comes with everything. When you say you ran it in Eclipse, did you simply select "run as juni

RE: Junit test fails in ant but not in Eclipse

2007-03-07 Thread Brown, Carlton
r is there some actual lib missing? Cheers, //mikael -Original Message----- From: Brown, Carlton [mailto:[EMAIL PROTECTED] Sent: den 7 mars 2007 15:36 To: Ant Users List Subject: RE: Junit test fails in ant but not in Eclipse These things almost always come down to classpath but it's

Escaping double quotes in properties?

2007-03-11 Thread Brown, Carlton
I'm trying to store double quotes in a property, to print out a phrase like: It's spelled "potatoe" The manual provides only this cute bit of advice: Want unusual characters? Escape them \u0456 or \" style. Problem is, it doesn't seem to work, or I'm misunderstanding it:

Regarding

2007-03-15 Thread Brown, Carlton
If I have a property that contains the a fully qualified name of a class, in dotted notation, how can I use this property to reference a file path that has no dotted notation? I looked at the unpackage mapper, but that only re-maps actual files that are saved on disk with dotted notation. I looked

Conditional dependencies

2007-03-19 Thread Brown, Carlton
There's a build behavior pattern I keep hitting, but I don't know how to resolve in Ant. How can I specify a dependency chain among targets such that the dependency chain can be "short-circulted" with a property that prevents all the others from being resolved? For example, lets say I have this

RE: Conditional dependencies

2007-03-19 Thread Brown, Carlton
lto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 2:34 PM To: Ant Users List Subject: RE: Conditional dependencies I sympathize with your frustration. I don't know of a better way. It would be nice if there was a -nodeps option. Here's what I do, and I have many targets: ---

RE: Conditional dependencies

2007-03-19 Thread Brown, Carlton
March 19, 2007 10:08 PM To: Ant Users List Subject: RE: Conditional dependencies I use a combination of .only targets and .skip properties to "essentially" accomplish this. ant dist.only jar.only OR ant dist -Dcompile.skip=1 -Dclean.skip=1 -Original Message- From: Brow

Default changed for antcall inheritrefs in 1.7.0?

2007-03-23 Thread Brown, Carlton
I just upgrded to Ant 1.7.0 and noticed that in many places I now must explicitly set inheritrefs="true" for my tasks. What's changed in this regard? As just a side note, it's somewhat irritating that Ant manual link now points directly to 1.7.0, and if there's a link to the previous Ant manu

Tutorial broken, need help resolving

2008-01-29 Thread Brown, Carlton
Hi all, I'm getting errors running the tutorial listed here: http://ant.apache.org/ivy/history/latest-milestone/tutorial.html which, per the instructions, "should not take more than 30 seconds if you already have ant and a jdk pr

Anyone used Archiva as repository for Ivy?

2008-02-05 Thread Brown, Carlton
I'm just wondering if anyone has experience using Archiva as a repository for Ivy, and if so do you have any pointers for accomplishing this. - This message contains PRIVILEGED and CONFIDENTIAL informat

Unexpected behavior regarding relative paths in - bug?

2008-02-12 Thread Brown, Carlton
I think I may have found a bug, can someone confirm this behavior for me: It seems that the functionality treats relative paths in an unexpected way. In the deliverpattern attribute, it appears that paths are resolved relative to the ${user.dir} system property. This is different from the u

RE: Question about resolution error

2008-02-12 Thread Brown, Carlton
] Sent: Tuesday, February 12, 2008 10:54 AM To: [EMAIL PROTECTED] Subject: Re: Question about resolution error HTTP Authentication configuration is done in the settings task: http://ant.apache.org/ivy/history/latest-milestone/use/settings.html Xavier On Feb 12, 2008 4:46 PM, Brown, Carlton <[EM

Contributing documentation

2008-02-12 Thread Brown, Carlton
I tried to begin contributing to documentation by checking out the entire site as recommended: svn co https://svn.apache.org/repos/asf/ant/ivy/site ivy-site however I can't seem to reach svn.apache.org. Is that URL still correct, or am I having a problem with my own corporate firewall?

RE: Anyone used Archiva as repository for Ivy?

2008-02-12 Thread Brown, Carlton
installation (that's the heavy part), and then configure your ivy settings correctly with something like this : http://my.local_archiva:8080/archiva/repository/internal/"/> Gilles 2008/2/5, Brown, Carlton <[EMAIL PROTECTED]>: > > I'm just wondering if anyone has

RE: Question about resolution error

2008-02-12 Thread Brown, Carlton
Repository Maven2 Central Proxy [EMAIL PROTECTED] c='null' -Original Message- From: Brown, Carlton [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 12, 2008 10:28 AM To: [EMAIL PROTECTED] Subject: Question about resolution error Hi all, I'm getting a url resolver error

Question about resolution error

2008-02-12 Thread Brown, Carlton
Hi all, I'm getting a url resolver error on a URL that is known to be valid. This URL repository does not have ivy files, but it is a mirror of Maven central repository and therefore has all the Maven metadata.I tested its validity by cutting and pasting the "tried" URL below into a browse

Bulk repository copy question

2008-02-13 Thread Brown, Carlton
In regards to copying modules from one repository to another, the documentation shows examples of copying a single module from one resolver to another, explicitly declaring the organization, module, and revision. How can I do an implicit bulk copy of all dependencies specified in a particular i

Install task collapses jar names and causes naming collision

2008-10-09 Thread Brown, Carlton
Recently I used ivy:install to install ivy-2.0.0-rc1 from Maven central into my private repository, and apparently there was some sort of naming collision. Only one jar was downloaded, named ivy.jar but it was the source jar. What is the reason for this? The maven central repo looks like this:

RE: Install task collapses jar names and causes naming collision

2008-10-09 Thread Brown, Carlton
d try to change your artifact pattern to something like this: Maarten - Original Message From: "Brown, Carlton" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, October 9, 2008 8:53:03 PM Subject: Install task collapses jar names and causes naming colli

Common practices for lifecycle and promotion in Ivy

2008-10-15 Thread Brown, Carlton
I'm curious if anyone has any good practices for implementing a full module lifecycle in Ivy, including promoting an artifact from release candidate status to final status, and sharing artifacts across projects. I've read Mathias's document already and I'm wondering if anyone else has anything to a

Use cases of resolver force mode

2008-10-23 Thread Brown, Carlton
I have a filesystem resolver which should be forced in some chains, but not in others. If I understand correctly, the current design as of RC1 would require me to define a duplicate resolver and change the force attribute in order to accomplish this. Isn't it correct that force behavior is meani

Ivy can mutate Ant properties? What?

2008-11-12 Thread Brown, Carlton
I was surprised today to observe that the ivy:info task can mutate Ant properties, which are supposedly immutable. In this snippet of Ant code, I hardcode some Ant properties. After a call to ivy:info, these properties have changed, which should not occur (as far as I understand). Can anyon

RE: Ivy can mutate Ant properties? What?

2008-11-12 Thread Brown, Carlton
roperties. The option is in the "override" attribute. If you set it to false, then you will not mutate any ANT pre-existing properties. --- Shawn Castrianni -Original Message- From: Brown, Carlton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 11:57 AM To: [EMAIL PR

RE: AW: Re: Ivy with archiva

2008-11-13 Thread Brown, Carlton
Have you granted the guest account in Archiva read permission to every repository? -Original Message- From: Burkhardt Stefan (CI/TMP) [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 9:56 AM To: [EMAIL PROTECTED] Subject: AW: AW: Re: Ivy with archiva Hi, Thanks for the repl

Zip files: elegant way of remapping directories while extracting?

2008-11-26 Thread Brown, Carlton
I am wondering how I can extract selected directores from a zip file while performing granular re-mapping of multiple directories. I have tried various techniques with but cannot find the case I'm looking for. The task allows the simple convenience re-mapping of directory structures by using a

RE: Zip files: elegant way of remapping directories while extracting?

2008-12-02 Thread Brown, Carlton
> -Original Message- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2008 11:26 AM > To: user@ant.apache.org > Subject: Re: Zip files: elegant way of remapping directories > while extracting? > > On 2008-11-26, Brown, Carlton &

RE: AW: Copying Folder

2008-12-22 Thread Brown, Carlton
It seems to me that you need to use the type selector. http://ant.apache.org/manual/CoreTypes/selectors.html This will build a fileset that contains files in ${basedir} but no folders under basedir. -Original Message- From: blazin

RE: how to put the artifacts in ant classpath?

2009-01-05 Thread Brown, Carlton
Is cachepath the preferred way to do this? The docs seem to suggest otherwise: "Please prefer the use of retrieve + standard ant path creation, which make your build more independent from ivy (once artifacts are properly retrieved, ivy is not required any more)." This almost sounds like it is de

RE: Download source jars from Maven Repository

2009-01-07 Thread Brown, Carlton
+1 for Ivy. Also, it has compatibility attributes for Maven repositories. -Original Message- From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Sent: Wednesday, January 07, 2009 1:55 AM To: user@ant.apache.org Subject: AW: Download source jars from Maven Repository

RE: Use cases of resolver force mode

2009-01-08 Thread Brown, Carlton
lver force mode I think I ran into this as well and I think that this suggestion would work nicely. --- Shawn Castrianni -Original Message----- From: Brown, Carlton [mailto:carlton.br...@compucredit.com] Sent: Thursday, October 23, 2008 10:46 AM To: ivy-u...@ant.apache.org Subject: Use cases o

Ant causes huge freezes in Eclipse

2009-01-28 Thread Brown, Carlton
I have noticed that when using the Ant editor in Eclipse, occasionally I get huge freezes (30 seconds or more). With the help of my trusty packet sniffer, I have traced this to the fact that my Ant script has references to a networked filesystem. It seems that when I'm not running the build fil

RE: Ant causes huge freezes in Eclipse

2009-01-28 Thread Brown, Carlton
nt>Editor>Problems>Names (add in the name of the particularly problematic build file(s) Window>Preferences>Ant>Editor>Problems: play with the severity (turn to ignore) of the configurations to see if you can improve the performance Thanks in advance Darins http://runne

RE: Ant causes huge freezes in Eclipse

2009-01-28 Thread Brown, Carlton
I found the following relevant bugs... Please vote for them if you are experiencing Eclipse freezes like this... https://bugs.eclipse.org/bugs/show_bug.cgi?id=208463 (2007) https://bugs.eclipse.org/bugs/show_bug.cgi?id=256260 (2008) -Original Message- From: Brown, Carlton

RE: newbie: why does log4j pull down all sorts of files?

2009-02-04 Thread Brown, Carlton
...@ant.apache.org Subject: RE: newbie: why does log4j pull down all sorts of files? conf="default->master" worked great. what is that trying to say exactly? pull the default conf from the log4j dependency? whats "->master" do? many thx Brown, Carlton-2 wrote: > >

Non-concurrent resolve hangs with artifact-lock enabled

2009-03-18 Thread Brown, Carlton
I'm trying to use artifact-lock strategy, and it's failing to get a lock on one particular module at resolve time (which causes resolve to fail). There are no concurrent operations on the cache as far as I can tell. Can anybody give me a hint how to figure out this problem? Here's my verbose/de

RE: Artifact Lock Failures

2009-03-26 Thread Brown, Carlton
I did not know there is an actual lockfile, where is it located? This might explain some selective lock failures I have been experiencing during resolve. -Original Message- From: Sam Berlin [mailto:sber...@gmail.com] Sent: Wednesday, March 25, 2009 5:38 PM To: ivy-u...@ant.apache.org Su