I am not sure if this feature is available in ant 1.7 but can't you use
namespaces to scope the macrodefs like follows
Now all the macrodefs in buildCommon.xml has to be accessed as follows
To: Ant Users List
Sent: Thursday, September 26, 2013 3:15 PM
Subject: "scoping" for macro definiti
The JVM won't look into nested jar files for classes. Eclipse has a FatJar
feature that lets you create runnable jars with nested jars within it.
for ant I think you can use one-jar. Here is a link
http://one-jar.sourceforge.net/
From: Rob Tanner
To: user@ant
Those are macrodef attributes. Look for macrodefs in ant's manual
From: Peter West
To: user@ant.apache.org
Sent: Wednesday, April 10, 2013 6:37 AM
Subject: @classpath
Where can I find documentation for usage like
?
Likewise for the other uses of "@"?
Than
Seems like you are using a fat jar( jar files within a jar file) I suspect this
error has something to do with winpack-3.6.jar. This jar contains windows
specific code, so not sure how it will run on a linux OS.
The reason for the error on Windows7 could be 32 bit vs 64 bit incompatibility.
I
Did you try setting the spawn attribute of exec task to true?
http://ant.apache.org/manual/Tasks/exec.html
From: "Knell, Charles"
To: Ant Users List
Sent: Wednesday, October 10, 2012 10:34 AM
Subject: RE: How to exit ANT after starting a Windows program?
T
You can use macrodefs to make it more readable to others.
First define a macrodef something like as follows
Now you can invoke the macrodef as follows
From: Mark Giffin
To: Ant Users List
Cc: Vimil Saju
Sent
max heap memory size is a jvm level setting that the xslt task has no control
over. The only way to specify a different heap memory size for the xslt task is
to run it in a different jvm, Running the xslt task by setting the fork
attribute to true as you showed in the second approach is the way
I think you should place the antlib.xml under the package
org.tabbysplace.ant.common in remotesynch.jar
From: Jonathan Rosenberg
To: Ant Users List
Sent: Friday, May 25, 2012 7:50 AM
Subject: Antlib Confusion
I am trying to make an Antlib & find myself ver
The email address no longer exists. For some reason it won't even try to send
the email. Even the valid addresses don't get sent to.
On Mar 27, 2012, at 7:44 PM, Vimil Saju wrote:
> By invalid do you mean the format of the email-address is invalid or that the
> email-address
By invalid do you mean the format of the email-address is invalid or that the
email-address no longer exists? If the email address doesn't exist should'nt
the sender get back a bounced email notification?
From: Eric Fetzer
To: Joe Attardi
Cc: Ant Users List
Can't you use the if task from ant-contrib?
From: "Steele, Richard"
To: user@ant.apache.org
Sent: Friday, February 17, 2012 4:34 AM
Subject: Feature request: if/unless on command line arguments
I think it would be convenient to have command-line arguments ta
This sounds good, but won't it kill processes that wasn't started by my script
too?
From: Adam Bruss
To: Ant Users List ; Vimil Saju
Sent: Wednesday, February 8, 2012 6:34 AM
Subject: RE: Regarding exec task
Set failonerror=false on the parent
Hi,
I noticed that on windows, if I use the exec task to run a batch script which
in turn starts other processes then if kill ant then the sub-processes created
by the batch script still continues to run. I did some research on google and
found that the default java implementation of Process.de
Isn't the latest version of ant 1.8.2? I heard there will a 1.8.3 release soon,
but did a 1.8.5 come out already?
From: Stefan Bodewig
To: user@ant.apache.org
Sent: Tuesday, February 7, 2012 7:01 PM
Subject: Re: Upgrading ANT from 1.6.2 to 1.8.5
On 2012-02-0
You forgot to attach the script :)
From: Solutions
To: user@ant.apache.org
Sent: Wednesday, November 16, 2011 8:54 AM
Subject: launch task in build.xml
I have seen a task "launch" in a build.xml, which I don't know it. I tried to
search on Internet but found not
The propertyset type has a negate attribute. maybe that will help you.
http://ant.apache.org/manual/Types/propertyset.html
From: Steve Amerige
To: Ant Users List
Sent: Thursday, November 10, 2011 4:50 AM
Subject: Re: Negative Lookahead and Regexp
Hi all,
So,
Ant 1.8 has extension-points which provides something similar to your use-case
http://ant.apache.org/manual/targets.html
From: Rob Seegel
To: Ant Users List
Sent: Thursday, November 3, 2011 6:40 PM
Subject: Re: Checking if a Target Exists
Steve,
For my pr
ions <http://ant.apache.org/manual/Tasks/conditions.html> page tells
us: "Types include tasks, datatypes, scriptdefs,
macrodefs and presetdefs." So, I'm not sure if target is a task. I'll check
it out.
Thanks to all!
Steve Amerige
SAS Institute, Deployment Software
___
From: Steve Amerige
To: Ant Users List ; Vimil Saju
Sent: Thursday, November 3, 2011 7:27 AM
Subject: Re: Checking if a Target Exists
Hi Vimil,
Thanks for the feedback. Any specifics on just how to do what you
mention (even if untested)?
Thanks again,
Steve Amerige
SAS I
I think you can use the scriptdef task to do this. You can write a
script within the scriptdef object to access the methods of the project object.
The project object has methods to list the targets defined under the project,
which you can use to test if a given target exists.
Btw antcall does no
It would be helpful if you could attach the build file along with the mail.
From: Rhino
To: ant-user
Sent: Saturday, October 29, 2011 5:47 PM
Subject: Target Execution Sequence
I'm having a perplexing problem and I'm hoping someone here can help me
understand
Could this be due to the urlclassloader bug in Java 6 that keeps jar files open
on windows. I heard that this bug has been fixed in Java 7.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041014
From: Stefan Bodewig
To: user@ant.apache.org
Sent: Tuesday, O
Use the trycatch task from ant-contrib
From: vino_hymi
To: user@ant.apache.org
Sent: Friday, August 5, 2011 2:02 AM
Subject: Mail task on Target failure
Hi,
I have ant project where there is set of targets. After successful
completion of all targets I call mail
Try this
set CLASSPATH=MyProject\bin
ant.bat -lib "MyProject\lib" -file build.xml
If I remember correctly, the -lib parameter is used to only add jar files to
the classpath. you can't use it to add class files to the classpath
java 6 supports using wildcards in the class path.
so you coul
If the only requirement is to check if the first line of the file is then I don't think you need to use
xmltask. You can do something as follows
Theabove task will load the first line of a file into the property
src.file.head. You can then check if it matches with ''
_
You could also use the trycatch task from antcontrib. the try task has a catch
block that executes when any of the tasks within the try block fails.
--- On Thu, 6/2/11, Eric Fetzer wrote:
From: Eric Fetzer
Subject: Re: Do things based on project success or failure
To: "Ant Users List"
Date: T
I am not sure if its a good idea to do System.exit(0), as that will terminate
the JVM.
With ant it is possible to invoke nested builds using the subant task.
In case of nested builds we may want one of the nested builds to succeed
immediately and proceed with rest of tasks in the outer build.
And if I open http://localhost:8080/ikub_MainInstance/
> I see my application
> is working.
> Does this mean that the application has been installed ok?
>
> Regards,
> Marseld
>
>
> -Original Message-
> From: Vimil Saju [mailto:vimils...@yahoo.com]
>
> S
> BUILD FAILED
> FAIL - No context exists for path ikub_MainInstance
>
> If it helps I am using: Fedora 12 and ant 1.7.1 compiled on
> October 20 2009.
>
> Best regards,
> Marseld
>
>
> -Original Message-
> From: Vimil Saju [mailto:vimils...@yahoo.com]
>
You are right. From the stacktrace I see that ant is indeed able to find the
tomcat tasks.
I think you should set the url property to "http://localhost:8080/manager";
instead of "http://localhost:8080/manager/html";
--- On Thu, 3/10/11, Marseld Dedgjonaj wrote:
> From: Marseld Dedgjonaj
>
You need to have catalina-ant.jar in your classpath as this jar contains the
tasks to manage the tomcat server.
you can either copy this jar to the ant/lib directory or use the -lib
command-line argument to specify the folder under which it is located.
Hope this helps you :)
--- On Thu, 3/10
The reason for the behavior is because the batch file runs in a separate
process. To prevent this behavior, instead of executing the batch file from the
main build.xml, you can directly invoke the generated build.xml from the main
build.xml using the subant task. Doing this makes the generated b
>
> Actually, that's the conflict I was worried about. Jenkins
> allows me
> to specify both the Java version and the Ant version. I
> WANT to use
> the Java version specified in Hudson control panel and not
> whatever
> JAVA_HOME might be set to.
>
I see, Jenkins exposes JAVA_HOME variable whic
>
> Dual Java Compilers
> ===
>
> I have a project that I build using Jenkins (previously
> Hudson) which
> allows me to choose the version of the JDK I want to use
> when building
> the project. My developers want the ability to select the
> JAVA
> compiler to use via a properties f
> Just to clarify, if I use getProject(), I'm not getting an
> error. But I
> would like to create a new Project in the Obfuscate's
> execute method where I
> want to run my tasks.
>
> Is there no way to create a new Project and run the tasks
> that I want?
It s not advisable to create a new p
> /**
> * Executes the desObfuscate task.
> */
> @Override
> public void execute() throws BuildException
> {
> myProject = new Project();
>
> // Create ANT tasks
> Task delete = (Delete)
> myProject.createTask(DELETE_TASK);
>
> }
> }
You shou
you're nuts, don't use : in property names! :P
--- On Tue, 2/1/11, Steele, Richard wrote:
> From: Steele, Richard
> Subject: Wisdom of using ":" in property name
> To: user@ant.apache.org
> Date: Tuesday, February 1, 2011, 5:53 AM
> For better or for worse, I'm using
> ":" as a separator charac
I was wondering why you can't upgrade to ant 1.8.1?
--- On Sat, 10/30/10, ritchie wrote:
From: ritchie
Subject: Re: echo a property
To: user@ant.apache.org
Date: Saturday, October 30, 2010, 1:05 PM
Dominique Devienne-2 wrote:
>
> On Thu, Oct 28, 2010 at 9:15 AM, ritchie
> wrote:
>> I crea
You will need to enable nested property expansion.ant-contrib has a Property
Helper class to expand nested properties. You will need to include this library
in your ant class path and also specify something similar to follows
--- On Wed, 10/27/10, ritchie wrote:
Thats what happens when you are being lazy :P
--- On Mon, 9/13/10, Scot P. Floess wrote:
From: Scot P. Floess
Subject: Re: Other than looking at the Ant source...
To: "Ant Users List"
Date: Monday, September 13, 2010, 11:46 AM
Good grief! I literally...literally...skipped over the "writing
I think you could use the exec task to execute the command that you normally
use on the command prompt to import the .reg file into the registry
--- On Fri, 9/3/10, Aaron Mackley wrote:
From: Aaron Mackley
Subject: insert .reg files
To: user@ant.apache.org
Date: Friday, September 3, 2010, 2:47
Come on! ant does a lot of things, but asking ant to turn a webapp into a
console app is asking for too much. You need to see how the application is
structured, If there is a separate business layer then jar all the business
layer classes and then write a class with a main method that invokes t
18. August 2010 15:55
An: Ant Users List
Betreff: Re: Conditional target problem
On Tue 2010-08-17 at 16:20h, Vimil Saju wrote on user:
> I know ant is supposed to be declarative language as opposed to a
> procedural one, but whats wrong with using the 'if' task provided
> wit
I know ant is supposed to be follow a declarative style rather than a
procedural style. But what is wrong with writing scripts using the 'if' task in
conjunction with the ant-call task?
like the below example
--- On Tue, 8/17/10, Vimil Saju wrote:
From:
I know ant is supposed to be declarative language as opposed to a procedural
one, but whats wrong with using the 'if' task provided with ant-contrib along
with "ant-call" task? Wont it make ant-scripts more readable
something like this
--- On Tue, 8/17/10, Niklas Matthies wrote:
From: Niklas
Use the 'available' task to check if a file exists. There is also an 'if' task
which is part of antcontrib that you can use to execute tasks conditionally
--- On Thu, 7/29/10, eric.w...@thomsonreuters.com
wrote:
From: eric.w...@thomsonreuters.com
Subject: Ant: want to copy a file if it exists
windows picks up the location of ant from the path environment variable.so type
echo %path%
and look for the location of ant
--- On Tue, 7/27/10, Ben Stover wrote:
From: Ben Stover
Subject: Find out the installation path of ANT ?
To: "Ant Users"
Date: Tuesday, July 27, 2010, 4:01 AM
Assume I
yTask: attribute to overwrite readonly files
To: "Ant Users List"
Date: Friday, July 23, 2010, 5:50 AM
On Thu, Jul 22, 2010 at 2:13 PM, Vimil Saju wrote:
>
> Hi,
> I was looking if the copy task had the ability to overwrite read-only files.
> The manual says
> that if t
ist"
Date: Thursday, July 22, 2010, 12:56 PM
If in doubt, try it out!
Sent from my tellingphone.
On Jul 22, 2010 7:13 PM, "Vimil Saju" wrote:
Hi,
I was looking if the copy task had the ability to overwrite read-only files.
The manual says that if the 'force' attribute is set t
Hi,
I was looking if the copy task had the ability to overwrite read-only files.
The manual says that if the 'force' attribute is set to true then read-only
files will be overwritten, but it also says this attribute is available only on
ant version 1.8.2. I don't see that version of ant for dow
50 matches
Mail list logo