Re: Ant 1.5 to 1.7 problem.

2007-11-09 Thread Major shao
java version "1.4.2_05" Thanks for reply, I really need help on this! I suspect it's caused by the ant 1.7 does not take the dir path property ${ get.dbversion.build.dir} in the uptodate task. But it still failed if i replace it with absolute path. I do not understand. The forward slash or backwa

Re: Some junit tasks fail if run in ant with forkmode="once"

2007-11-09 Thread Davy Toch
Can you show the error that is logged when you run the tests with forkmode="once"? Is it an OOM (OutOfMemory)? Paul Taylor schreef: Hi If I run my junit tasks from within ant using forkmode="once" a few of the tests fail - if I remove the forkmode="once" option they work. I cant really under

Re: Ant 1.5 to 1.7 problem.

2007-11-09 Thread David Weintraub
What version of Java are you using? With Ant1.7.0, I think you need Java 1.4 or later. On 11/9/07, Major shao <[EMAIL PROTECTED]> wrote: > Hi, everyone > > i am trying to upgrade the project from ant1.5.1 to ant1.7.0 > > it gave error build_config.xml:151: java.lang.ExceptionInInitializerError

RE: Xslt when run from other dir from maven gets "Provider for javax.xml.transform.TransformerFactory cannot be found"

2007-11-09 Thread Karr, David
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Friday, November 09, 2007 2:49 AM > To: Ant Users List > Subject: Re: Xslt when run from other dir from maven gets > "Provider for javax.xml.transform.TransformerFactory cannot be found" > > Karr, David wrote:

Re: ANT 1.7: ManifestClasspath How does it work??

2007-11-09 Thread Dominique Devienne
On 11/9/07, Francis ANDRE <[EMAIL PROTECTED]> wrote: > The Ant documentation specifies for the task: > > dir: the directory to use as a basedir for the new Ant project. Defaults to > the > current project's basedir, unless inheritall has been set to false, in which > case it doesn't have a defaul

Re: ANT 1.7: ManifestClasspath How does it work??

2007-11-09 Thread Francis ANDRE
The Ant documentation specifies for the task: dir: the directory to use as a basedir for the new Ant project. Defaults to the current project's basedir, unless inheritall has been set to false, in which case it doesn't have a default value. This will override the basedir setting of the called

Re: Project 'B' to depend on Project 'A' ant build?

2007-11-09 Thread Dominique Devienne
On 11/9/07, Rob Wilson <[EMAIL PROTECTED]> wrote: > I have two separate projects and currently Project B uses files from > project A using relative paths, but if I update project A and forget > to build it, project B could fail. The question is, can Ant have a > dependency on another ant script?

Re: Up to date source file list

2007-11-09 Thread Peter Reilly
Use outofdate from antcontrib: http://ant-contrib.sourceforge.net/tasks/tasks/outofdate.html Peter On Nov 9, 2007 3:21 PM, Alain ROY <[EMAIL PROTECTED]> wrote: > > Hi > > I have source *.xml files, and a target that generates *.html files from > those source files. Actually, my target is executed

Project 'B' to depend on Project 'A' ant build?

