Re: Ant does not return after calling org.glassfish.tyrus.client.ClientManager.connectToServer()

2015-05-17 Thread Antoine Levy Lambert
Hi, I did not take a look at the attached zip file. How does ant call WebsocketLocalClient ? I would assume using the java task. The java task has fork and spawn attributes. I think that if WebsocketLocalClient is a long running process you should start it with fork=“true” and spawn=“true”. Th

Re: Parse jar:file prefix to Resource

2014-12-21 Thread Antoine Levy Lambert
Hello Matt, The ZipFileSet type is something that you can use. if you put in your custom task something like void addZipFileSet(ZipFileSet zfs) { } this will match with your custom task looking like You can also download the sources of Ant to see how Ant is written

Re: New user (liferay), getting all the time BUILD FAILED message

2014-12-21 Thread Antoine Levy Lambert
Hello Thomas, the error messages which you are getting seems to be while executing resolution and downloads with ivy. Ivy is a dependency manager which is maintained by the same project team like Ant. Anyway, the errors indicate that either some of the dependencies in the ivy.xml of this hell

Re: kicking my butt with something very simple

2014-12-07 Thread Antoine Levy Lambert
As Dominique mentioned, you can use a nested redirector element with a nested outputfilterchain something like see http://ant.apache.org/manual/Types/redirector.html and http://ant.apache.org/manual/Types/filterchain.html Regards, Antoine On Dec 5, 2014

Re: Question about Copy task with empty PatternSet

2014-05-15 Thread Antoine Levy Lambert
Hi, you can try this (untested): > >

[ANNOUNCE] Apache Ant 1.9.4 released

2014-05-05 Thread Antoine Levy Lambert
file available at the above location when downloading the release. For complete information on Ant, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Ant website: http://ant.apache.org/index.html Antoine Levy-Lambert, on behalf of the Apach

RE: Silent errors

2014-04-24 Thread Antoine Levy-Lambert
Do you mean that you are creating jar files with a manifest containing for instance Main-Class: ${mainclass} instead of Main-Class: com.some company.SomeApp ? Ant does not enforce that properties be set before they are used. When an ant task is invoked with the place holder ${someproperty} and s

Re: Have junitreport load styles from JAR

2014-04-19 Thread Antoine Levy Lambert
Hello Marcel, you are unfortunately right, there is no way you can use directly stylesheets from a jar file. What you can do is have ant extract the stylesheets from the jar file for you and use them afterwards. Not particularly elegant but will work. Regards, Antoine On Apr 19, 2014, at 5:4

Re: Ant build from source instructions incorrect?

2014-03-31 Thread Antoine Levy Lambert
am always >> building from svn so I do not know more. >> Please reply only to the list going forward. >> >> Best regards, >> Antoine >> >> Antoine Levy-Lambert >> > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Ant on Mac OS X

2014-03-09 Thread Antoine Levy Lambert
The code to create an Ant installer for Mac OS X has been added to Ant 1.9.3, but the Ant project for now does not distribute this Ant installer. There is a target pkg_distribution in the build.xml of Ant which can be used to build the OS X installer from source. Regards, Antoine On Mar 9, 201

Re: junit skipNotTests zipfileset including inner classes that are not tests

2014-02-11 Thread Antoine Levy Lambert
Hello, No idea why the inner classes are being tested. as a workaround you could try (untested) : > > > > > > Regards, Antoine On Feb 10, 2014, at 7:17 PM, Marc Benstein wrote: > I am using ant 1.9.3 with junit 4.11 with batchtest skipNonTests="

Re: Ant build from source instructions incorrect?

2014-01-21 Thread Antoine Levy Lambert
Hello Michael, are you using build.sh ? or build.bat ? There are two junit jars which are in svn and live under lib/optional. So even without running fetch.xml they should be around. I build releases of ant using a script called release.sh which is a wrapper around build.sh and can give you so

[ANN] Apache Ant 1.9.3 Released

2013-12-28 Thread Antoine Levy Lambert
suggestions for improvement, see the Apache Ant website: http://ant.apache.org/index.html Antoine Levy-Lambert, on behalf of the Apache Ant community

Re: 1.9.3 Release plan?

