Strip a dirname from a property that represents a path

2009-04-09 Thread Eric Wood
I have a property that is a path reference to a jar file and I want to get the directory name for the element. The task dirname works with a file to set a property, but is there a simply solution to grabbing the path to from a file. I assume that I could use the ant-contrib PropertyRegex task, bu

conditionally set an ANT path reference

2009-03-20 Thread Eric Wood
I'm building a path reference using the following: The problem I have is that the dir dir.mq.lib does not exist on all servers and when use this path reference to compile, the compile

RE: ANT redirector question

2009-03-16 Thread Eric Wood
ror output to a file or property and then echo it after the fact? -Matt ____ From: Eric Wood Sent: Monday, March 16, 2009 3:10 PM To: Ant Users List Subject: ANT redirector question I'm running a command that I want to suppress standard out, but not standar

ANT redirector question

2009-03-16 Thread Eric Wood
I'm running a command that I want to suppress standard out, but not standard error. I use the following code: But it seems to redirector standard error to standard out. If I add the parameter: What I want is to have standard error be lef

RE: ANT javac tager option issue

2008-12-19 Thread Eric Wood
w. E -Original Message- From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com] Sent: Friday, December 19, 2008 12:08 PM To: Ant Users List Subject: Re: ANT javac tager option issue You need source="1.4" as well. Peter On Fri, Dec 19, 2008 at 4:18 PM, Eric Wood wrote: >

ANT javac tager option issue

2008-12-19 Thread Eric Wood
My java is a 1.5 compiler, but I running the javac using a target="1.4 and the output keeps giving me JAVA 1.5 compiler errors: [javac] /ClearCase_Storage/viewroot/Ecommerce/ecomm_commerce_suite/build_ECOMM_1 5.0_Integration/vob/ecomm_commerce_suite/AppServer/WebSphereCommerceServ erExten

RE: ANT resource selector examples

2008-10-30 Thread Eric Wood
tag, 30. Oktober 2008 15:14 >An: Ant Users List >Betreff: Re: ANT resource selector examples > >files="bar,baz,blah" /> > > > > > > > > >HTH, >Matt > >--- Eric Wood <[EMAIL PROTECTED]> wrote: > >> Can somebody point

ANT resource selector examples

2008-10-30 Thread Eric Wood
Can somebody point me to some examples on how to use resource selectors on filelists? The manual page is a little terse and I having a hard time finding good examples. I trying to understand how to use and to select non-existing files in the filelist. Thanks, Eric

RE: Can I build up a list? If so, how?

