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
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
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
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
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:
>
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
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
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
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
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
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
When I create the following path reference:
Only the two good jars are found in the path reference. I want to know
if an
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
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
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
...
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
&
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
rameters? Is there a precedence
applied?
Eric Wood
[EMAIL PROTECTED]
207.552.2306
arget,
but this doesn't seem very ant-like. Is there a better way?
Eric Wood
[EMAIL PROTECTED]
207.552.2306
aking it a coma separated list and quoting the
second directory. Neither worked.
Eric Wood
[EMAIL PROTECTED]
207.552.2306
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
reference these
directories relatively.
Does anybody know how I can relatively reference directories that contain
classes?
Eric Wood
[EMAIL PROTECTED]
207.552.2306
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
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
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
memory allocation for the forked JVM?
my task implementation is:
Eric Wood
[EMAIL PROTECTED]
207.552.2306
51 matches
Mail list logo