2013-12-16 Thread Antoine Levy Lambert
Hello Laurent, Thanks for nagging to get this performance issue fixed. Until now there was no plan to release Ant 1.9.3. This is also a question for the dev list. Let's see what the other contributors would like to see in 1.9.3. Regards, Antoine On Dec 16, 2013, at 3:03 PM, laurent.gou...@onl

Re: New conditional attributes on use of macrodef?

2013-12-14 Thread Antoine Levy Lambert
I have fixed it too in svn head, if you want you can build ant from source and confirm that the problem is fixed. Regards, Antoine On Dec 14, 2013, at 5:39 PM, Antoine Levy Lambert wrote: > Hello Richard, > > this is a bug. I have entered it in bugzilla id 55885. > > Regard

Re: New conditional attributes on use of macrodef?

2013-12-14 Thread Antoine Levy Lambert
Hello Richard, this is a bug. I have entered it in bugzilla id 55885. Regards, Antoine On Dec 9, 2013, at 9:22 AM, Steele, Richard wrote: > I can't seem to get the new if: and unless: attributes working on uses of > macrodef. For example: > > xmlns:unless="ant:unless"> > > > >

Re: Unexpected mkdir and id behaviour

2013-11-24 Thread Antoine Levy Lambert
Hello Tom, the id attribute in ant is generally used to reference types, for instance yo need to define properties to do what you want like : Regards, Antoine On Nov 22, 2013, at 5:45 AM, Tom Cleghorn wrote: > Hi, > > I tried to use the following in 1.9.2: > > > > > > > wher

Re: Duplicate formatters of the same type in junit test corrupting output file

2013-11-24 Thread Antoine Levy Lambert
Hello Bernhard, this looks like a bug. You might want to report it in bugzilla. Regards, Antoine On Oct 9, 2013, at 7:21 AM, Bernhard Voelker wrote: > Hi *, > > we had a Junit task with an XML formatter defined both on the > and the level: > >fork="true" dir="${basedir}" haltonfailu

Re: ANT Custom tasks - difference between using getProject() and "new Project()"

2013-05-27 Thread Antoine Levy Lambert
Hi, in a custom task you usually do not need to use a new Ant project instance, so I would use getProject() to access the project attached to the current ant task. If you are programming a piece of code to execute an Ant task or ant Ant build file from a Java class or framework which is not r

[ANNOUNCE] Apache Ant 1.9.1 Released

2013-05-21 Thread Antoine Levy Lambert
information on Ant, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Ant website: http://ant.apache.org/index.html Antoine Levy-Lambert, on behalf of the Apache Ant community

Re: How to run a single junit test method with ant

2013-05-12 Thread Antoine Levy Lambert
Hello Xiaomou, the documentation of the junit task http://ant.apache.org/manual/Tasks/junit.html mentions that the test nested element can have a methods attribute to specify the methods you want to run Comma-separated list of names of test case methods to execute. Since 1.8.2 Rega

Re: How to apply mapper to filelist to get other fileset or filelist?

2013-05-07 Thread Antoine Levy Lambert
Hello Lev, Ant has a concept of mapped resources. Read this : http://ant.apache.org/manual/Types/resources.html#mappedresources Best regards, Antoine On May 6, 2013, at 10:14 AM, Lev Serebryakov wrote: > Hello, User. > > Is it possible to apply mapper to to get other > or, even better, ?

Re: Anomalous package-info.java

2013-04-27 Thread Antoine Levy Lambert
Hello Morten, I am not aware of this problem. How do you think that the behavior of ant's javac task should be changed ? Should it have an option to exclude the package-info.java files ? or exclude them by default ? Regards, Antoine On Apr 22, 2013, at 2:05 PM, Morten Sabroe Mortensen wrote

Re: Need your help

2013-04-27 Thread Antoine Levy Lambert
Hello Xiaomin, try this when starting shell scripts from Ant, consider the shell interpreter (sh, bash, ksh) as the executable. The path to the script file is an argument for the shell used to run the script. so this snippet tells you what to change. Depending on your environment you might ne

[ANNOUNCE] Apache Ant 1.9.0 Released

2013-03-10 Thread Antoine Levy Lambert
how to submit bug reports, patches, or suggestions for improvement, see the Apache Ant website: http://ant.apache.org/index.html Antoine Levy-Lambert, on behalf of the Apache Ant community - To unsubscribe, e-mail: user-unsubscr

Re: Problem with GPG plugin from Ant task