2008-10-29 Thread Eric Wood
che Nachricht- >Von: Eric Wood [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 21. Oktober 2008 21:47 >An: Ant Users List >Betreff: ANT: Can I build up a list? If so, how? > >I'm writing some path validation code and want to be able to build a >list of path elements

ANT: Can I build up a list? If so, how?

2008-10-21 Thread Eric Wood
I'm writing some path validation code and want to be able to build a list of path elements that do not exist in the file system. Does anybody know what construct to use to build a list that I can then display all of the results once? Eric

target conditional and dependency issue

2008-08-22 Thread Eric Wood
I have a target that I only want to execute if a property is set, but it executes the dependencies regardless. The code looks like this: What I have used as a work around is: This works, but it doesn't seem very ANT like. Do folks have a better, way to perfo

Issues using a path

2008-08-19 Thread Eric Wood
When I create the following path reference: Only the two good jars are found in the path reference. I want to know if an

Validation of a path reference

2008-08-18 Thread Eric Wood
I use a path reference to gather jar files from a file system for packaging in our EARs. An issue that I have had is that if I screw up the path, then the file is not gathered for the packaging and this is not found until the application goes to our test environment. It there any utility that I c

RE: How can I override property value?

2008-06-23 Thread Eric Wood
Try >From ant-contrib http://ant-contrib.sourceforge.net/ -Original Message- From: Simple Easy [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 5:53 AM To: user@ant.apache.org Subject: How can I override property value? Hi, I would like to override the property value entered by

Sourceforge CPD task

2008-03-12 Thread Eric Wood
I'm looking for an easy way to detect cut-n-paste violations. The CPD task will write all cut-n-paste violations to an output file, but how do I best check to see if there are violations? I thought that I could test the file to see if it is not zero length and seemed to recall a way to check that

RE: ANT Question: How do I check for the presence of JAR files in a directory

2007-12-07 Thread Eric Wood
... Eric Wood wrote: > I'm want to set a property to check later on if there are any jar > files in a folder/directory. Available does quite seem right since I > want to wildcard for any jars. What is the best way to accomplish this task? > > Thanks for you help, Eric >

ANT Question: How do I check for the presence of JAR files in a directory

2007-12-07 Thread Eric Wood
I'm want to set a property to check later on if there are any jar files in a folder/directory. Available does quite seem right since I want to wildcard for any jars. What is the best way to accomplish this task? Thanks for you help, Eric

copy contents of a directory based on a dirset

2007-11-12 Thread Eric Wood
I have a dirset that represents the contents of a j2ee application: EAR + -- WAR This is an application that only contains a WAR, but there may be other components such as utility JARs, MDBs, etc. The EAR's build.xml has the following dirset: I want to use this dirset to package the war

How do I strip off part of the file name when I do a ANT copy

2007-10-18 Thread Eric Wood
I have a bunch of templates that I expandproperties on to produce environment specific versions using the following code: The file name ( in the property ${current.file} ) contains the name "TEMPLATE" and I want to remove once I perform this move. For e

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
he properties set in them are visible afterwards, so there must be something else wrong with your script. For example: ${set_in_runme} Buildfile: /work/reilly/learning/a/runtarget/build.xml abc: runme: [echo] hello world BUILD SUCCESSFUL Peter On 9/21/07, Er

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
e of conditonal test in ANT Opp, I hit send by accident, (gmail does not have the same key shortcuts as emacs). ... do pmd stuff On 9/21/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > > > > > > > > On 9/21/07, Eric Wood

Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
I want to only call a target ( _pmd ) if the property "pmd.jar" is set. The problem I have with the code above is that runtarget seems to run in its own JVM so properties that are set in there that I need to reference later are not available after it runs. Also, if I a

Javadoc error

2007-08-15 Thread Eric Wood
We are running javadoc against about 2500 java files and when we run it we get the following error: javadoc: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Warning: UNIXProcess.forkAndExec native error: The parameter or environment lists are too long. When looking at the

Filter a path reference to grab just the jars files

2007-06-28 Thread Eric Wood
Folks: I have a path reference that contains both jars and directories. I want to filter out just the jar reference to build a manifest. How do I apply a filter to the path reference to grab just the jar files that are listed in the reference? Eric

Ant 1.7.0 and Junit error

2007-06-08 Thread Eric Wood
When I run JUNIT (using junit-3.8.1.jar) on my code I get the following error: java.io.FileNotFoundException: /cclocal/viewroot/content_management/wim/build_wim_Integration/vob/conte nt_management/wim/WIM-Service/junitvmwatcher1813934409.properties (No such file or directory) [junit] at j

Subant and inheritrefs question

2007-05-30 Thread Eric Wood
I have a question about how this should work. I have an outer wrapper script that executes a subant as follows: Wrapper.xml This in in turn executes a further subant as follows: Ear.xml The

RE: How to best create environment specific properties in an applications property file using ANT

2007-02-26 Thread Eric Wood
oad two of them: (prod,test,dev...) build.properties contains all properties and in the other files you could overwrite (that's why it's loaded first) specific values. Jan >-Ursprüngliche Nachricht- >Von: Eric Wood [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 26. Febr

How to best create environment specific properties in an applications property file using ANT

2007-02-26 Thread Eric Wood
Folks: I'm looking at how to best create different copies of an application property file using ANT. I have a property file that contains two sections: one section with environment specific settings that will vary as it is deployed across test, QA, and production servers and one section that is c

RE: Trying to convert a path reference to use as a fileset for packaging jars in an ear

2007-01-24 Thread Eric Wood
k Ant-1.7 supports copying paths. Otherwise, you can use Ant-Contrib's Jake Quoting Eric Wood <[EMAIL PROTECTED]>: > Folks: > > I use > > ... > > which is composed of various filelists and filesets referencing jars > used to build my application. I use this r

Fileset ignores dir when using a includesfile

2006-10-26 Thread Eric Wood
I using the following fileset in the PMD task and it appears to ignore the dir and look for the includesfile in the directory that I am running ant from. Has anybody else seen this? I have run it in debug mode and the fileset directory appears to be corr

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
phase You cannot specify a remote fileset. Filesets can only be used to specify local files. -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 10:24 AM > To: Ant Users List > Subject: RE: ANT's Scp fails with

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
pecified a knownhosts file. Either specify a knownhosts file or trust="true". -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 10:07 AM > To: Ant Users List > Subject: RE: ANT's Scp fails without a passpha

RE: ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
Users List Subject: RE: ANT's Scp fails without a passphase Specify an empty passphrase. -Rob A > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 08, 2006 9:53 AM > To: Ant Users List > Subject: ANT's Scp fails without a passp

ANT's Scp fails without a passphase

2006-06-08 Thread Eric Wood
I can't seem to run ant's scp without a passphase even though the key that I generated and have distributed to the remote machine was generated without a passphase. Any idea how I can get ant's scp to work without specifying a passphase? Eric

Exception executing scp on IBM's WebSphere 1.3.1 java

2006-05-19 Thread Eric Wood
I'm attemptiong to execute ANT's scp task on a box that contains IBM WebSphere's 1.3.1 java. I get the following exception: java.lang.NoSuchMethodError: java.net.InetAddress: method getByAddress([B)Ljava/net/InetAddress; not found I'm assuming that I can't run the version of scp provided by t

Problems with exec

2006-05-01 Thread Eric Wood
As the on-line documentation suggests, I am using exec to copy some files on UNIX to preserve permissions, but exec is taking my wildcard as translating it as a literial. I'm attemping to copy all files in a subdirectory to another directory using: cp -R * destinationDir But the exec comman

RE: How can I keep an import statement from resetting a path id?

2006-04-10 Thread Eric Wood
Thank you for the explanation. Eric -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 11:43 AM To: Ant Users List Subject: Re: How can I keep an import statement from resetting a path id? I short Eric, id attributes are handled different

How can I keep an import statement from resetting a path id?

2006-04-10 Thread Eric Wood
Is there a way to conditonally set a path id for a classpath when I'm importing a file? I have two files that I import from a build.xml. The first file sets a path id for my classpath and the second one resets it when the file is imported even though the path id is set in a target with an condit

Issue overriding a target in build.xml that is importing other build files with the same target

2006-03-09 Thread Eric Wood
I have a build.xml (A.xml) that defines: A.xml imports a build.xml file (B.xml) which does NOT have a deploy target. B.xml imports a build.xml file (C.xml) which does have a deploy target. C.xml imports a build.xml file D.xml) which does have a deploy target. So A.xml imports B.xml which impo

Include/exclude precedence

2006-03-06 Thread Eric Wood
Wondering how the precedence of include and exclude nested elements works in a fileset. I was trying to exclude a few build.xml files in a subdirectory; here is my code snippet: It appeared to exclude the build.xml in the Clea

RE: Check if files exist in a folder before I tar

2006-02-28 Thread Eric Wood
e.org Subject: AW: Check if files exist in a folder before I tar Jan >-Ursprüngliche Nachricht- >Von: Eric Wood [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 28. Februar 2006 16:50 >An: user@ant.apache.org >Betreff: Check if files exist in a folder before I tar > &

Check if files exist in a folder before I tar

2006-02-28 Thread Eric Wood
What is the easiest way to check if files exist in a folder prior to attempting to back them up via tar? Tar fails if I run it asking it to back up files and no files exist. Eric

fileset includes and excludes precedence

2005-06-22 Thread Eric Wood
rameters? Is there a precedence applied? Eric Wood [EMAIL PROTECTED] 207.552.2306

built-in property for the invoking target?

2005-06-03 Thread Eric Wood
arget, but this doesn't seem very ant-like. Is there a better way? Eric Wood [EMAIL PROTECTED] 207.552.2306

How do I escape a white space in my nested include?

2005-05-16 Thread Eric Wood
aking it a coma separated list and quoting the second directory. Neither worked. Eric Wood [EMAIL PROTECTED] 207.552.2306

Re: dirset and relative path problem

2005-05-16 Thread Eric Wood
The ".." in the dir parameter for dirset seems to work. Thanks for you help. Eric Eric Wood [EMAIL PROTECTED] 207.552.2306 >>> [EMAIL PROTECTED] 05/16/05 09:10AM >>> Just a shot, but can you use ".." as the basedir of the dirset and then use include pat

dirset and relative path problem

2005-05-16 Thread Eric Wood
reference these directories relatively. Does anybody know how I can relatively reference directories that contain classes? Eric Wood [EMAIL PROTECTED] 207.552.2306

Re: ant property

2005-02-25 Thread Eric Wood
There is a variable task (under their Property Tasks) in ant-contrib. Very useful. http://ant-contrib.sourceforge.net/ eric Eric Wood [EMAIL PROTECTED] 207.552.2306 >>> [EMAIL PROTECTED] 02/25/05 08:51AM >>> Hello Rajiv You can't reset prop-values. You can, however, o

Re: AW: Rename a property value

2005-02-18 Thread Eric Wood
there is a variable task available from http://ant-contrib.sourceforge.net/ Eric Wood [EMAIL PROTECTED] 207.552.2306 >>> [EMAIL PROTECTED] 02/18/05 07:55AM >>> Properties in Ant are immutable - once set their value cant be change. So the order is: - specify on startup via -D

classpath question

2004-11-30 Thread Eric Wood
believe that I do not need for the wsEjbDploy task then I can get around this "Warning" (it kills the ant script). Is there some task that I can use that will let me see what is getting passed as the expanded classpath so I cane further debug this problem? Eric Wood [EMAIL

forked javac task runs out of memory

2004-01-22 Thread Eric Wood
memory allocation for the forked JVM? my task implementation is: Eric Wood [EMAIL PROTECTED] 207.552.2306