2007-11-09 Thread Rob Wilson
I have two separate projects and currently Project B uses files from project A using relative paths, but if I update project A and forget to build it, project B could fail. The question is, can Ant have a dependency on another ant script? (I.e. not 'import'ing, but some form of project dependenc

Up to date source file list

2007-11-09 Thread Alain ROY
Hi I have source *.xml files, and a target that generates *.html files from those source files. Actually, my target is executed for all xml source files. I'd like to execute it only for source files that are more recent than the corresponding html file. Is there a way to get a list of modified

RE: Returning a string as output from ANT task

2007-11-09 Thread Agarkar, M (Milind)
Thanks. That worked fine. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: 09 November 2007 10:55 To: Ant Users List Subject: Re: Returning a string as output from ANT task Agarkar, M (Milind) wrote: > Hi, > > I am trying to write a custom ant task to accept two

Re: ANT 1.7: ManifestClasspath How does it work??

2007-11-09 Thread Dominique Devienne
On 11/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > With the following code: > > > > > > > You're problem is likely that you don't use file names which are unambiguous. needs to compute the relative path between the jarfile, and the jars or directories listed in t

javadoc task problem

2007-11-09 Thread Peter Spelman
Hi I'm trying to get the ant javadoc task working on a project made up of a number of different plugins with slightly different names. I am using Hudson build tool and Ant 1.7. The build script falls down with the following errors: BUILD FAILED C:\subversion\D0040_OR\workbench\build\jDocBuild.

Some junit tasks fail if run in ant with forkmode="once"

2007-11-09 Thread Paul Taylor
Hi If I run my junit tasks from within ant using forkmode="once" a few of the tests fail - if I remove the forkmode="once" option they work. I cant really understand why this is the case, there is File/IO involved in the tests but the original files are copied as a new file for each test so ca

RE: Checking whether a property is set

2007-11-09 Thread Rebhan, Gilbert
-Original Message- From: Rob Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 12:22 PM To: Ant Users List Subject: Checking whether a property is set /* I can check whether a file exists and set a property, but can I check whether a property exists and set a property bas

Re: Checking whether a property is set

2007-11-09 Thread Peter Reilly
On Nov 9, 2007 11:21 AM, Rob Wilson <[EMAIL PROTECTED]> wrote: > I can check whether a file exists and set a property, but can I check > whether a property exists and set a property based on whether it > exists? > > I don't mind how this is checked, I just need to make sure that my

Checking whether a property is set

2007-11-09 Thread Rob Wilson
I can check whether a file exists and set a property, but can I check whether a property exists and set a property based on whether it exists? I don't mind how this is checked, I just need to make sure that my JUnit test stops if the property isn't set. Cheers, Rob. -

Re: Returning a string as output from ANT task

2007-11-09 Thread Steve Loughran
Agarkar, M (Milind) wrote: Hi, I am trying to write a custom ant task to accept two parameters and return a string as the output. I have tried the following 1. First I did use the java task with 'outputproperty' and that works well, returns the output string fine, however, it also returns a lot

Re: UNC path usage for Javadoc task and Windows XP

2007-11-09 Thread Steve Loughran
Knuplesch wrote: Hello, I am working under Windows XP. I want to use an UNC-Path to put there documents created by Javadoc. The challenge occurs, that I am able to create a directory via mkdir, but the javadoc task interprets this path as a local path and not as a network path:

Re: Xslt when run from other dir from maven gets "Provider for javax.xml.transform.TransformerFactory cannot be found"

2007-11-09 Thread Steve Loughran
Karr, David wrote: JDK 1.4.2, Ant 1.5.4. I developed an Ant script that uses an xslt task. I tested it in the directory where I put it, and it works fine. I then went to another directory tree managed by maven, and executed some code in my "maven.xml" in a subproject that calls "ant:ant" and c

Returning a string as output from ANT task

2007-11-09 Thread Agarkar, M (Milind)
Hi, I am trying to write a custom ant task to accept two parameters and return a string as the output. I have tried the following 1. First I did use the java task with 'outputproperty' and that works well, returns the output string fine, however, it also returns a lot of log statements from the j

Re: ANT 1.7: ManifestClasspath How does it work??

2007-11-09 Thread francis . andre
Hi Listeners With the following code: =09 =09=09 =09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09 =09 I got 2 different lists if the build.xml is called locally from the =20 command prompt or from a super build.xml via Locally, the echo is

UNC path usage for Javadoc task and Windows XP

2007-11-09 Thread Knuplesch , Jürgen
Hello, I am working under Windows XP. I want to use an UNC-Path to put there documents created by Javadoc. The challenge occurs, that I am able to create a directory via mkdir, but the javadoc task interprets this path as a local path and not as a network path: The mk

Re: Ant file.encoding problem.

2007-11-09 Thread Peter Reilly
On Nov 9, 2007 7:03 AM, 김동광 <[EMAIL PROTECTED]> wrote: > Dear everyone. > > > > I have been used ant 1.7.0 for running my program on linux (redhat. > 2.6.9-42.0.10.ELsmp) > > However, I have a some problem to process file.encoding. > > > > My problem is.. > > A original file was written based on M