2013-01-31 Thread Antoine Levy Lambert
Maven to fix >> the problem and now everything works fine. It was sapping hours of my time >> looking for an answer so we made the decision to shift :0( >> Thank you for the feedback, hopefully now that this thread exists others >> can benefit. >> Best >&g

Re: Problem with GPG plugin from Ant task

2013-01-30 Thread Antoine Levy Lambert
Hello Lewis, there is a project in the commons sandbox at Apache with which you can PGP sign artifacts in an Ant build The source code is there [1] There is an example of usage of this here [2] We use that when producing releases of Ant. Maybe this can help you ? Regards, Antoine [1] htt

Re: ZipFileSet and Selectors

2013-01-24 Thread Antoine Levy Lambert
Hello Gilles, it is possible that you have found a bug. Since the bug 28353 is "resolved workforce" I suggest you open a new bug report. A look in the source code in the head revision tells me that ZipScanner does not check whether selectors are present and does not handle them. Patches are we

Re: How to debug ant source inside RAD / Eclipse

2013-01-21 Thread Antoine Levy Lambert
If you want to debug the source code of Ant or of custom Ant tasks that you develop and you are using Eclipse or RAD. here is what you can do. Ant can be started as an "External Tool". In the External Tools Conifgurations dialog box, you can create an "Ant Build" build configuration, selecting

Re: ant task ftp

2013-01-09 Thread Antoine Levy Lambert
Hello Joe, this looks like a bug or incompatibility between ant and this new version of commons-net. It would be good if you can create a bug report in bugzilla ( http://issues.apache.org/bugzilla ) What would be great is if you could start digging in the source code of ant and commons-net to

Re: ModelAnt project

2013-01-09 Thread Antoine Levy Lambert
Hello Rusi, your patch has been added, sorry for the long wait, happy 2013. Regards, Antoine On Nov 24, 2012, at 5:10 PM, MDA Tools wrote: > Dear colleagues, > > Please add ModelAnt project to the Ant Related Projects, by applying the > attached patch on projects.xml > > With best regards

Re: [ANN] File Manager, Ant Commander 3.0 released

2013-01-08 Thread Antoine Levy Lambert
Hello Anthony, I have added Ant Commander. Regards, Antoine On Dec 13, 2012, at 9:49 AM, Anthony Goubard wrote: > Hi All, > > I've just released Ant Commander 3.0. > Ant Commander is a free file manager. File operations are executed by > Apache Ant and it manages all the file systems supported

Re: Enhancement: allow a in an filter

2011-04-05 Thread Antoine Levy-Lambert
On 4/1/2011 7:51 AM, Steele, Richard wrote: As implemented it looks like expands all properties. I'd really like if I could embed a in it to control which properties get expanded. Is there a technical reason this won't work? If not, I'll gladly file an enhancement request. Go ahead By the

Re: How to reference a custom type via refid?

2011-03-17 Thread Antoine Levy-Lambert
On 3/16/11 2:09 PM, Carlton Brown wrote: > In a custom type, if I want to define it and reference it later, what's the > Java code to do that? > > this is probably what you want to write > > > > > > > The MyType class extends org.apache.tools.ant.types.DataType and it has a >

Re: Problems with apache.

2011-03-14 Thread Antoine Levy-Lambert
Hello Tiago, please check what the value of ANT_HOME is. A version of ant is shipping with MacOS with a script under /usr/bin/ant if I remember correctly. You should add these lines to your .profile export ANT_HOME=[install location of ANT 1.8.2] export PATH=$ANT_HOME/bin:$PATH changing the p

Re: compare files from 2 directories

2011-02-25 Thread Antoine Levy-Lambert
If you want to compare two directories using ant, you can do this by using the present and the different selectors. these files are only in bar : ${toString:onlyinbar} these files are different in bar compared to foo : ${toString:differentbarfoo} Regards, Antoine [1] htt

Re: compare files from 2 directories

2011-02-25 Thread Antoine Levy-Lambert
Maybe you have a program running which is writing a log file under C:\Program Files. You should try on a tiny set of files which you know are not going to change. Regards, Antoine On 2/25/2011 11:32 AM, ritchie wrote: I used the below checksum task and i passed the same directory twice bu

Re: Installing Ant, BAD KEY error

2011-02-16 Thread Antoine Levy-Lambert
from "Antoine Levy-Lambert (CODE SIGNING KEY) " gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 0BAD E59B 0EC2 4E68 C03C A481 5EFA D9FE 82A7 FBCD Antoine On 2/16

Re: FTP task incredibly slow when listing files

2011-02-10 Thread Antoine Levy-Lambert
Hello Jesse, I did some changes long time ago to the ftp task but do not remember much about it. I would have to open the source code. What happens if you do not nest a fileset when doing your invocation ? Regards, Antoine On 2/9/11 6:52 PM, Jesse Campbell wrote: > Apologies if I¹m in the wro

Re: How to switch from Derby to MySQL environment

2011-02-10 Thread Antoine Levy-Lambert
Hello Jack, you probably need to start a MySQL server on port 152 ? Antoine 47. BUILD FAILED 48. C:\ProJPA2\config\common.xml:144: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 152 On 2/10/2011 7:29 AM, Jack Bush

Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-04 Thread Antoine Levy-Lambert
Hello Stein Inge, I am sure that ant does a good at keeping together a command line argument defined with In fact I have even checked this assertion on Windows/Cygwin - build.xml - contents of parrot.sh #!/bin/bash i=0 for arg in "$@" ; do i=$(( $i + 1 )) echo $i " arg

Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-01 Thread Antoine Levy-Lambert
Hi, in theory, this should work : when you use I am trying to call ssh using the ant exec task from maven. My problem is that I can't figure out how to escape spaces in usernames. I have tried: - To unsubscribe,

Re: Ant + Spring = classpath purgatory

2011-02-01 Thread Antoine Levy-Lambert
I think it is log4j which wants to look for config files on the thread context loader. Regards, Antoine On 1/29/2011 1:27 PM, Mitch Gitman wrote: Here's the solution that finally worked for me, and that includes locating the log4j class. This is all in my Ant task: ClassPathXmlAppli

Re: exec (and apply) tasks cut off the output

2011-01-20 Thread Antoine Levy-Lambert
Hi, in fact there has been a bug reported concerning lines of output which get mixed up. https://issues.apache.org/bugzilla/show_bug.cgi?id=50507 We should fix it. Regards, Antoine On 1/19/11 3:03 PM, Gilbert Rebhan wrote: > Original Message > Subject: exec (and apply) task

Re: Execution classpath question for taskdef

2011-01-20 Thread Antoine Levy-Lambert
On 1/20/11 5:27 PM, dave.alvar...@cartridgeorder.com wrote: > Thanks for this recommendation. A couple of follow up questions ... > > 1 If I add the classloader task to my custom task, does that classloader take > precedence over the classes loaded by ${ANT_HOME}/lib ? > 2. How do I add the class

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 9:46 PM, Michael Ludwig wrote: > But I still haven't understood the underlying issue. What's so special about > mail.jar that it needs special treatment? It *could* be that instead of just using the classloader of mail.jar ... to look for other classes of mail.jar or activation.jar it wa

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 2:54 PM, Michael Ludwig wrote: > > There was another thread today where the same issue arose: > > Mail task with mail.jar & activation.jar out of lib folder > > r L 19.01.11 10:31+0100 Patrick Martin57 Mail task […] > L 19.01.11 11:19+0100 Patrick Martin87 ├─> > F 19.

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
> http://enitsys.sourceforge.net/ant-classloadertask/ > > Peter > > > On Wed, Jan 19, 2011 at 8:16 PM, Antoine Levy-Lambert wrote: >> Hello Patrick, >> >> it is possible to do this using the classloader task of jtools >> >> >

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 3:26 PM, dave.alvar...@cartridgeorder.com wrote: > Let me ask this clarification question before answering yours ... > > 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is > actually executed. Correct? Wrong, the classpath nested element or attribute is used.

Re: Terminate an Ant target

2011-01-19 Thread Antoine Levy-Lambert
Hi, on the JUnit leg of your parallel invocation, you need to use a script to kill your http server. Depending on your operating system you could use pskill from sysinternals (Windows) or just kill (UNIX). To find out the process number, there is a tool called pv.exe from teamcti which can l

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
Hello Patrick, it is possible to do this using the classloader task of jtools classname="org.apache.tools.ant.taskdefs.ClassloaderTask"> here is the snippet of my ivy.xml with the dependencies conf="classloadertask->default"> so you do not need to redefine the mail task but pu

Re: Add dynaTrace ant task to the list of external Plugins

2011-01-14 Thread Antoine Levy-Lambert
Hello Guido, the change is committed in svn and will be visible on the web site soon. Regards, Antoine On 1/14/2011 7:12 AM, Guido Deinhammer wrote: Ok - I understand that. Below is the modified version - I still changed the text a bit since the terms "Application Performance Management" and

Re: Add dynaTrace ant task to the list of external Plugins

2011-01-13 Thread Antoine Levy-Lambert
Hello Guido, the tone of the text is like the Ant project is advertising for Dynatrace. I am not comfortable with committing the changes that you are sending us as is. The current blurb about dynatrace is : dtAnt allows integrating dynaTrace Application Performance Management

Re: launch Ant from Java code

2011-01-13 Thread Antoine Levy-Lambert
On 1/13/2011 2:57 AM, Patrick Martin wrote: Thank you Antoine, I do have a follow-up question on this though. Will this be thread safe? Is it possible to run two targets in parallel from Java code, without any interactions (different projects, property sets and so on)? Ant has a parallel task, a

Re: SplitClassLoader cast error

2011-01-12 Thread Antoine Levy Lambert
Hello David, I am not sure whether SplitClassLoader extends URLClassLoader. In my IDE I see this class hierarchy SplitClassLoader ---> AntClassLoader --> ClassLoader --> Object So maybe the source code of your unit test is doing something wrong. Regards, Antoine On 1/12/11 10:21 AM, David R

Re: launch Ant from Java code

2011-01-12 Thread Antoine Levy Lambert
Hello Patrick, you can have a look at this document from our manual too : http://ant.apache.org/manual/antexternal.html Creating a Project object is necessary in nearly all cases because ant tasks generally need to be bound to a project in order to be able to log. I have another example whic

Re: Problems with

2011-01-11 Thread Antoine Levy-Lambert
Hello Kevin, what about trying to remove the classpath attribute from the manifest of the jar that you are building ? Also, the manifestclasspath source code tells me that a classpath attribute in a manifest is separated by spaces, not semicolons. Or generate the classpath of your jar using

Re: apache-ant-1.8.2-bin.tar.bz2.asc signature not in http://www.apache.org/dist/ant/KEYS

2011-01-10 Thread Antoine Levy-Lambert
You are right, it looks like I did not update this file. Let me do this. Thanks for letting us know. Regards, Antoine On 1/10/2011 8:21 PM, Mark Lavi wrote: Hello everyone, I didn't see this issue in Bugzilla or in this mailing list archive. I could not find an up to date public key for anto.

Re: [PATCH] complete-ant-cmd.pl

2011-01-07 Thread Antoine Levy-Lambert
Hello Ondra, thanks for the patch, committed in revision 1056313. I have learnt something, I am using ant and bash every day and did not know this script. Cool thing. Let me know if I entered the patch correctly if you can check out the updated version from svn. [1] Antoine [1] http://svn.

Re: Ant Eclipse integration

2011-01-05 Thread Antoine Levy-Lambert
On 1/5/2011 11:34 AM, Antoine Levy-Lambert wrote: Hi, the version of ant which currently ships with Eclipse is as far as I know 1.7.1 ( I think so because there is a directory called org.apache.ant_1.7.1.v20100518-1145 in my plugins folder). I have read that the platform-ant team of Eclipse

Ant Eclipse integration

2011-01-05 Thread Antoine Levy-Lambert
Hi, the version of ant which currently ships with Eclipse is as far as I know 1.7.1 ( I think so because there is a directory called org.apache.ant_1.7.1.v20100518-1145 in my plugins folder). I have read that the platform-ant team of Eclipse is preparing a new version of the Ant Eclipse inte

Re: fileset of cvs changed files

2010-12-31 Thread Antoine Levy-Lambert
Hello Mark, what you can do is run your cvs update using the exec task and use a nested filterchain do capture output lines with a "U" [1] and apply a regular expression to keep only the path of the file, then save this output into a file. The output file should contain a series of file relativ

Re: Question with error: Unable to locate tools.jar

2010-12-30 Thread Antoine Levy-Lambert
On 12/30/2010 1:23 PM, Jeff Spence wrote: Thanks, I got rid of the Java part, but now it seems like ant can't find my build.xml file. error: Buildfile: build.xml does not exist! Build failed You need to create a build.xml in the current directory from which you are running ant, or specify the

Release of Apache Ant (TM) 1.8.2

2010-12-27 Thread Antoine Levy-Lambert
Hi, the Apache Ant development team is proud to announce the release of Apache Ant (TM) 1.8.2 Key features of the 1.8.2 release are * performance improvements in directory scanning * XSLT task honors classpath again (bugrep 49271) * distinction between core tasks and optional tasks i

Re: Add dynaTrace ant task to the list of external Plugins

2010-12-24 Thread Antoine Levy-Lambert
Hello Guido, this has been committed, Antoine On 12/23/10 3:13 AM, Guido Deinhammer wrote: > 910,936d909 > < > < > < dtAnt allows integrating dynaTrace Application Performance > Management > < into your ant builds. This way you can easily record > performance

Re: Add dynaTrace ant task to the list of external Plugins

2010-12-22 Thread Antoine Levy-Lambert
Hello Guido, your attachment did not go through. Write your patch inline in the mail it will be OK Regards, Antoine On 12/22/2010 11:31 AM, Guido Deinhammer wrote: Hi, I would like to add the dynaTrace ant task to the list of external tool and tasks. I have attached the patch file for the

Re: How to execute "Android.mk" file from Ant script?

2010-12-17 Thread Antoine Levy-Lambert
On 12/16/10 11:05 PM, Girish wrote: > > * Is there any way to execute "Android.mk" file from Ant script? > If Android.mk are processed by an executable called make or andromake or whatever, then you can do this using the exec task. Antoine

Re: Selectively delete files/folders on another server

2010-12-15 Thread Antoine Levy-Lambert
Hello Maureen, would it be possible to install ant on the target machines and move the logic to determine folders to be deleted there ? this might be a way to do this work more simply. What is the criteria according to which you know which directories/files to delete or to preserve ? Regard

Re: Ant Log File Syntax Highlighting

2010-12-14 Thread Antoine Levy-Lambert
On 12/14/2010 11:42 AM, Perrier, Nathan wrote: I spend a lot of time digging through Ant logs in text editors, as I'm sure we all do. I'm wondering if there exists a syntax highlighting definition file that would, for instance, add style to the targets or tasks. I think it would make them muc

Re: ANT application.xml add runtime

2010-12-14 Thread Antoine Levy-Lambert
On 12/14/2010 11:19 AM, Ashokkumar B wrote: Dear Sir/Madam, Currently we need to add only one into my application.xml file using ANT. To achive that, we have a template for application.xml with token $module$ and it will be replaced with actual module name using task. The changed application.x

Re: propertyfile task and escaping

2010-12-14 Thread Antoine Levy-Lambert
On 12/14/2010 6:09 AM, Jo Support wrote: Hello, Scenario: Ant 1.8.0 on WinXP is there a way to avoid escaping chars by propertyfile task? The following task http://mydomain/"/> produces the following file MY_URL=http\://mydomain/ that is bad. This is not bad, this is the conventi

Re: Ant script to edit a write protected file.

2010-11-22 Thread Antoine Levy-Lambert
You can use the attrib or the chmod task to make the file writable. Antoine On 11/21/2010 10:22 PM, ritchie wrote: I am trying to add new attributes to a xml file using classes available in com.oopsconsultancy.xmltask.ant.XmlTask classes but not able to write to the file because it is write pr

Re: xmlTask - Help

2010-11-22 Thread Antoine Levy-Lambert
On 11/22/2010 8:05 AM, Jo Support wrote: Hello people, I'm sorry to write here about a third party library, but it seems that official xmlTask mailing list is off (no messages since subscription, three days ago), and there are no news about Oops Consultancy since September 2009. So I'll try to

Re: java.lang.NullPointerException

2010-11-18 Thread Antoine Levy-Lambert
Well, your error is happening in executing a custom task : java.lang.NullPointerException at openworks.ant.UpdateVersion.execute(UpdateVersion.java:73) at You should ask support from whoever wrote openworks.ant.UpdateVersion But even before that, maybe you are forgetting to pass

Re: java.lang.NullPointerException

2010-11-18 Thread Antoine Levy-Lambert
A full stack trace would be useful to figure out what is going on. Also, what is "verup" ? Is it a custom task ? a macrodef ? Regards, Antoine On 11/18/10 2:15 PM, ritchie wrote: > This is a part of my script. > > >failonerror="true" > outputproperty="Version" > >

Re: how to build ant

2010-11-17 Thread Antoine Levy-Lambert
could not able to build ant , so if i give command > > ant -Ddest= -f fetch.xml > > on my console it gives error as > > ant: command not found > > > so any suggestions where am i going wrong > > > On Wed, Nov 17, 2010 at 2:06 AM, Antoine Levy-Lambert wrote: >

Re: how to build ant

2010-11-16 Thread Antoine Levy-Lambert
On 11/16/2010 9:24 AM, ramakanth varala wrote: I downloaded ant-1.8.1 trying to build it in fedora o.s I have junit*jar in my CLASSPATH. when i do/ build.sh install-lite gives the following error Hello Ramakanth, You should run this command before building ant : ant -Ddest=optional -f fetch

Re: Search for properties file in parent directories

2010-11-11 Thread Antoine Levy-Lambert
Hello Michael, I do not know of any way of doing this in a generic fashion. If you have few levels of directories and the number of directories is known, you can write this : this will not bail out if one of the property files does not exists and it will read the files in the order of

Re: svnant - deploying from Subversion

2010-11-05 Thread Antoine Levy Lambert
On 11/4/10 4:44 PM, Michael Ludwig wrote: Hello Antoine, Thanks for your feedback. Our application is not Java, it's a script app. There's currently lots of stuff in Subversion including lots of static content, most of which never changes. A typical update means replacing ten to thirty files an

Re: How to script database upgrade using ANT script

2010-11-05 Thread Antoine Levy Lambert
On 11/5/10 6:48 AM, Java Jboss wrote: Hi, Thank you for the suggestions so far from Antoine and Michael. unfortunately I've been asked to use ANT only without using unix shell scripts. I have tried to tackle it as individual modules using ANT script running the 1st iteration of the mysql scrip

Re: antlib classloader issue

2010-11-04 Thread Antoine Levy Lambert
On 11/4/10 2:33 PM, Venkatesh Sangam wrote: I was able to use the task. This is a custom task written by JTools that lets me append classpath to an existing classloader. Using this “classloader” task, I am able to execute my custom task. Thi

Re: svnant - deploying from Subversion

2010-11-04 Thread Antoine Levy Lambert
Hello Michael, I would personnally not want to deploy the webapp directly from subversion, although this can certainly work. I would rather setup a build process and continuous integration and create a zip file or a war file from the sources in subversion. You would need to use a continuous int

Re: How to script database upgrade using ANT script

2010-11-04 Thread Antoine Levy Lambert
On 11/4/10 1:35 PM, Java Jboss wrote: Hi Antoine, Thank you for this update. I am using a linux server. I've been asked to do this in ANT only. Can you possibly provide me an example of how a similar process might be scripted using ANT? As I have never used ANT or any other similar produc

Re: How to script database upgrade using ANT script

2010-11-04 Thread Antoine Levy Lambert
Hi, you will need to use the task for steps like creating the database and importing the dump into the new schema. Once your database is up, you can use the task to run DDL and DML statements. To check whether a script exists, there is a task called which can set a property if a file is ava

Re: Proper way to translate list of jars from properties file into classpath

2010-10-19 Thread Antoine Levy-Lambert
On 10/14/2010 5:09 PM, KARR, DAVID (ATTSI) wrote: -Original Message- From: KARR, DAVID (ATTSI) Sent: Wednesday, October 13, 2010 1:05 PM To: Ant Users List Subject: Proper way to translate list of jars from properties file into classpath I have a property defined in my properties file

Re: Slowdown in ant task execution in 1.8.1 (specifically chmod) on Unix

2010-06-03 Thread Antoine Levy-Lambert
Hi, this change - which I did in ant 1.8.1 is reverted in 1.8.2. Regards, Antoine Andy Wang wrote: > Hi all, > Just wondering if anyone has experienced a bug I just opened: > https://issues.apache.org/bugzilla/show_bug.cgi?id=49384 > > As the bug states, the fix for > https://issues.apache.org/

Re: Web example does not work

2010-06-01 Thread Antoine Levy-Lambert
Hello Misha, this is interesting. I would have thought that this example would work, and I did not even remember that zipgroupfileset exists. I have now seen that zipgroupfileset is documented as a nested element element of the zip task. Which version of ant are you using ? Regards, Antoine M

Re: Import projects into eclipse via ant task

2010-06-01 Thread Antoine Levy-Lambert
Hi, dbgtjp wrote: > I am trying to automate the process of importing existing projects into > eclipse. The user should just have to start eclipse, enter the workspace and > all the required projects are already showing up there. > > Is there an ant task to achieve that, so that the user does not h

Re: RE: Copy task fails on AIX & Suse Linux 9

2010-05-28 Thread Antoine Levy-Lambert
Hi, I think that we have started to use NIO in Ant 1.8.x A bug has been identified recently in this area, and fixed in the sources in subversion. If this is available to you, could you download the latest sources and build and from source ? It would be interesting to know if the bug fix that

Re: New ANT task coding guideline

2010-05-26 Thread Antoine Levy-Lambert
Hello Shawn, I hope some one has a useful answer for this. Original-Nachricht > Datum: Wed, 26 May 2010 10:03:30 -0500 > Von: Shawn Castrianni > An: "\'Ant Users List\'" > Betreff: New ANT task coding guideline > Therefore, I propose that a new ANT task coding guideline be in

Re: How to put all jars in a path variable (minus some exclusions) into WEB-INF/lib?

2010-05-24 Thread Antoine Levy-Lambert
Hello David, you can create a path from your build.classpath variable. I think with the copy task and the resource collections framework you can achieve what you want this snippet (untested) would copy all jars in build.classpath to WEB-INF/lib. You can easily add some code to exclude other sp

Re: Ant telnet task fails to login to a few unix boxes

2010-05-19 Thread Antoine Levy-Lambert
I suggest using ssh instead of telnet. Regards, Antoine Original-Nachricht > Datum: Wed, 19 May 2010 04:56:32 -0700 (PDT) > Von: Nabble_fan > An: user@ant.apache.org > Betreff: Ant telnet task fails to login to a few unix boxes > > I am running a simple Ant telnet code snippe

Re: Java system property

2010-05-19 Thread Antoine Levy-Lambert
Hello Juergen, here is what you can do : - use the ANT_OPTS environment variable to set the system property before you start ant, ie set ANT_OPTS="-Dfoo=bar" on Windows - create a custom task to set a system property in a running VM, (I thought we even had that in ant but I might have dreamt, I

Re: uploading ant with ivy to nexus central repository

2010-05-19 Thread Antoine Levy-Lambert
at it does not handle publish, but some email threads lead me > > to think that it can handle publish [3] [4]. > > If I look at the source code, publish is not supported by the ibiblio > resolver. > But you can use an url resolver for publishing instead, which has support > for HTTP

[Fwd: [Travel Assistance] - Applications Open for ApacheCon NA 2010]

2010-05-16 Thread Antoine Levy-Lambert
Hi, The Apache Software Foundation is organizing an Apache Conference North America 2010 (ApacheCon NA 2010) [1]. I am forwarding the following message from our Travel Assistance Committee Antoine [1] http://na.apachecon.com/c/acna2010/ --

[ANN] Release of Apache Ant 1.8.1

2010-05-07 Thread Antoine Levy-Lambert
documented in Bugzilla and in WHATSNEW Regards, Antoine Levy-Lambert - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Automating without foreach?

2010-05-04 Thread Antoine Levy Lambert
Hello Misha, ant out of the box is not designed for procedural work. You could create a custom task doing the iteration over a list of platforms. Which would be like a dedicated for task. A trick which I have learned and used myself is to generate on the fly a small build file using xslt and

Re: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Antoine Levy Lambert
Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix):

Re: Property File load issue

2010-04-14 Thread Antoine Levy Lambert
Hello Barry, did you make sure that ${user.home} resolves on the problematic desktop as "C:\Documents and Settings\[username]". I have had frustrating cases when running CruiseControl as a service on a Win32 box that ${user.home} was resolving to something unexpected. I think Java looks up

Re: Two pass compile for instrumented code

2010-04-13 Thread Antoine Levy-Lambert
Original-Nachricht > Datum: Tue, 13 Apr 2010 17:37:37 +0100 > Von: Greg Roodt > An: Ant Users List > Betreff: Two pass compile for instrumented code > Hi > > I have an Ant build that consists of the basic compile, test, package, > report phases. > The report phase is a bit sl

  1   2   3   4   5   6   >