Assuming no use of AntContrib, you can pass the name of a property to the
Macrodef, which it would set. This property could then be used in an Ant
condition. I'd give in and use AntContrib though, since it gives you an
task.
-Original Message-
From: Steve Amerige [mailto:steve.amer.
You could try something like includes="*", but I'm not sure of the
intent of your excludes.
-Original Message-
From: rhea [mailto:karissacab...@gmail.com]
Sent: Monday, January 31, 2011 5:18 AM
To: user@ant.apache.org
Subject: how to exclude a basedir while looping using foreach
I'm far from an expert in the area of ClassLoaders, but it seems to me
the only solution is to load your tasks with the same loaderRef that is
used by the parent, if you can make no changes to the parent.
-Original Message-
From: Venkatesh Sangam [mailto:vsan...@gmail.com]
Sent: Wednesday
Put it inside a target.
-Original Message-
From: Perrier, Nathan [mailto:nperr...@ptc.com]
Sent: Wednesday, September 15, 2010 12:13 PM
To: user@ant.apache.org
Subject: Conditional import?
Hi All,
Is there a way to do a conditionally import in ant?
For example:
Or if n
t;", and a
downstream sub-process has hanging and we could get no stack info, or
debug it. We had to painstakingly identify the cause by trial and error
of many scenarios.
-Original Message-----
From: Murray, Mike [mailto:m...@ptc.com]
Sent: Friday, January 30, 2009 8:13 AM
To: Ant Users L
l, so we do not need
to impose any limit.
2) bus error in gij when requested copy size > remaining file size (this
is a bug in gij that will not be triggered anymore by ant from this
line)
From: Murray, Mike
Sent: Thursday, May 20, 2010 7:14 PM
To: user@ant.apache.org
Subject: 1.8.1 OutOf
Some 1.8.1 change is causing copies of large files to fail when max heap
is set to a "high" value. I got the error below with -Xmx800M. I
lowered it to 750 and it worked. The file being copied is 840M. A file
of 670M failed with -Xmx900M, but succeeded with 800.
It runs for 2 seconds and fa
user@ant.apache.org
Subject: AW: Zip of Jars in Path?
Which versino of Ant?
>-Ursprüngliche Nachricht-
>Von: Murray, Mike [mailto:m...@ptc.com]
>Gesendet: Mittwoch, 28. April 2010 19:42
>An: Ant Users List
>Betreff: RE: Zip of Jars in Path?
>
>BUILD FAILED
>The ty
-Ursprüngliche Nachricht-----
>Von: Murray, Mike [mailto:m...@ptc.com]
>Gesendet: Dienstag, 27. April 2010 19:33
>An: Ant Users List
>Betreff: Zip of Jars in Path?
>
>Is there any way to directly reference a zip of jars in a classpath
>definition? I've tried and , but
Is there any way to directly reference a zip of jars in a classpath
definition? I've tried and , but neither are
supported by .
I know I can extract the zip to a folder, and include the jars using a
. I'm just wondering if there is a way to avoid the
extraction.
Thanks, Mike
I filed bug report 49021: TaskDef/ScriptDef in Sub Build = Memory
Disaster
https://issues.apache.org/bugzilla/show_bug.cgi?id=49021
From: Murray, Mike [mailto:m...@ptc.com]
Sent: Saturday, March 27, 2010 12:02 PM
To: Ant Users List
Subject: Loading Groovy TaskDef/ScriptDef in Sub Builds
I have not been able to upgrade past Groovy 1.5.8, due to massive memory
issues. I've identified the exact scenario that cause problems, but I
don't know if it is a bug, or what the solution is.
The task can be used as long as the taskdef is done once, or
the taskdef uses loaderref when done
ation
On 2010-03-01, Murray, Mike wrote:
> Has anyone else noticed a degradation with 1.8.0?
Yes, for any type of task on Windows (this includes, for example,
) that used to take way less than a second.
Currently each such takes at least a second (give or take a few
millis) so if you a
Has anyone else noticed a degradation with 1.8.0?
I noticed a target that took 34 minutes to run with 1.7.1, now takes 68
minutes. This target iterates through 600 or 700 Ant projects and runs
the init target on each. I'm having trouble pinpointing where it is,
but it seems to be in the pro
You can if you convert it to a property. See
http://ant.apache.org/manual/CoreTasks/pathconvert.html
-Original Message-
From: Dalecki, Janusz [mailto:jdale...@tycoint.com]
Sent: Thursday, February 25, 2010 5:09 PM
To: user@ant.apache.org
Subject: Can I use path as property
Hi,
Can I ref
your groovy class does not need to extend Task.
Regards,
Antoine
Murray, Mike wrote:
> I've created a groovy class that (indirectly) extends Task, and I'm
> calling it from my build script, but the property setters are not
> getting called. I've even explicitly coded the set
task by my macrodef were never
passed.
From: Murray, Mike
Sent: Tuesday, December 01, 2009 11:45 AM
To: user@ant.apache.org
Subject: Custom Task using Groovy
I've created a groovy class that (indirectly) extends Task, and I'm
calling it from my build script, but the property setters ar
I've created a groovy class that (indirectly) extends Task, and I'm
calling it from my build script, but the property setters are not
getting called. I've even explicitly coded the setters, to make sure
they are visible to the Ant code.
Is there some trick I am missing, or am have I just overl
http://www.ggtools.net/grand/, which is linked from
http://ant.apache.org/external.html, works well.
-Original Message-
From: raghu guru [mailto:raghure...@gmail.com]
Sent: Thursday, May 14, 2009 11:55 AM
To: user@ant.apache.org
Subject: Utility to Generate Diagram
Hi All,
Is there any
too for
a customer stuck on windows. In any case, this is core Java functionality,
ant should support it simply for the simplifications it brings in some use
cases.
Cheers, Paul.
Murray, Mike wrote:
>
> Yes, it happens in the creation of the task's path, in Path.addExisting().
>
>
: "C:\Documents and Settings\David Weintraub\Desktop\AntProject"
will now allow me to reference the AntProject directory as just "X:"
Thus, "${basedir}" goes from over 60 character to just two. That may
give you enough space to set the path the standard way.
On
I'm setting up a classpath for a forked . I understand how Ant
wildcards work. I was previously using ant wildcards to define the
classpath, but the cmd line exceeds the windows limit when ${srclib} is
deep.
I want the classpath to include the literal string "wnc/*", which is a
I'm trying to use Java's Classpath wildcards to limit the cmd length on
forked java calls.
But, Ant is throwing it out.
dropping L:\Windchill\srclib\wnc\* from path as it doesn't exist
[java] Executing 'D:\programs\jdk1.6.0_10\jre\bin\java.exe' with
arguments:
Is there any
Has anyone experienced problems running javac tasks in parallel with
Java 1.6? I am getting inaccurate compile errors.
If I compile the modules sequentially with 1.6 it works fine. It also
works fine to compile in parallel with 1.5.
Thanks, Mike
user@ant.apache.org
Subject: Re: OutOfMemoryError: unable to create new native thread
On 2009-01-30, Murray, Mike wrote:
> All the "hung" threads display the same "blocked" scenario as
> thread-1199.
> Name: Thread-1199
> State: BLOCKED on java.io.bufferedinputstr...@1
al byte[] buf = new byte[bufferSize];
89
90 int length;
91 try {
92 while ((length = is.read(buf)) > 0 && !finish) {
93 os.write(buf, 0, length);
94 if (autoflush) {
95 os.flush();
96 }
97
Since I'm allocating the JVM 1G for Heap and 370M for PermGen, the OS
runs out of room for all the threads.
I don't know why the threads continually climb while the builds runs.
By the time it dies, the jconsole shows 888 lives threads, 890 peak and
4,013 total. It seems some of the parallel
Sounds like you are looking for this...
https://issues.apache.org/bugzilla/show_bug.cgi?id=34403
34403 zipgroupfileset should support a nested pattern
specification
-Original Message-
From: hdockter [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2008 9:14 AM
To: user@ant.ap
Can anyone tell me why the exec task, whether or not spawned, hangs in
parallel calls? It works fine if I pass -DthreadCount=1. It appears
the higher the threadCount used, the quicker it will hang, since
-DthreadCount=2 works for a while, but threadCount=5 hangs immediately.
This apparently happe
-Original Message-
From: weiji [mailto:[EMAIL PROTECTED]
Sent: Monday, October 01, 2007 6:39 PM
To: user@ant.apache.org
Subject: doing antcalls in parallel
Hi,
I have a few targets
It appears that the and tasks do not fire the
task finished event when there is a failure in the non-waiting
sequential block within the same parallel block. I plan to file a bug
report for this, but I thought I'd post to the list in case anyone has
insight into this situation.
Thanks, Mike
We are getting "input line is too long", even though we have
-noclasspath defined in ANT_ARGS. It appears the reason is that ant.bat
only clears the classpath when -noclasspath is passed directly on the
command line. Shouldn't ant.bat also call clearclasspath if ANT_ARGS
contains -noclasspath?
Try:
call ant clean build
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 2:50 PM
To: user@ant.apache.org
Subject: forking ant
I'm writing a basic window's .bat file to cd into my working folder and run ant
clean build. And when ant b
--Original Message-
From: bill/wilandra [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 8:47 PM
To: 'Ant Users List'
Subject: RE: Conditional dependencies
You could make all the targets independent and specify a blank delimited
list of targets on the command line.
Bill
-Orig
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:
-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 5:21 PM
To: Ant Users List
These will get you one level of nesting...
-Original Message-
From: Jack J. Woehr [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 5:05 PM
To: Ant Users List
Subject: Re: My
I'd be happy if they'd pleeease just add if/unless attributes to all
tasks.
-Original Message-
From: Res Pons [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 4:09 PM
To: user@ant.apache.org
Subject: My New Year Wish
I wish Ant was a full scripting language as well, so I could
Resolved:
I just stumbled across the "other way" I was seeking, which is to use
-lib, instead of -cp.
ANT_ARGS=-noclasspath -logger com.ptc.tools.build.PTCLogger -lib
L:/tools_vs/lib/BuildSupport-ant.jar
-Original Message-----
From: Murray, Mike [mailto:[EMAIL PROTECTED]
Se
This looks like a bug to me, but am I overlooking some other way to
accomplish this, besides setting the env classpath to the one jar that
contains the custom logger class? (I've used a modified ant.bat for
years to work around this, and I'm trying to get rid of my hacks.)
When defining -noclass
-Original Message-
From: Michael Pelz Sherman [mailto:[EMAIL PROTECTED]
Sent: Friday, July 29, 2005 4:05 PM
To: Ant Users List
Subject: bug in "unless"?
Hi,
In ant 1.6.2, the following seems to indicate a bug with "unless":
Executing B
-Original Message-
From: Michael Pelz Sherman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 3:04 PM
To: user@ant.apache.org
Subject: how to call "ant -projecthelp" from ant target
Hi,
I'd like to define a (default) ant
ot;unless" attribute like the
"target" tag does?
"Murray, Mike" <[EMAIL PROTECTED]> wrote on 12/06/2004 01:09:36 PM:
> It sure would be nice, but since it isn't you're left doing it the
> long, and complicated, way. That is, creating additional ta
It sure would be nice, but since it isn't you're left doing it the long, and
complicated, way. That is, creating additional targets with dependencies and
conditions to get the desired conditional behavior. The property can be set as
follows.
-Original Messa
Here is another way...
...
-Original Message-
From: Robert Mark Bram [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 7:32 PM
To: Ant
Subject: Detecting -D on command line
Hi All!
In a script where you need to respond differently to whether or not a
: Friday, October 15, 2004 3:44 PM
To: Ant Users List
Subject: Re: pathconvert with regexpmapper
Mike: try
HTH,
Matt
--- "Murray, Mike" <[EMAIL PROTECTED]> wrote:
> Does anyone have an example of acceptable syntax for using a regexp mapper in a
> pathconvert?
>
Does anyone have an example of acceptable syntax for using a regexp mapper in a
pathconvert?
I've tried many ways, but none work. The documentation says more complex nested
mappers are supported. http://ant.apache.org/manual/CoreTasks/pathconvert.html
Thanks, Mike
It is probably because ext is part of your package structure.
http://ant.apache.org/faq.html#always-recompiles
Drop "/ext" from the src, and add it as an includes filter.
includes="ext/**"
-Original Message-
From: Satish Jeejula [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Just create it, it will silently do nothing if the directory already exists.
-Original Message-
From: Vikas Phonsa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 5:38 PM
To: 'Ant Users List'
Subject: checking if a directory exists
Hi
What task do u use to find out if a directo
is /home/preilly/apps/apache-ant-1.5.3-1
Peter
On Thu, 2003-07-10 at 04:39, Murray, Mike B. wrote:
> When using InheritAll=false for Ant and AntCall tasks, this seems to leave the
> "built-in" system properties from Java undefined. Is there anyway to cause these to
> be init
Is your file located relative to your basedir? You might need to use an absolute path.
-Original Message-
From: Ciramella, EJ [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:20 AM
To: 'Ant Users List'
Subject: RE: includesfile
That's an example of include, I understand that,
50 matches
Mail list logo