AW: Display the current classpath in a target?

2008-11-06 Thread Jan.Materne
>> How to I display (at the console) the value of project.classpath >> resp. classpathref? > >If these are properties, you can just them, if they are ids of > instances, you can create temporary properties and echo those > > > id-of-path's value is ${some classpath} ${toString:id-of-path} or

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Stefan Bodewig
On Thu, 06 Nov 2008, Steve Loughran <[EMAIL PROTECTED]> wrote: > Some of that code is something we should really pull into Ant to > make it easier; some EmbeddedProject you create to remove > effort. What do you think, Stefan? Sounds good. This might help projects like Gant or Lancet

Re: Run an ant task for each file in a directory

2008-11-06 Thread Stefan Bodewig
On Thu, 06 Nov 2008, Tassilo Horn <[EMAIL PROTECTED]> wrote: > What I really want is to execute the given `java' task for each and > every *.tg file in ${schema.dir}/. How would I do that? You can use and set up the java command line correctly, something like

Re: Display the current classpath in a target?

2008-11-06 Thread Stefan Bodewig
On Thu, 06 Nov 2008, Ben Stover <[EMAIL PROTECTED]> wrote: > How to I display (at the console) the value of project.classpath > resp. classpathref? If these are properties, you can just them, if they are ids of instances, you can create temporary properties and echo those id-of-path's va

Display the current classpath in a target?

2008-11-06 Thread Ben Stover
Assume in an Ant build.xml I execute a certian target. Before the actual compile is performed I want to output the current CLASSPATH variable in order to verify that everything is catched what is exppected. How to I display (at the console) the value of project.classpath resp. classpathref? Ben

Re: Strange Condition Evaluation Bug?

2008-11-06 Thread Shane Fisher
That was it! Thanks, Shane Matt Benson wrote: > > Your problem is that you checked property > isset="${foo}" when you should have been checking > property isset="foo". > > HTH, > Matt > > --- Shane Fisher <[EMAIL PROTECTED]> wrote: > >> >> Can someone please explain this bizarre behavior t

Re: Strange Condition Evaluation Bug?

2008-11-06 Thread Matt Benson
Your problem is that you checked property isset="${foo}" when you should have been checking property isset="foo". HTH, Matt --- Shane Fisher <[EMAIL PROTECTED]> wrote: > > Can someone please explain this bizarre behavior to > me? I can't for the life > of me figure out why this condition is ev

Strange Condition Evaluation Bug?

2008-11-06 Thread Shane Fisher
Can someone please explain this bizarre behavior to me? I can't for the life of me figure out why this condition is evaluating to "true", especially since just before that I'm logging the value of the property. build.xml: Test file for weird build bug.

Re: Run an ant task for each file in a directory

2008-11-06 Thread Tassilo Horn
Mark Salter <[EMAIL PROTECTED]> writes: Hi Mark, >> Yes, it looks like it would do. But I think I cannot force everybody >> working on that project to install ant-contrib... > > It might be easier than getting them to install something else? > > The installation ( http://ant-contrib.sourceforge.

Re: Please Help me in Calling Maven 1.0.2 building job from ANT

2008-11-06 Thread Carlos Ortiz
Hi, Simple way use the exec task to call mvn.bat or mvn if mvn is not in the path 2008/11/6 Prasad Nakarikanti <[EMAIL PROTECTED]>: > Hi, > > > > We are recently started using JetBrains TeamCity for Build Automation and > CI. > > > > We are using Maven 1.02 for buildi

Please Help me in Calling Maven 1.0.2 building job from ANT

2008-11-06 Thread Prasad Nakarikanti
Hi, We are recently started using JetBrains TeamCity for Build Automation and CI. We are using Maven 1.02 for building, and not willing to upgrade to Maven 2.0 in near future. TeamCity only supports Maven 2 and ANT. I would like to embed our Maven job in ANT build.xml file so that T

Re: Run an ant task for each file in a directory

2008-11-06 Thread Mark Salter
Tassilo Horn wrote: > Yes, it looks like it would do. But I think I cannot force everybody > working on that project to install ant-contrib... It might be easier than getting them to install something else? The installation ( http://ant-contrib.sourceforge.net/#install )looks very straightforwar

Re: I/O redirection for XSLT task?

2008-11-06 Thread Ron Van den Branden
Hi, Robert Koberg schreef: Oh, well you could: $ ant mytask > some.txt True, this captures all ant output. Probably the loggers give better control over this global output. You could also implement your own: http://www.saxonica.com/documentation

Re: I/O redirection for XSLT task?

2008-11-06 Thread Robert Koberg
On Nov 6, 2008, at 10:02 AM, Ron Van den Branden wrote: Hi, Robert Koberg schreef: I'm wondering if is it possible to specify I/O redirection for the task? If not, are there workarounds to get STDOUT and STDERR from XSLT transformations? If you can use XSL 2.0 then there is the xsl:res

Re: Run an ant task for each file in a directory

2008-11-06 Thread Tassilo Horn
Mark Salter <[EMAIL PROTECTED]> writes: Hi Mark, >> What I really want is to execute the given `java' task for each and >> every *.tg file in ${schema.dir}/. How would I do that? > > Ant-contrib has a Foreach task, perhaps that will do you? Yes, it looks like it would do. But I think I cannot

