Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-07 Thread Daniele Development-ML
Yes, Peter, I totally agree with you. However, I would expect that the XML elements and attributes are matched against some Java classes and calling them in the same order as does the Ant parser does, it would work. And actually it does with the above suggested statements. Of course, it depends on

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: 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

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Mark Salter
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. -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Morgan Kinne
try sj.perform() From: "Daniele Development-ML" <[EMAIL PROTECTED]> To: "Ant Users List" Date: 11/05/2008 12:17 PM Subject: Using Ant Tasks programmatically - SignJar Tasl Hello everybody: I am trying to use Ant Task programmatically by invoking the API with

Re: Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Mark Salter
Daniele Development-ML wrote: > I am trying to use Ant Task programmatically by invoking the API within my > Java code. You need a Project :- SignJar sj = new SignJar(); sj.setProject(new Project()); I surmised this by stepping through the code, but only 'blindly'. I guess all ta

Using Ant Tasks programmatically - SignJar Tasl

2008-11-05 Thread Daniele Development-ML
Hello everybody: I am trying to use Ant Task programmatically by invoking the API within my Java code. I get an exception, but everything appears to be fine to my eyes - I indeed set all the compulsory attributes of the SignJar task. Probably somebody else here has a good suggestion or the solutio