Re: I/O redirection for XSLT task?

2008-11-06 Thread Ron Van den Branden
Hi, Robert Koberg schreef: I'm wondering if is it possible to specify I/O redirection for the task? If not, are there workarounds to get STDOUT and STDERR from XSLT transformations? If you can use XSL 2.0 then there is the xsl:result-document which lets you write where you want. Thanks,

Re: I/O redirection for XSLT task?

2008-11-06 Thread Robert Koberg
On Nov 6, 2008, at 9:53 AM, Ron Van den Branden wrote: Hi, I gather from the documentation at that the element only applies to , , or tasks. I'm wondering if is it possible to specify I/O redirection for the task? If not, are

I/O redirection for XSLT task?

2008-11-06 Thread Ron Van den Branden
Hi, I gather from the documentation at that the element only applies to , , or tasks. I'm wondering if is it possible to specify I/O redirection for the task? If not, are there workarounds to get STDOUT and STDERR from XSLT transfo

Re: Run an ant task for each file in a directory

2008-11-06 Thread Mark Salter
Tassilo Horn wrote: > What I really want is to execute the given `java' task for each and > every *.tg file in ${schema.dir}/. How would I do that? Ant-contrib has a Foreach task, perhaps that will do you? -- Mark - To unsubsc

Run an ant task for each file in a directory

2008-11-06 Thread Tassilo Horn
Hi all, currently I have this target in my ant file: --8<---cut here---start->8--- generateschema started generateschemas finished --8<---cut here---end--->8--- What I really w

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Peter Reilly
Also be aware that the ant java code is not designed or created to be used as a library. Ant java code is written to read and execute ant xml scripts. Peter On Thu, Nov 6, 2008 at 12:53 PM, Mark Salter <[EMAIL PROTECTED]> wrote: > Steve Loughran wrote: >> There's some coverage of it the Ant docs

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Mark Salter
Steve Loughran wrote: > There's some coverage of it the Ant docs > http://ant.apache.org/manual/antexternal.html > > as usual, contributions to improve this -more examples etc- are welcome. Thanks Steve, certainly the advice given at the bottom of this page is probably most relevant to the OP:-

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
Stefan Bodewig wrote: On Thu, 6 Nov 2008, Daniele Development-ML <[EMAIL PROTECTED]> wrote: Now, I get another exception, which seems somehow related to ant libraries - this is my understanding. Not really. Exception in thread "main" jarsigner returned: 1 at means the native jarsigner exe

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Steve Loughran
Mark Salter wrote: Morgan Kinne wrote: try sj.perform() It looks to me like you will still need to set a sj.setProject(project). I can't find anything that states this requirement, sorry. There's some coverage of it the Ant docs http://ant.apache.org/manual/antexternal.html as usual, cont

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Stefan Bodewig
On Thu, 6 Nov 2008, Daniele Development-ML <[EMAIL PROTECTED]> wrote: > Now, I get another exception, which seems somehow related to ant > libraries - this is my understanding. Not really. > Exception in thread "main" jarsigner returned: 1 at means the native jarsigner executable invoked eby An

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-06 Thread Daniele Development-ML
Thanks. I tried your suggestions, and the problem concerned that seems to be solved - thanks! Now, I get another exception, which seems somehow related to ant libraries - this is my understanding. I have included all the ant jars in my application. I post the exception and the new code - hoping in